#include <IArchFile.h>
Inherits IInterface.
Inherited by CArch, CArchFileUnix, and CArchFileWindows.
Inheritance diagram for IArchFile:
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. |
This interface defines the file system operations required by synergy. Each architecture must implement this interface.
Definition at line 26 of file IArchFile.h.
|
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(). |
|
Extract base name.
Find the base name in the given Implemented in CArch, CArchFileUnix, and CArchFileWindows. Referenced by CArch::getBasename(). |
|
Get system directory. Returns the ussystem configuration file directory. Implemented in CArch, CArchFileUnix, and CArchFileWindows. Referenced by CArch::getSystemDirectory(). |
|
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(). |