Pointwise Plugin SDK
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
PwpCwd.h
Go to the documentation of this file.
1 /****************************************************************************
2  *
3  * class PwpCwd
4  *
5  * (C) 2021 Cadence Design Systems, Inc. All rights reserved worldwide.
6  *
7  ***************************************************************************/
8 
9 #ifndef _PWPCWD_H_
10 #define _PWPCWD_H_
11 
56 class PwpCwd {
57 public:
58 
60 
73  PwpCwd(const char *dir = 0);
74 
76  ~PwpCwd();
77 
79 
85  bool push(const char *dir);
86 
88 
93  bool pop();
94 
96 
104  static bool pushDir(const char *dir);
105 
107 
114  static bool popDir();
115 
116 private:
117  int depth_;
118 };
119 
120 #endif // _PWPCWD_H_
int depth_
The stack depth.
Definition: PwpCwd.h:117
PwpCwd(const char *dir=0)
Constructor.
Definition: PwpCwd.cxx:14
bool push(const char *dir)
Sets the current working directory.
Definition: PwpCwd.cxx:27
Manipulates the current working directory.
Definition: PwpCwd.h:56
static bool pushDir(const char *dir)
Sets the current working directory.
Definition: PwpCwd.cxx:48
static bool popDir()
Restores the current working directory.
Definition: PwpCwd.cxx:54
~PwpCwd()
Destructor.
Definition: PwpCwd.cxx:20
bool pop()
Restores the current working directory.
Definition: PwpCwd.cxx:37