Paths in filesystems, i.e., file names.
More...
#include <path.hh>
Paths in filesystems, i.e., file names.
We should rather use boost::filesystem::path, but as of today it does not work on Mac OS X: https://trac.macports.org/ticket/41588.
Definition at line 22 of file path.hh.
The "native" type we wrap.
Definition at line 37 of file path.hh.
vcsn::path::path |
( |
const std::string & |
p | ) |
|
Init object with path.
- Exceptions
-
Definition at line 21 of file path.cc.
vcsn::path::path |
( |
const char * |
p | ) |
|
- Exceptions
-
Definition at line 25 of file path.cc.
std::string vcsn::path::basename |
( |
| ) |
const |
const char * vcsn::path::c_str |
( |
| ) |
const |
|
inline |
std::ostream & vcsn::path::dump |
( |
std::ostream & |
ostr | ) |
const |
std::string vcsn::path::extension |
( |
| ) |
const |
The extension of the file, or "" if not applicable.
path vcsn::path::filename |
( |
| ) |
const |
Also known as basename.
Definition at line 92 of file path.cc.
References value_.
bool vcsn::path::is_absolute |
( |
| ) |
const |
|
inline |
path vcsn::path::operator/ |
( |
const path & |
rhs | ) |
const |
- Exceptions
-
Definition at line 52 of file path.cc.
path & vcsn::path::operator/= |
( |
const path & |
rhs | ) |
|
bool vcsn::path::operator== |
( |
const path & |
rhs | ) |
const |
path vcsn::path::parent_path |
( |
| ) |
const |
Return a path which is the parent directory.
If path is relative, current directory is returned when asking for parent of 1-depth entity.
Definition at line 83 of file path.cc.
References value_.
const std::string & vcsn::path::string |
( |
| ) |
const |
|
inline |
const char vcsn::path::separator_ = '/' |
|
staticprivate |
Path separator.
Definition at line 99 of file path.hh.
The documentation for this class was generated from the following files: