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 name_t, prfx_i, DirStack::Push(), and DirStack::str().

Referenced by Pathname().

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

References name_t, and prfx_i.

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

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

bool Pathname::empty (  )  const [inline]

bool Pathname::absolute (  )  const [inline]

References empty(), name_t, and prfx_i.

Referenced by relativename().

bool Pathname::relative (  )  const [inline]

References empty(), name_t, and prfx_i.

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

Pathname Pathname::dirname (  )  const [inline]

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

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

Referenced by PathInfo::copy_dir().

Pathname Pathname::absolutename (  )  const [inline]

Pathname Pathname::relativename (  )  const [inline]

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

References empty(), name_t, and prfx_i.

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

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

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

References cat(), and relative().

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

References absolute(), and cat().

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

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

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

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

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

References asString().

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

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

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

References asString().


Member Data Documentation

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

std::string Pathname::name_t [private]


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

Generated on Wed Dec 3 07:24:55 2008 for yast2-core by  doxygen 1.5.6