ReactOS 0.4.16-dev-401-g45b008d
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

◆ XPath() [1/3]

XMLStorage::XPath::XPath ( )
inline

Definition at line 843 of file xmlstorage.h.

843: _absolute(false) {}

◆ XPath() [2/3]

XMLStorage::XPath::XPath ( const char path)
inline

Definition at line 844 of file xmlstorage.h.

844{init(path);}
static int init
Definition: wintirpc.c:33

◆ XPath() [3/3]

XMLStorage::XPath::XPath ( const std::string  path)
inline

Definition at line 845 of file xmlstorage.h.

845{init(path.c_str());}

Member Function Documentation

◆ init()

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

Definition at line 225 of file xmlstorage.cpp.

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}
static size_t elem
Definition: string.c:68

Member Data Documentation

◆ _absolute

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: