Platform-agnostic handling of directory paths.
More...
#include <Path.hpp>
|
| void | init (void) |
| | Initialize the platform's native path delimiter.
|
|
| Path (void) |
| | Default constructor.
|
|
| ~Path (void) |
| | Destructor.
|
| | Path (const std::string &p) |
| | Construct a complete object.
|
|
const value_type & | native (void) const |
| | Obtain native path (directory) separator for the current platform.
|
|
const std::string & | path (void) const |
| | Obtain assigned pathname.
|
|
Path & | operator= (const Path &rhs) |
| | Assignment operator.
|
|
std::string | prepend (const std::string &path) const |
| | Prefix the stored path to the given path, inserting a separator when needed.
|
Platform-agnostic handling of directory paths.
This class is now a thin wrapper around nom::filesystem::path, preserving the historical nomlib API while gaining proper path decomposition.
Inspired by Boost::Filesystem
- See also
- http://www.boost.org/doc/libs/1_55_0/libs/filesystem/doc/reference.html#class-path
Definition at line 46 of file Path.hpp.
◆ value_type
Platform-dependent data typedef used for defining the preferred file path separator.
Definition at line 51 of file Path.hpp.
◆ Path()
| nom::Path::Path |
( |
const std::string & | p | ) |
|
Construct a complete object.
- Parameters
-
| p | The relative or absolute path to a file or directory. |
◆ init()
| void nom::Path::init |
( |
void | | ) |
|
Initialize the platform's native path delimiter.
◆ p_
The documentation for this class was generated from the following file:
- /home/jeff/Projects/nomlib.git/include/nomlib/system/Path.hpp