MySQL 8.4.2
Source Code Documentation
|
A helper class for handling file paths. More...
#include <path.h>
Public Member Functions | |
Path () | |
Path (const std::string &s) | |
Path (const Path &p) | |
bool | path_getcwd () |
void | trim () |
void | parent_directory (Path *out) |
Path & | up () |
Path & | append (const std::string &path) |
Path & | filename_append (const std::string &ext) |
void | path (const std::string &p) |
void | filename (const std::string &f) |
void | path (const Path &p) |
void | filename (const Path &p) |
bool | qpath (const std::string &qp) |
bool | normalize_path () |
bool | is_qualified_path () |
bool | exists () |
const std::string | to_str () |
bool | empty () |
void | get_homedir () |
Private Attributes | |
std::string | m_path |
std::string | m_filename |
Friends | |
std::ostream & | operator<< (std::ostream &op, const Path &p) |
A helper class for handling file paths.
The class can handle the memory on its own or it can wrap an external string.
|
default |
Path::Path | ( | const std::string & | s | ) |
Path::Path | ( | const Path & | p | ) |
Path & Path::append | ( | const std::string & | path | ) |
bool Path::empty | ( | ) |
bool Path::exists | ( | ) |
void Path::filename | ( | const Path & | p | ) |
void Path::filename | ( | const std::string & | f | ) |
Path & Path::filename_append | ( | const std::string & | ext | ) |
void Path::get_homedir | ( | ) |
bool Path::is_qualified_path | ( | ) |
bool Path::normalize_path | ( | ) |
void Path::parent_directory | ( | Path * | out | ) |
void Path::path | ( | const Path & | p | ) |
void Path::path | ( | const std::string & | p | ) |
bool Path::path_getcwd | ( | ) |
bool Path::qpath | ( | const std::string & | qp | ) |
const std::string Path::to_str | ( | ) |
void Path::trim | ( | ) |
Path & Path::up | ( | ) |
|
friend |
|
private |
|
private |