Interface for architecture dependent file system operations. More...
#include <IArchFile.h>
Inherits IInterface.
Inherited by CArch, CArchFileUnix, and CArchFileWindows.
Public Member Functions | |
manipulators | |
virtual const char * | getBasename (const char *pathname)=0 |
Extract base name. | |
virtual std::string | getUserDirectory ()=0 |
Get user's home directory. | |
virtual std::string | getSystemDirectory ()=0 |
Get system directory. | |
virtual std::string | concatPath (const std::string &prefix, const std::string &suffix)=0 |
Concatenate path components. |
Interface for architecture dependent file system operations.
This interface defines the file system operations required by synergy. Each architecture must implement this interface.
Definition at line 26 of file IArchFile.h.
virtual std::string IArchFile::concatPath | ( | const std::string & | prefix, | |
const std::string & | suffix | |||
) | [pure 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.
Implemented in CArch, CArchFileUnix, and CArchFileWindows.
Referenced by CArch::concatPath().
virtual const char* IArchFile::getBasename | ( | const char * | pathname | ) | [pure virtual] |
Extract base name.
Find the base name in the given pathname
.
Implemented in CArch, CArchFileUnix, and CArchFileWindows.
Referenced by CArch::getBasename().
virtual std::string IArchFile::getSystemDirectory | ( | ) | [pure virtual] |
Get system directory.
Returns the ussystem configuration file directory.
Implemented in CArch, CArchFileUnix, and CArchFileWindows.
Referenced by CArch::getSystemDirectory().
virtual std::string IArchFile::getUserDirectory | ( | ) | [pure virtual] |
Get user's home directory.
Returns the user's home directory. Returns the empty string if this cannot be determined.
Implemented in CArch, CArchFileUnix, and CArchFileWindows.
Referenced by CArch::getUserDirectory().