#include <xmlstorage.h>


| Public Member Functions | |
| XPath () | |
| XPath (LPCXSSTR path) | |
| XPath (const XS_String &path) | |
| void | init (LPCXSSTR path) | 
| Public Attributes | |
| bool | _absolute | 
Definition at line 1442 of file xmlstorage.h.
| 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);}

| XMLStorage::XPath::XPath | ( | const XS_String & | path ) |  [inline] | 
Definition at line 1446 of file xmlstorage.h.
References init().
{init(path.c_str());}

| 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;
    }
}


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