Public Member Functions | |
PathName () | |
PathName (const String &name) throw (std::invalid_argument) | |
PathName (const PathName &pn) | |
virtual | ~PathName () |
virtual String | className () const |
virtual void | parent () |
!! should check for valid dir name | |
virtual void | canonical () |
virtual String | str () const |
virtual PathName | path () const |
virtual PathName | name () const |
virtual String | extension () const |
virtual bool | isRelative () const |
virtual bool | isAbsolute () const |
virtual bool | isSimple () const |
virtual PathName & | prepend (const String &prefix) |
virtual Int | size () const |
virtual bool | empty () const |
virtual String | operator[] (Int i) const |
virtual String | operator() (Int i) const |
virtual bool | operator== (const PathName &pn) const |
virtual bool | operator!= (const PathName &pn) const |
virtual bool | operator== (const String &pn) const |
virtual bool | operator!= (const String &pn) const |
virtual PathName & | operator= (const PathName &pn) |
virtual PathName & | operator+= (const PathName &pn) |
virtual Object & | clone () const |
virtual bool | isSameKindAs (const Object &) const |
Static Public Member Functions | |
bool | validName (const String &name) |
bool | validPath (const String &name) |
!! should check for no '/'s, only one '.', first is alpha etc. | |
Static Public Attributes | |
const char | separator = '/' |
const String | currentDirectory |
const String | parentDirectory |
Protected Types | |
typedef array< PathComponent > | PathComponents |
Protected Attributes | |
bool | relative |
PathComponents | _path |
|
|
|
|
|
|
|
|
|
|
|
|
|
return the name of the object's class type. Must be defined by derived classes. Implements base::Object. Definition at line 47 of file PathName. References base::String. |
|
return a shallow copy, with Object& return type. Must be defined by derived classes. Implements base::Cloneable. |
|
Definition at line 109 of file PathName. References _path, and base::array< T >::size(). |
|
Referenced by base::File::extension(), and base::CacheFile::extension(). |
|
Definition at line 93 of file PathName. References relative. |
|
Definition at line 90 of file PathName. References relative. |
|
|
|
Definition at line 96 of file PathName. References _path, relative, and base::array< T >::size(). |
|
Referenced by base::VEntry::name(), and base::CacheFile::pathName(). |
|
|
|
|
|
Definition at line 119 of file PathName. References base::Int, operator[](), and base::String. |
|
|
|
|
|
|
|
|
|
Definition at line 112 of file PathName. References _path, Exception, base::Int, size(), and base::String. Referenced by operator()(). |
|
!! should check for valid dir name
|
|
Referenced by base::VEntry::path(). |
|
Definition at line 99 of file PathName. References base::String. |
|
Definition at line 106 of file PathName. References _path, base::Int, and base::array< T >::size(). Referenced by operator[](). |
|
|
|
Definition at line 53 of file PathName. References base::String. |
|
!! should check for no '/'s, only one '.', first is alpha etc.
Definition at line 54 of file PathName. References base::String. |
|
Definition at line 84 of file PathName. Referenced by empty(), isSimple(), operator[](), and size(). |
|
|
|
|
|
Definition at line 82 of file PathName. Referenced by isAbsolute(), isRelative(), and isSimple(). |
|
|