#include "Path.hpp"
Public Member Functions
Static Public Member Functions
Detailed Description
Paths used for internal Project filesystem. The paths used for project filenames might differ from the actual disk storage, as the project might have different file/folder names or even virtual folders.- A global path starts with /
- A relative path starts with ./
- Folder paths end with /
- Acceptable characters: Alphanumeric, _ - . + @
Constructor & Destructor Documentation
Path() [1/3]
Path() [2/3]
Path() [3/3]
Member Function Documentation
c_str()
inline
formatPath()
static
Converts a string to a valid path string.
Whitespace is strippped and invalid characters are replaced by _ Can also be used to check if a path is valid as-is.
Parameters
getFilename()
getFolderName()
getParentPath()
getPathComponents()
getPathFromEnvironment()
static
Retrieves the value of an environment variable as a path string.
Parameters
Returns
A
std::string containing the value of the environment variable if it exists. Returns an empty string if the environment variable is not set or if the input is empty.
getRelativePathTo()
isFolderPath()
isNull()
isValidFilename()
static
Check if the specified name is valid for a file.
Returns
false if the filename contains any invalid characters
isValidPath()
static
Check if the specified path is correct.
operator!=() [1/2]
inline
operator!=() [2/2]
inline
operator+=()
operator==() [1/3]
inline