111 |
*/ |
*/ |
112 |
static Path fromWindows(std::string path); |
static Path fromWindows(std::string path); |
113 |
|
|
114 |
|
/** |
115 |
|
* Returns the name of the file or directory represented by |
116 |
|
* this path in abstract/raw form. This is the last name in |
117 |
|
* the path's name sequence. |
118 |
|
*/ |
119 |
|
std::string getName(); |
120 |
|
|
121 |
|
/** |
122 |
|
* Returns the name of the file or directory |
123 |
|
* represented by the specified path in abstract/raw form. |
124 |
|
* This is the last name in the path's name sequence. |
125 |
|
*/ |
126 |
|
static std::string getName(std::string path); |
127 |
|
|
128 |
|
/** |
129 |
|
* Returns the last name in the path's name sequence |
130 |
|
* of this path with the file extension stripped off. |
131 |
|
*/ |
132 |
|
std::string getBaseName(); |
133 |
|
|
134 |
|
/** |
135 |
|
* Returns the last name in the path's name sequence |
136 |
|
* of the specified path with the file extension stripped off. |
137 |
|
*/ |
138 |
|
static std::string getBaseName(std::string path); |
139 |
|
|
140 |
private: |
private: |
141 |
std::vector<std::string> elements; ///< stores the path names raw = unencoded, each element is one node of the path |
std::vector<std::string> elements; ///< stores the path names raw = unencoded, each element is one node of the path |
142 |
char drive; |
char drive; |