Skip to main content
Paths used for internal Project filesystem. #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()

Return the filename part of the path. If the path is a folder path, filename is empty

getFolderName()

Return the folder name - only if Path is a folder path.

getParentPath()

Return the Path for the enclosing folder.

getPathComponents()

Return the path components as a vector of string. Each folder component is returned with trailing /

getRelativePathTo()

Convert a global path and a global target to a relative path to the target.

isFolderPath()

Indicates if the path is a folder path (ends with /)

isNull()

Indicates if the path is empty.

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+=()

Appends the string to the Path.

operator==() [1/3]

inline

operator==() [2/3]

operator==() [3/3]

str()

Return as string.