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 1365 of file xmlstorage.h.


Constructor & Destructor Documentation

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

Definition at line 1367 of file xmlstorage.h.

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

Definition at line 1368 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 1369 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 244 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


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

ROS Explorer Source Code Documentation
generated on 02.01.2013 by doxygen

ROS Explorer Homepage