Archon::Utilities::File Namespace Reference


Classes

struct  Stat

Functions

string getCWD ()
 Get the current working directory.
string getHomeDir ()
void makeDir (string path)
vector< string > getDirNames (string dirPath)
bool isRegular (string p)
bool isDir (string p)
bool isSymbolicLink (string p)
string nameOf (string filePath)
 Extract the name part of a file path.
string suffixOf (string filePath)
 Extract the suffix (or file type) from the file name.


Function Documentation

string Archon::Utilities::File::getCWD  ) 
 

Get the current working directory.

Always as an absolute path, and always with each segment delimited by slashes.

Definition at line 41 of file file.C.

Referenced by Archon::Utilities::Uri::Uri().

string Archon::Utilities::File::nameOf string  filePath  ) 
 

Extract the name part of a file path.

The name part is defined as the portion of the path following the last slash '/' or the whole path if it contains no slashes.

Parameters:
filePath An absolute or a relative file path. Note that a simple file name is an example of a relative path.
Returns:
The name part of the path.

Definition at line 164 of file file.C.

Referenced by Archon::Utilities::Image::Image(), Archon::Utilities::Image::load(), Archon::Utilities::Image::save(), and suffixOf().

string Archon::Utilities::File::suffixOf string  filePath  ) 
 

Extract the suffix (or file type) from the file name.

The suffix is defied as the portion of a file path following the last dot of the name part. If the name part does not contain a dot, the suffix is the empty string.

Parameters:
filePath An absolute or a relative file path. Note that a simple file name is an example of a relative path.
Returns:
The suffix of the name part.

Definition at line 170 of file file.C.

References nameOf().


Generated on Sun Jul 30 22:58:05 2006 for Archon by  doxygen 1.4.4