MPMA Framework 0.4
|
Represents a file name or directory name, which can navigated or created. This can be constructed using a either windows or a linux style path. Names that begin with ~ are relative to the users home directory. A filename may be in relative form or as an absolute path. More...
#include <File.h>
Public Member Functions | |
Filename () | |
ctor - sets to the current app working directory | |
Filename (const std::string &name) | |
ctor | |
Filename (const char *name) | |
ctor | |
operator std::string () const | |
Gets a string that represents the filename for the current operating system. | |
const char * | c_str () const |
Gets a c string that represents the filename for the current operating system. | |
std::string | GetPath () const |
Gets the path containing this file or directory. | |
std::string | GetName (bool includePath=true, bool includeExtension=true) const |
Gets the name of this file or directory, as is usable on the current operatin system. | |
std::string | GetNameExtension () const |
Gets the extension of a filename. | |
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 &name) |
Steps into a subdirectory of the current directory. It does not have to exist. This may also be used to append a filename to the current path. | |
bool | IsRoot () const |
Returns whether the current name represents the top of the file system. |
Represents a file name or directory name, which can navigated or created. This can be constructed using a either windows or a linux style path. Names that begin with ~ are relative to the users home directory. A filename may be in relative form or as an absolute path.