The Path class allow handling path in a cross-platform maner. The class assume that all string are encoded in UTF-8.
More...
#include <path.hpp>
The Path class allow handling path in a cross-platform maner. The class assume that all string are encoded in UTF-8.
Definition at line 34 of file path.hpp.
| qi::Path::Path |
( |
const std::string & |
unicodePath = std::string() | ) |
|
Default Constructor
- Parameters
-
| qi::Path::Path |
( |
const char * |
unicodePath | ) |
|
| qi::Path::Path |
( |
const Path & |
path | ) |
|
| qi::Path::Path |
( |
const boost::filesystem::path & |
path | ) |
|
Copy Constructor from boost filesystem.
| Path qi::Path::absolute |
( |
| ) |
const |
return an absolute Path of the current path
| const boost::filesystem::path& qi::Path::bfsPath |
( |
| ) |
const |
return the path as a boost path representation
return a vector of dirs contained in the current path
| bool qi::Path::exists |
( |
| ) |
const |
| std::string qi::Path::extension |
( |
| ) |
const |
get the extension of the current file
| std::string qi::Path::filename |
( |
| ) |
const |
get the name of the current file of folder
return a vector of files contained in the current path
| bool qi::Path::isDir |
( |
| ) |
const |
| bool qi::Path::isEmpty |
( |
| ) |
const |
| bool qi::Path::isRegularFile |
( |
| ) |
const |
is the path a regular file?
| bool qi::Path::isSymlink |
( |
| ) |
const |
| qi::Path::operator std::string |
( |
| ) |
const |
return the path as a string
concat two paths adding a directory separator between them
| const Path& qi::Path::operator/= |
( |
const qi::Path & |
rhs | ) |
const |
concat two paths adding a directory separator between them
| const Path& qi::Path::operator= |
( |
const qi::Path & |
rhs | ) |
const |
| Path qi::Path::parent |
( |
| ) |
const |
return a Path to the parent
return a vector of absolute path to files contained recursively in the current path
| std::string qi::Path::str |
( |
| ) |
const |
return the path as a string
| std::ostream& operator<< |
( |
std::ostream & |
output, |
|
|
const qi::Path & |
path |
|
) |
| |
|
friend |
Standard output stream operator for logging.
Definition at line 107 of file path.hpp.
The documentation for this class was generated from the following file:
- /home/opennao/work/master/sdk/libqi/qi/path.hpp