#include <gxPath.h>
Public Types | |
| typedef std::list< std::string > | segments_t |
| typedef segments_t::iterator | iterator |
Public Member Functions | |
| gxPath () | |
| virtual | ~gxPath () |
| void | appendSegment (const char *seg) |
| Append segment to this path. | |
| iterator | begin () |
| Returns an interator to the first segment in the path. | |
| iterator | end () |
| Returns an interator which points to the non-existent element just after the end of the collection. | |
| std::string | getDevice () |
| Return the device portion of the path (ex. | |
| segments_t & | getSegments () |
| Return the collection of segments. | |
| bool | isAbsolute () |
| Specifies whether this is an absolute path (true -
| |
| std::string | toOSString () |
| Returns an OS compatible string representation of this path. | |
| gxPath | upToSegment (iterator segment) |
| Create a new path containing all segments of this path up to but not including the segment specified by the iterator. | |
Static Public Member Functions | |
| static gxPath | fromOSString (const char *pathString) |
| Create a new path from the given OS path string. | |
Loosely inspired by the Eclipse Path/IPath classes.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Append segment to this path.
|
|
|
Returns an interator to the first segment in the path. Works like begin in a typical STL class. Must test against the value of end to determine if caller has reached the end of the collection. |
|
|
Returns an interator which points to the non-existent element just after the end of the collection.
|
|
|
Create a new path from the given OS path string.
|
|
|
Return the device portion of the path (ex. "C:"). If there is no device, return "" |
|
|
Return the collection of segments.
|
|
|
Specifies whether this is an absolute path (true -
) or a relative path (false "a\b\c").
|
|
|
Returns an OS compatible string representation of this path.
|
|
|
Create a new path containing all segments of this path up to but not including the segment specified by the iterator.
|
1.4.5