#include <Pathname.h>
Public Member Functions | |
virtual | ~Pathname () |
Pathname () | |
Pathname (const Pathname &path_tv) | |
Pathname (const std::string &name_tv) | |
Pathname (const char *name_tv) | |
Pathname & | operator= (const Pathname &path_tv) |
Pathname & | operator+= (const Pathname &path_tv) |
const std::string & | asString () const |
bool | empty () const |
bool | absolute () const |
bool | relative () const |
Pathname | dirname () const |
std::string | basename () const |
Pathname | absolutename () const |
Pathname | relativename () const |
Pathname | cat (const Pathname &r) const |
Pathname | extend (const std::string &r) const |
bool | equal (const Pathname &r) const |
Static Public Member Functions | |
static Pathname | dirname (const Pathname &name_tv) |
static std::string | basename (const Pathname &name_tv) |
static Pathname | absolutename (const Pathname &name_tv) |
static Pathname | relativename (const Pathname &name_tv) |
static Pathname | cat (const Pathname &l, const Pathname &r) |
static Pathname | extend (const Pathname &l, const std::string &r) |
static bool | equal (const Pathname &l, const Pathname &r) |
Protected Member Functions | |
void | _assign (const std::string &name_tv) |
Private Attributes | |
std::string::size_type | prfx_i |
std::string | name_t |
virtual Pathname::~Pathname | ( | ) | [inline, virtual] |
Pathname::Pathname | ( | const std::string & | name_tv | ) | [inline] |
References _assign().
Pathname::Pathname | ( | const char * | name_tv | ) | [inline] |
References _assign().
void Pathname::_assign | ( | const std::string & | name_tv | ) | [protected] |
bool Pathname::absolute | ( | ) | const [inline] |
References cat(), and relative().
Pathname Pathname::absolutename | ( | ) | const [inline] |
const std::string& Pathname::asString | ( | ) | const [inline] |
References name_t.
Referenced by PathInfo::assert_dir(), PathInfo::asString(), basename(), cat(), PathInfo::chmod(), PathInfo::copy(), PathInfo::copy_dir(), PathInfo::copy_file2dir(), equal(), extend(), ExternalProgram::ExternalProgram(), PathInfo::hardlink(), PathInfo::mkdir(), PathInfo::operator()(), operator<<(), PathInfo::rename(), PathInfo::symlink(), and PathInfo::zipType().
string Pathname::basename | ( | const Pathname & | name_tv | ) | [static] |
References asString(), empty(), and prfx_i.
std::string Pathname::basename | ( | ) | const [inline] |
References asString(), empty(), and prfx_i.
Pathname Pathname::dirname | ( | ) | const [inline] |
bool Pathname::empty | ( | ) | const [inline] |
References name_t.
Referenced by absolute(), PathInfo::assert_dir(), basename(), cat(), dirname(), ExternalProgram::ExternalProgram(), PathInfo::operator()(), and relative().
References asString().
bool Pathname::equal | ( | const Pathname & | r | ) | const [inline] |
References asString().
Pathname Pathname::extend | ( | const std::string & | r | ) | const [inline] |
bool Pathname::relative | ( | ) | const [inline] |
References absolute(), and cat().
Pathname Pathname::relativename | ( | ) | const [inline] |
std::string Pathname::name_t [private] |
Referenced by _assign(), absolute(), asString(), dirname(), empty(), operator=(), Pathname(), and relative().
std::string::size_type Pathname::prfx_i [private] |
Referenced by _assign(), absolute(), basename(), cat(), dirname(), operator=(), Pathname(), and relative().