Public Methods |
| EkPathname () |
| This is the default constructor. More...
|
| EkPathname (const EkPathChar *thePath) |
| This creates a pathname from a c-<SPmtString>. More...
|
| EkPathname (const EkPathString &thePath) |
| This creates a pathname from a c++ <SPmtString>. More...
|
| EkPathname (const EkPathname &thePath) |
| This is the copy constructor. More...
|
| ~EkPathname () |
| This is the destructor. More...
|
EkPathname & | operator= (const EkPathname &thePath) |
| This is an assignment operator that takes another EkPathname. More...
|
EkPathname & | operator= (const EkPathString &thePath) |
| This is an assignment operator that takes a c++ <SPmtString>. More...
|
EkPathname & | operator= (const EkPathChar *theString) |
EkPathname & | operator+= (EkPathChar theChar) |
| Extension operator- this adds a character to the pathname. More...
|
EkPathname & | operator+= (const EkPathChar *theString) |
| Extension operator- this adds a SPmtString of characters to the pathname. More...
|
EkPathname & | operator+= (const EkPathString &theString) |
| Extension operator- this adds a SPmtString to the pathname. More...
|
EkPathname & | operator+= (const EkPathname &thePath) |
| Extension operator- this adds another pathname to the pathname. More...
|
| operator const EkPathChar * () const |
| Returns the const char pointer to the c-SPmtString holding the pathname. More...
|
EkPathString | operator+ (const EkPathname &thePath) |
| Appends a pathname to the current pathname. This does not modify the EkPathname object. More...
|
bool | isAccessable () const |
| Checks to see if the file exists and all directories are searchable. More...
|
bool | isDirectory () const |
| Returns TRUE if the path is a directory. More...
|
bool | isExecutable () const |
| Returns TRUE if the file / directory is executable. More...
|
bool | isReadable () const |
| Returns TRUE if the file / directory is readable. More...
|
bool | isWritable () const |
| Returns TRUE if the file / directory is writable. More...
|
EkPathname | absolute () const |
| Returns the pathname as an absolute path. More...
|
EkPathname | basename () const |
| Behaves like basename(1), returning the filename portion of the pathname. More...
|
EkPathString | basename (const EkPathChar *theSuffix) const |
| Returns the filename portion of the pathname, less theSuffix, if the file did in fact end in that suffix. More...
|
EkPathname | dirname () const |
| Behaves like dirname(1), returning the directory portion of the pathname. More...
|
void | tempName () |
| Installs a unique temporary file path/name into the current instance. More...
|
|
Note that if the pathname is empty both isAbsolute() and isRelative() will return FALSE.
|
bool | isAbsolute () const |
| Returns TRUE if the pathname is absolute - this is determined by checking for a leading "/". More...
|
bool | isRelative () const |
| Returns TRUE if the pathname is relative - this is determined by checking for a leading "./". More...
|
The Pathname class is intended to hold the pathname of a file and allow interogation of whether or not the file exists and what access the user is allowed. Trailing and leading whitespace is not removed from the pathname by this class. The functions isAccessable(), isReadable(), isWritable() and isExecutable() make use of access(1). Thus the results generated are based on the real user ID and supplementary group ID (including the real group ID) of the executing program.