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>
|
| const std::filesystem::path | bpath |
| |
| const std::string | path |
| |
| const std::string | rawPath |
| |
|
| 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:
- {LEFT CURLY} -> {
- {RIGHT CURLY} -> }
- {year / Year} -> year (2/4 digits)
- {month}
- {day}
- {hour}
- {minute}
- {second}
- {Date} -> YYYY-MM-DD
- {Time} -> HH-MM-SS
- {DateTime} -> {Date}_{Time}
- {time-since-epoch} -> nanoseconds since epoch (can be used as uuid)
- {PackageDir:...} -> Directory of the given package
- {ScenarioDir:...} -> Scenario Directory of the given package
- {DataDir:...} -> Data Directory of the given package
- {BinaryeDir:...} -> Binary Directory of the given package
- {CMakeDir:...} -> CMake Directory of the given package
- {BuildDir:...} -> Build Directory of the given package
◆ FileSystemPathBuilder()
◆ ApplyFormatting()
| std::string ApplyFormatting |
( |
const std::string & | rawPath | ) |
|
|
static |
◆ ApplyFormattingAndResolveEnvAndCMakeVars()
| std::string ApplyFormattingAndResolveEnvAndCMakeVars |
( |
const std::string & | rawPath | ) |
|
|
static |
◆ createParentDirectories()
| void createParentDirectories |
( |
| ) |
const |
|
inline |
◆ getBoostPath()
| const std::filesystem::path & getBoostPath |
( |
| ) |
const |
|
inline |
◆ GetFormatStringOptions()
◆ getPath()
| const std::string & getPath |
( |
| ) |
const |
|
inline |
◆ getRawPath()
| const std::string & getRawPath |
( |
| ) |
const |
|
inline |
◆ bpath
| const std::filesystem::path bpath |
◆ path
◆ rawPath
| const std::string rawPath |
◆ RawPathRegex
| const boost::regex RawPathRegex {"([^{}]+|\\{[^{}]+\\})+"} |
|
static |
The documentation for this struct was generated from the following files: