#include <path_functions.h>
Static Public Member Functions | |
static std::string | getExecutablePath () |
Returns absolute path of the current executable. | |
static std::string | getExecutableDirectory () |
Returns absolute path of a directory where the current executable is located (ended by '/'). | |
static bool | fileExists (const std::string &filePath) |
Returns true if the selected file exists, false otherwise. | |
static std::string | createProperFilePath (const std::string &filePath) |
Converts selected file path to a "proper" one (see description for more info). | |
Private Member Functions | |
PathFunctions () | |
~PathFunctions () | |
PathFunctions (const PathFunctions &) | |
PathFunctions & | operator= (const PathFunctions &) |
Uses "library class" (aka "static helper") design pattern.
PathFunctions::PathFunctions | ( | ) | [private] |
PathFunctions::~PathFunctions | ( | ) | [private] |
PathFunctions::PathFunctions | ( | const PathFunctions & | ) | [private] |
PathFunctions& PathFunctions::operator= | ( | const PathFunctions & | ) | [private] |
static std::string PathFunctions::getExecutablePath | ( | ) | [static] |
Returns absolute path of the current executable.
If it fails to find the path, it returns an empty string.
static std::string PathFunctions::getExecutableDirectory | ( | ) | [static] |
Returns absolute path of a directory where the current executable is located (ended by '/').
If it fails to find the directory, it returns an empty string.
static bool PathFunctions::fileExists | ( | const std::string & | filePath | ) | [static] |
Returns true if the selected file exists, false otherwise.
filePath | File to be tested. |
static std::string PathFunctions::createProperFilePath | ( | const std::string & | filePath | ) | [static] |
Converts selected file path to a "proper" one (see description for more info).
filePath | File path to be tested. |