|
tue_filesystem
|
#include <path.h>
Public Member Functions | |
| bool | exists () const |
| std::string | extension () const |
| std::string | filename () const |
| bool | isDirectory () const |
| bool | isRegularFile () const |
| Path | join (const Path &path) const |
| std::time_t | lastWriteTime () const |
| Path | parentPath () const |
| Path () | |
| Path (const char *path) | |
| Path (const std::string &path) | |
| Path & | removeExtension () |
| const std::string & | string () const |
| Path | withoutExtension () const |
| virtual | ~Path () |
Private Attributes | |
| std::string | path_ |
| Text of the file system path. More... | |
Friends | |
| std::ostream & | operator<< (std::ostream &out, const Path &p) |
Path class for a file system path, providing several useful functions for querying and manipulating a path.
| tue::filesystem::Path::Path | ( | const std::string & | path | ) |
|
inline |
| bool tue::filesystem::Path::exists | ( | ) | const |
| std::string tue::filesystem::Path::extension | ( | ) | const |
| std::string tue::filesystem::Path::filename | ( | ) | const |
| bool tue::filesystem::Path::isDirectory | ( | ) | const |
| bool tue::filesystem::Path::isRegularFile | ( | ) | const |
| std::time_t tue::filesystem::Path::lastWriteTime | ( | ) | const |
| Path tue::filesystem::Path::parentPath | ( | ) | const |
Get the parent directory of the path.
"/"), else the path without the filename() part and last directory separator. | Path & tue::filesystem::Path::removeExtension | ( | ) |
|
inline |
| Path tue::filesystem::Path::withoutExtension | ( | ) | const |
|
friend |
|
private |
1.8.17