Functions | |
string | GetApplicationDirectory () |
Returns application directory ended by '/'. | |
string | GetCurrentWorkingDirectory () |
Returns current working directory ended by '/'. | |
string | GetFileNameFromPath (const string &path) |
Returns file name from the given path. | |
bool | FileExists (const string &file) |
Returns true if the selected file exists. | |
bool | DirectoryExists (const string &directory) |
Returns true if the selected directory exists. | |
bool | IsAbsolutePath (const string &path) |
Returns true if the selected path (address) is absolute. | |
string | CreateProperFilePath (const string &file) |
Converts selected file path to a "proper" one (see description for more info). | |
string | CreateProperDirectoryPath (const string &directory) |
Converts selected directory path to a "proper" one (see description for more info). | |
void | SetProgramStartedPath (string startedPath) |
Sets 'program started path'. | |
string | GetProgramStartedPath () |
Returns 'program started path' (path from where the program was started). | |
Variables | |
string | programStartedPath |
string FileFunctions::GetApplicationDirectory | ( | ) |
Returns application directory ended by '/'.
Example: /home/user/apps/applicationXYZ/
string FileFunctions::GetCurrentWorkingDirectory | ( | ) |
Returns current working directory ended by '/'.
Example: /home/user/apps/applicationXYZ/work/
string FileFunctions::GetFileNameFromPath | ( | const string & | path | ) |
Returns file name from the given path.
path | Selected path |
bool FileFunctions::FileExists | ( | const string & | file | ) |
Returns true if the selected file exists.
file | File that has to be tested |
bool FileFunctions::DirectoryExists | ( | const string & | directory | ) |
Returns true if the selected directory exists.
directory | Directory that has to be tested |
bool FileFunctions::IsAbsolutePath | ( | const string & | path | ) |
Returns true if the selected path (address) is absolute.
path | Path that has to be tested |
string FileFunctions::CreateProperFilePath | ( | const string & | file | ) |
Converts selected file path to a "proper" one (see description for more info).
file | File (path) that has to be tested |
string FileFunctions::CreateProperDirectoryPath | ( | const string & | directory | ) |
Converts selected directory path to a "proper" one (see description for more info).
directory | Directory that has to be tested |
void FileFunctions::SetProgramStartedPath | ( | string | startedPath | ) |
Sets 'program started path'.
startedPath | Path from where the program was started |
string FileFunctions::GetProgramStartedPath | ( | ) |
Returns 'program started path' (path from where the program was started).
string FileFunctions::programStartedPath [static] |