|
Helps to build a path via format strings: All format strings are of the form '{[^{}]+}' If the resulting path should contain the characters '{' or '}', they have to be replaced with '{LEFT CURLY}' and '{RIGHT CURLY}'. More...
#include <ArmarXCore/core/util/FileSystemPathBuilder.h>
Classes | |
struct | FormatStringOption |
Replacer for a pattern. More... | |
struct | RegisterFormatStringOption |
Public Member Functions | |
void | createParentDirectories () const |
FileSystemPathBuilder (std::string rawPath) | |
FileSystemPathBuilder. More... | |
const std::filesystem::path & | getBoostPath () const |
const std::string & | getPath () const |
const std::string & | getRawPath () const |
Static Public Member Functions | |
static std::string | ApplyFormatting (const std::string &rawPath) |
static std::string | ApplyFormattingAndResolveEnvAndCMakeVars (const std::string &rawPath) |
static std::map< std::string, FormatStringOption > | GetFormatStringOptions () |
Public Attributes | |
const std::filesystem::path | bpath |
const std::string | path |
const std::string | rawPath |
Static Public Attributes | |
static const boost::regex | RawPathRegex |
Helps to build a path via format strings: All format strings are of the form '{[^{}]+}' If the resulting path should contain the characters '{' or '}', they have to be replaced with '{LEFT CURLY}' and '{RIGHT CURLY}'.
Default patterns are:
Definition at line 63 of file FileSystemPathBuilder.h.
|
inline |
rawPath | must match RawPathRegex ("([^{}]+|{[^{}]+})+") |
Definition at line 93 of file FileSystemPathBuilder.h.
|
static |
Definition at line 51 of file FileSystemPathBuilder.cpp.
|
static |
Definition at line 94 of file FileSystemPathBuilder.cpp.
|
inline |
|
inline |
Definition at line 95 of file FileSystemPathBuilder.h.
|
static |
|
inline |
Definition at line 103 of file FileSystemPathBuilder.h.
|
inline |
Definition at line 99 of file FileSystemPathBuilder.h.
const std::filesystem::path bpath |
Definition at line 131 of file FileSystemPathBuilder.h.
const std::string path |
Definition at line 130 of file FileSystemPathBuilder.h.
const std::string rawPath |
Definition at line 129 of file FileSystemPathBuilder.h.
|
static |
Definition at line 65 of file FileSystemPathBuilder.h.