Pointwise Plugin SDK
plugins
shared
PWP
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_
PwpCwd::push
bool push(const char *dir)
Sets the current working directory.
Definition:
PwpCwd.cxx:27
PwpCwd::pushDir
static bool pushDir(const char *dir)
Sets the current working directory.
Definition:
PwpCwd.cxx:48
PwpCwd::PwpCwd
PwpCwd(const char *dir=0)
Constructor.
Definition:
PwpCwd.cxx:14
PwpCwd::~PwpCwd
~PwpCwd()
Destructor.
Definition:
PwpCwd.cxx:20
PwpCwd::depth_
int depth_
The stack depth.
Definition:
PwpCwd.h:117
PwpCwd::popDir
static bool popDir()
Restores the current working directory.
Definition:
PwpCwd.cxx:54
PwpCwd
Manipulates the current working directory.
Definition:
PwpCwd.h:56
PwpCwd::pop
bool pop()
Restores the current working directory.
Definition:
PwpCwd.cxx:37