Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members

CArchFileUnix Class Reference

Unix implementation of IArchFile. More...

#include <CArchFileUnix.h>

Inherits IArchFile.

Inheritance diagram for CArchFileUnix:

Inheritance graph
[legend]
Collaboration diagram for CArchFileUnix:

Collaboration graph
[legend]
List of all members.

Public Member Functions

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.

Detailed Description

Unix implementation of IArchFile.

Definition at line 23 of file CArchFileUnix.h.


Member Function Documentation

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.


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