Psi4
|
Class for manipulating paths. More...
#include <path.h>
Public Member Functions | |
path () | |
path (const path &path) | |
path (path &&path) | |
path (const std::string &string) | |
void | set (const std::string &str) |
size_t | length () const |
bool | empty () const |
bool | is_absolute () const |
path | make_absolute () const |
bool | exists () const |
std::string | str () const |
bool | is_directory () const |
bool | is_file () const |
std::string | stem () const |
std::string | filename () const |
std::string | extension () const |
bool | remove_file () |
bool | resize_file (size_t target_length) |
path | parent_path () const |
path | operator/ (const path &other) const |
path & | operator= (const path &path) |
path & | operator= (path &&path) |
bool | operator== (const path &p) const |
bool | operator!= (const path &p) const |
Static Public Member Functions | |
static path | getcwd () |
Static Protected Member Functions | |
static std::vector< std::string > | tokenize (const std::string &string, const std::string &delim) |
Protected Attributes | |
std::vector< std::string > | path_ |
bool | absolute_ |
Class for manipulating paths.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
bool psi::filesystem::path::exists | ( | ) | const |
std::string psi::filesystem::path::extension | ( | ) | const |
std::string psi::filesystem::path::filename | ( | ) | const |
|
static |
|
inline |
bool psi::filesystem::path::is_directory | ( | ) | const |
bool psi::filesystem::path::is_file | ( | ) | const |
|
inline |
path psi::filesystem::path::make_absolute | ( | ) | const |
|
inline |
|
inline |
path psi::filesystem::path::parent_path | ( | ) | const |
bool psi::filesystem::path::remove_file | ( | ) |
bool psi::filesystem::path::resize_file | ( | size_t | target_length | ) |
void psi::filesystem::path::set | ( | const std::string & | str | ) |
std::string psi::filesystem::path::stem | ( | ) | const |
std::string psi::filesystem::path::str | ( | ) | const |
|
inlinestaticprotected |
|
protected |
|
protected |