MPMA::Directory Class Reference

Represents a directory that can be browsed and navigated. More...

#include <File.h>

List of all members.

Public Member Functions

 Directory ()
 ctor. defaults to the current directory
 Directory (const Filename &initialPath)
 ctor. specify "~" to start in the users home directory
bool CreateDirectory ()
 Create a directory if it does not already exist. Returns true if the directory existed or was created.
std::vector
< std::string > 
GetFiles () const
 Retrieves a list of files in this directory.
std::vector
< std::string > 
GetSubDirectories () const
 Retrieves a list of subdirectories in this directory.
void StepOut ()
 Changes the directory to one tier above the current directory.
void StepInto (const std::string &subdir)
 Steps into a subdirectory of the current directory. It does not have to exist.
 operator const std::string & () const
 Retrieves a string that represents the current path.
Filename File (const std::string &fname) const
 Retrieves a Filename for a file within the current path.


Detailed Description

Represents a directory that can be browsed and navigated.
The documentation for this class was generated from the following files:
Generated on Sat Oct 20 15:23:30 2007 for MPMA Framework by  doxygen 1.5.3