#include <xmlstorage.h>


Public Member Functions | |
| XPath () | |
| XPath (const char *path) | |
| XPath (const std::string path) | |
| void | init (const char *path) |
Public Attributes | |
| bool | _absolute |
Definition at line 841 of file xmlstorage.h.
| XMLStorage::XPath::XPath | ( | ) | [inline] |
| XMLStorage::XPath::XPath | ( | const char * | path | ) | [inline] |
| XMLStorage::XPath::XPath | ( | const std::string | path | ) | [inline] |
| void XMLStorage::XPath::init | ( | const char * | path | ) |
Definition at line 223 of file xmlstorage.cpp.
References _absolute, and XMLStorage::XPathElement::parse().
00224 { 00225 // Is this an absolute path? 00226 if (*path == '/') { 00227 _absolute = true; 00228 ++path; 00229 } else 00230 _absolute = false; 00231 00232 // parse path 00233 while(*path) { 00234 XPathElement elem; 00235 00236 path = elem.parse(path); 00237 00238 if (!path) 00239 break; 00240 00241 if (*path == '/') 00242 ++path; 00243 00244 push_back(elem); 00245 } 00246 }

Definition at line 849 of file xmlstorage.h.
Referenced by XMLStorage::const_XMLPos::go(), XMLStorage::XMLPos::go(), and init().
1.5.4