Represents path.
More...
#include <Path.hpp>
◆ Path()
CppMate::Path::Path |
( |
const std::string & |
path | ) |
|
|
explicit |
◆ begin()
std::vector<std::string>::const_iterator CppMate::Path::begin |
( |
| ) |
const |
|
inline |
Returns begin iterator.
- Returns
- begin iterator.
◆ end()
std::vector<std::string>::const_iterator CppMate::Path::end |
( |
| ) |
const |
|
inline |
Returns end iterator.
- Returns
- end iterator.
◆ getBaseName()
std::string CppMate::Path::getBaseName |
( |
| ) |
const |
|
inline |
Returns base name without path and suffix.
- Returns
- base name.
◆ getDriveLetter()
std::string CppMate::Path::getDriveLetter |
( |
| ) |
const |
|
inline |
Returns drive letter if present or empty string otherwise.
- Returns
- driver letter.
◆ getName()
std::string CppMate::Path::getName |
( |
| ) |
const |
|
inline |
Returns name without path with suffix.
- Returns
- name without path with suffix.
◆ getParent()
std::string CppMate::Path::getParent |
( |
| ) |
const |
|
inline |
Returns path without name.
- Returns
- path without name.
◆ getPath()
std::string CppMate::Path::getPath |
( |
| ) |
const |
|
inline |
Returns orginal string representation of the path.
- Returns
- string representation of the path.
◆ getSuffix()
std::string CppMate::Path::getSuffix |
( |
| ) |
const |
|
inline |
Returns suffix of name.
- Returns
- suffix of name.
◆ hasTrailingSlash()
bool CppMate::Path::hasTrailingSlash |
( |
| ) |
const |
|
inline |
Indicates that path has trailing slash.
- Returns
true
if path has trailing slash; false
otherwise.
◆ isAbsolute()
bool CppMate::Path::isAbsolute |
( |
| ) |
const |
|
inline |
Indicates that path is absolute.
- Returns
true
if path is absolute; false
otherwise.
The documentation for this class was generated from the following file: