Fawkes API
Fawkes Development Version
|
Path parser. More...
#include <>>
Public Member Functions | |
PathParser (std::string &path) | |
Constructor (C++ string). More... | |
PathParser (const char *path) | |
Constructor (C string). More... | |
void | print_debug () |
Debug print to stdout. More... | |
std::string | path_as_string () |
Get path as string. More... | |
bool | is_absolute () const |
Check if path is absolute. More... | |
Path parser.
Parses a given (Unix) file system path and provides the elements and vector elements.
Definition at line 32 of file pathparser.h.
fawkes::PathParser::PathParser | ( | std::string & | path | ) |
Constructor (C++ string).
path | path to parse |
Definition at line 44 of file pathparser.cpp.
fawkes::PathParser::PathParser | ( | const char * | path | ) |
bool fawkes::PathParser::is_absolute | ( | ) | const |
Check if path is absolute.
Definition at line 123 of file pathparser.cpp.
std::string fawkes::PathParser::path_as_string | ( | ) |
Get path as string.
Joins the path elements to one path again.
Definition at line 101 of file pathparser.cpp.
void fawkes::PathParser::print_debug | ( | ) |
Debug print to stdout.
Definition at line 89 of file pathparser.cpp.