XMLStorage::XPath Struct Reference

#include <xmlstorage.h>

Inheritance diagram for XMLStorage::XPath:

Inheritance graph
[legend]
Collaboration diagram for XMLStorage::XPath:

Collaboration graph
[legend]

List of all members.

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.

00843 {

XMLStorage::XPath::XPath ( const char *  path  )  [inline]

Definition at line 844 of file xmlstorage.h.

00844 : _absolute(false) {}

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

Definition at line 845 of file xmlstorage.h.

00845 {init(path);}


Member Function Documentation

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 }

Here is the call graph for this function:


Member Data Documentation

bool XMLStorage::XPath::_absolute

Definition at line 849 of file xmlstorage.h.

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


The documentation for this struct was generated from the following files:
Generated on Mon Aug 30 00:05:51 2010 for XMLStorage/C++ by  doxygen 1.5.4