Inherits vector< std::string >.
|
template<class String > |
| path (String const &p) |
|
template<class InputIt > |
| path (InputIt it, InputIt end_it) |
|
template<class String > |
| path (std::initializer_list< String > const &list) |
|
path & | remove_filename () |
| Removes filename path component.
|
|
path | parent_path () const |
| Returns the path of the parent path.
|
|
path | filename () const |
| Returns filename path component.
|
|
path | stem () const |
| Returns the stem path component.
|
|
path | extension () const |
| Returns the file extension path component.
|
|
std::string | string () const |
| Return the path as string.
|
|
bool | is_absolute () const |
|
bool | is_relative () const |
|
bool | is_file () const |
| Check whether path is a regular file.
|
|
bool | is_directory () const |
| Check whether path is a regular file.
|
|
bool | operator== (path const &p) |
| Lexicographically compares two paths.
|
|
path & | operator/= (path const &p) |
| Appends elements to the path.
|
|
|
static bool | is_absolute (std::string p) |
| Return whether a path is an absolute path. More...
|
|
|
static constexpr char | preferred_separator = '/' |
|
|
void | split (std::string p) |
|
|
template<class CharT , class Traits > |
std::basic_ostream< CharT, Traits > & | operator<< (std::basic_ostream< CharT, Traits > &out, path const &p) |
| output of the path
|
|
◆ is_absolute()
bool is_absolute |
( |
std::string |
p | ) |
|
|
static |
Return whether a path is an absolute path.
In Linux, test whether the path starts with /
, in Windows whether it starts with [a-z]:\\
.
The documentation for this class was generated from the following files:
- /home/user/documentation/docs/amdis/repository/amdis/common/Filesystem.hpp
- /home/user/documentation/docs/amdis/repository/amdis/common/Filesystem.cpp