Public Member Functions | Public Attributes | Private Member Functions

XMLStorage::XPath Class Reference

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 (string path)

Public Attributes

bool _absolute

Private Member Functions

bool init (string path)

Detailed Description

Definition at line 44 of file XPath.cs.


Constructor & Destructor Documentation

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

Definition at line 48 of file XPath.cs.

References _absolute.

    {
        _absolute = false;
    }
XMLStorage::XPath::XPath ( string  path ) [inline]

Definition at line 53 of file XPath.cs.

References _absolute, and init().

    {
        _absolute = init(path);
    }

Here is the call graph for this function:


Member Function Documentation

bool XMLStorage::XPath::init ( string  path ) [inline, private]

Definition at line 58 of file XPath.cs.

References XMLStorage::XPathElement::parse().

Referenced by XPath().

    {
        bool absolute;
        int idx = 0;

         // Is this an absolute path?
        if (path.Length>0 && path[0]=='/') {
            absolute = true;

            ++idx;
        } else
            absolute = false;

         // parse path
        while(idx < path.Length) {
            XPathElement elem = new XPathElement();

            idx = elem.parse(path, idx);

            if (idx == -1)
                break;

            AddLast(elem);

            if (idx >= path.Length)
                break;

            if (path[idx] == '/')
                ++idx;
        }

        return absolute;
    }

Here is the call graph for this function:


Member Data Documentation

Definition at line 46 of file XPath.cs.

Referenced by XMLStorage::XMLStreamReader::go(), XMLStorage::XMLPos::go(), and XPath().


The documentation for this class was generated from the following file: