fawkes::PathParser Class Reference
Path parser. More...
#include <utils/system/pathparser.h>
Inheritance diagram for fawkes::PathParser:

Public Member Functions | |
| PathParser (std::string &path) | |
| Constructor (C++ string). | |
| PathParser (const char *path) | |
| Constructor (C string). | |
| void | print_debug () |
| Debug print to stdout. | |
| std::string | path_as_string () |
| Get path as string. | |
| bool | is_absolute () const |
| Check if path is absolute. | |
Detailed Description
Path parser.Parses a given (Unix) file system path and provides the elements and vector elements.
Definition at line 32 of file pathparser.h.
Constructor & Destructor Documentation
| fawkes::PathParser::PathParser | ( | std::string & | path | ) |
Constructor (C++ string).
- Parameters:
-
path path to parse
Definition at line 44 of file pathparser.cpp.
| fawkes::PathParser::PathParser | ( | const char * | path | ) |
Constructor (C string).
- Parameters:
-
path path to parse
Definition at line 53 of file pathparser.cpp.
Member Function Documentation
| bool fawkes::PathParser::is_absolute | ( | ) | const |
Check if path is absolute.
- Returns:
- true if path is absolute, false otherwise
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.
- Returns:
- path as string
Definition at line 101 of file pathparser.cpp.
| void fawkes::PathParser::print_debug | ( | ) |
The documentation for this class was generated from the following files:
- src/libs/utils/system/pathparser.h
- src/libs/utils/system/pathparser.cpp

