#include <CArchFileUnix.h>
Inherits IArchFile.
Inheritance diagram for CArchFileUnix:
Public Member Functions | |
CArchFileUnix () | |
virtual | ~CArchFileUnix () |
virtual const char * | getBasename (const char *pathname) |
Extract base name. | |
virtual std::string | getUserDirectory () |
Get user's home directory. | |
virtual std::string | getSystemDirectory () |
Get system directory. | |
virtual std::string | concatPath (const std::string &prefix, const std::string &suffix) |
Concatenate path components. |
Definition at line 23 of file CArchFileUnix.h.
std::string CArchFileUnix::concatPath | ( | const std::string & | prefix, | |
const std::string & | suffix | |||
) | [virtual] |
Concatenate path components.
Concatenate pathname components with a directory separator between them. This should not check if the resulting path is longer than allowed by the system; we'll rely on the system calls to tell us that.
Implements IArchFile.
Definition at line 87 of file CArchFileUnix.cpp.
const char * CArchFileUnix::getBasename | ( | const char * | pathname | ) | [virtual] |
Extract base name.
Find the base name in the given pathname
.
Implements IArchFile.
Definition at line 37 of file CArchFileUnix.cpp.
std::string CArchFileUnix::getSystemDirectory | ( | ) | [virtual] |
Get system directory.
Returns the ussystem configuration file directory.
Implements IArchFile.
Definition at line 81 of file CArchFileUnix.cpp.
std::string CArchFileUnix::getUserDirectory | ( | ) | [virtual] |
Get user's home directory.
Returns the user's home directory. Returns the empty string if this cannot be determined.
Implements IArchFile.
Definition at line 53 of file CArchFileUnix.cpp.