yast2-core
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes

Pathname Class Reference

#include <Pathname.h>

List of all members.

Public Member Functions

virtual ~Pathname ()
 Pathname ()
 Pathname (const Pathname &path_tv)
 Pathname (const std::string &name_tv)
 Pathname (const char *name_tv)
Pathnameoperator= (const Pathname &path_tv)
Pathnameoperator+= (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

Constructor & Destructor Documentation

virtual Pathname::~Pathname ( ) [inline, virtual]
Pathname::Pathname ( ) [inline]

References name_t, and prfx_i.

Pathname::Pathname ( const Pathname path_tv) [inline]

References name_t, and prfx_i.

Pathname::Pathname ( const std::string &  name_tv) [inline]

References _assign().

Pathname::Pathname ( const char *  name_tv) [inline]

References _assign().


Member Function Documentation

void Pathname::_assign ( const std::string &  name_tv) [protected]

References DirStack::Push(), and DirStack::str().

Referenced by Pathname().

bool Pathname::absolute ( ) const [inline]

References empty(), name_t, and prfx_i.

Referenced by relativename().

Pathname Pathname::absolutename ( ) const [inline]

References absolutename().

Referenced by absolutename().

static Pathname Pathname::absolutename ( const Pathname name_tv) [inline, static]

References cat(), and relative().

const std::string& Pathname::asString ( ) const [inline]
std::string Pathname::basename ( ) const [inline]

References basename().

Referenced by basename(), and PathInfo::copy_dir().

string Pathname::basename ( const Pathname name_tv) [static]

References asString(), empty(), and prfx_i.

Pathname Pathname::cat ( const Pathname r) const [inline]

References cat().

Referenced by absolutename(), cat(), operator+(), and relativename().

Pathname Pathname::cat ( const Pathname l,
const Pathname r 
) [static]

References asString(), empty(), and prfx_i.

Pathname Pathname::dirname ( ) const [inline]

References dirname().

Referenced by dirname(), open_logfile(), and IniParser::write().

Pathname Pathname::dirname ( const Pathname name_tv) [static]

References empty(), name_t, and prfx_i.

bool Pathname::empty ( ) const [inline]
bool Pathname::equal ( const Pathname r) const [inline]

References equal().

Referenced by equal(), operator!=(), and operator==().

bool Pathname::equal ( const Pathname l,
const Pathname r 
) [static]

References asString().

Pathname Pathname::extend ( const std::string &  r) const [inline]

References extend().

Referenced by extend().

Pathname Pathname::extend ( const Pathname l,
const std::string &  r 
) [static]

References asString().

Pathname & Pathname::operator+= ( const Pathname path_tv) [inline]
Pathname & Pathname::operator= ( const Pathname path_tv) [inline]

References name_t, and prfx_i.

bool Pathname::relative ( ) const [inline]

References empty(), name_t, and prfx_i.

Referenced by absolutename(), and PathInfo::assert_dir().

static Pathname Pathname::relativename ( const Pathname name_tv) [inline, static]

References absolute(), and cat().

Pathname Pathname::relativename ( ) const [inline]

References relativename().

Referenced by relativename().


Member Data Documentation

std::string Pathname::name_t [private]
std::string::size_type Pathname::prfx_i [private]

The documentation for this class was generated from the following files:

Generated on a sunny day for yast2-core by doxygen 1.7.3