ReactOS  r76032
XMLStorage::XPath Struct Reference

#include <xmlstorage.h>

Inheritance diagram for XMLStorage::XPath:
Collaboration diagram for XMLStorage::XPath:

Public Member Functions

 XPath ()
 
 XPath (const char *path)
 
 XPath (const std::string path)
 
void init (const char *path)
 

Public Attributes

bool _absolute
 

Detailed Description

Definition at line 841 of file xmlstorage.h.

Constructor & Destructor Documentation

XMLStorage::XPath::XPath ( )
inline

Definition at line 843 of file xmlstorage.h.

843 : _absolute(false) {}
XMLStorage::XPath::XPath ( const char path)
inline

Definition at line 844 of file xmlstorage.h.

844 {init(path);}
Definition: services.c:311
void init(const char *path)
Definition: xmlstorage.cpp:225
XMLStorage::XPath::XPath ( const std::string  path)
inline

Definition at line 845 of file xmlstorage.h.

845 {init(path.c_str());}
Definition: services.c:311
void init(const char *path)
Definition: xmlstorage.cpp:225

Member Function Documentation

void XMLStorage::XPath::init ( const char path)

Definition at line 225 of file xmlstorage.cpp.

Referenced by XPath().

226 {
227  // Is this an absolute path?
228  if (*path == '/') {
229  _absolute = true;
230  ++path;
231  } else
232  _absolute = false;
233 
234  // parse path
235  while(*path) {
236  XPathElement elem;
237 
238  path = elem.parse(path);
239 
240  if (!path)
241  break;
242 
243  if (*path == '/')
244  ++path;
245 
246  push_back(elem);
247  }
248 }
GLsizei const GLchar ** path
Definition: glext.h:7234
static size_t elem
Definition: string.c:67
Definition: services.c:311

Member Data Documentation

bool XMLStorage::XPath::_absolute

Definition at line 849 of file xmlstorage.h.

Referenced by XMLStorage::XMLPos::go(), XMLStorage::const_XMLPos::go(), and init().


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