IArchFile Class Reference

Interface for architecture dependent file system operations. More...

#include <IArchFile.h>

Inherits IInterface.

Inherited by CArch, CArchFileUnix, and CArchFileWindows.

Inheritance diagram for IArchFile:

Inheritance graph
[legend]
Collaboration diagram for IArchFile:

Collaboration graph
[legend]
List of all members.

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.

Detailed Description

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.


Member Function Documentation

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().


The documentation for this class was generated from the following file:
Generated on Fri Nov 6 00:19:17 2009 for synergy-plus by  doxygen 1.4.7