|
| Path (const char *path) |
|
| Path (const std::string &path) |
|
Path | parent () const |
|
Path | normalize () const |
|
std::pair< Path, std::string > | split () const |
|
std::string | name () const |
|
Path | absoluted () const |
|
Path | append (const std::string &name) const |
|
std::string | str () const |
|
std::string | ext () const |
|
Path | replace_ext (const std::string &new_ext) const |
|
bool | operator== (const Path &p) const |
|
bool | operator< (const Path &p) const |
|
bool | operator!= (const Path &p) const |
|
bool | is_absolute () const |
|
|
static Path | system_temp_dir () |
|
◆ is_absolute()
bool smlt::Path::is_absolute |
( |
| ) |
const |
Returns true if this is an absolute path. On systems with a Unix-like filesystem this returns true if the path starts with a '/'. On Windows this will return true if the normalized path starts with a '/' with the drive letter removed
◆ name()
std::string smlt::Path::name |
( |
| ) |
const |
Returns the name of the path if it's not a directory path, otherwise returns an empty string
◆ normalize()
Path smlt::Path::normalize |
( |
| ) |
const |
Normalizes a path, replacing things like '..'
◆ parent()
Path smlt::Path::parent |
( |
| ) |
const |
Returns the parent path of this one. If this is a path to a directory, it'll return the parent directory. If it's a path to a file (e.g. name() is not empty) then it will return the directory containing the file.
◆ split()
std::pair< Path, std::string > smlt::Path::split |
( |
| ) |
const |
◆ str()
std::string smlt::Path::str |
( |
| ) |
const |
|
inline |
Convert the full path to a std::string
The documentation for this class was generated from the following files:
- simulant/path.h
- simulant/path.cpp