Public Member Functions | Public Attributes

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 (LPCXSSTR path)
 XPath (const XS_String &path)
void init (LPCXSSTR path)

Public Attributes

bool _absolute

Detailed Description

Definition at line 1442 of file xmlstorage.h.


Constructor & Destructor Documentation

XMLStorage::XPath::XPath (  ) [inline]

Definition at line 1444 of file xmlstorage.h.

: _absolute(false) {}
XMLStorage::XPath::XPath ( LPCXSSTR  path ) [inline]

Definition at line 1445 of file xmlstorage.h.

References init().

{init(path);}

Here is the call graph for this function:

XMLStorage::XPath::XPath ( const XS_String path ) [inline]

Definition at line 1446 of file xmlstorage.h.

References init().

{init(path.c_str());}

Here is the call graph for this function:


Member Function Documentation

void XMLStorage::XPath::init ( LPCXSSTR  path )

Definition at line 243 of file xmlstorage.cpp.

References _absolute, and XMLStorage::XPathElement::parse().

Referenced by XPath().

{
     // Is this an absolute path?
    if (*path == '/') {
        _absolute = true;
        ++path;
    } else
        _absolute = false;

     // parse path
    while(*path) {
        XPathElement elem;

        path = elem.parse(path);

        if (!path)
            break;

        push_back(elem);

        if (*path == '/')
            ++path;
    }
}

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 1450 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: