Main Page |
Namespaces |
Classes |
Compounds |
Files |
Compound Members |
Related
Utils::XMLNode Class ReferenceThe base class for all XMLNodes.
More...
#include <Utils.h>
Inheritance diagram for Utils::XMLNode:
List of all members.
|
Public Methods |
bool | hasChildren () |
| True if any children.
|
bool | hasRightSibling () |
| True if a Sibling to the right in the tree exists.
|
bool | hasParent () |
| True if a parentnode exists (only the top XML node is false!).
|
void | addChild (XMLNode *ch) |
| Adds a child to node. It will be added to the right of other children.
|
virtual string | printString () |
| Debug info : name , pointer, path.
|
virtual void | print () |
| Used for print debug tree.
|
| XMLNode () |
| Constructor.
|
| ~XMLNode () |
| Destructor.
|
virtual std::string | getXML (int indent) |
| Used when constructing a XML text representation.
|
virtual string | pathName () |
| Used in path() to print path.
|
virtual string | path () |
| the path to this element (I.E.: "/html/body/p/" matches text in toplevel paragraphs in a html doc.)
|
string | getTagText (string tag) |
TagNode * | getTag (string tag) |
Public Attributes |
XMLNode * | firstChild |
| Pointer to child.
|
XMLNode * | rightSibling |
| Pointer to first sibling to the right (in a graphical tree view).
|
XMLNode * | parent |
| Pointer to parent.
|
Detailed Description
The base class for all XMLNodes.
Definition at line 84 of file Utils.h.
Member Function Documentation
TagNode * Utils::XMLNode::getTag |
( |
string |
tag |
) |
|
|
string Utils::XMLNode::getTagText |
( |
string |
tag |
) |
|
|
|
Returns the text of the first node encountered with the tag 'tag' Returns "" if this cannot be matched. ! Notice that the tag must NOT nest other tags.
Definition at line 163 of file Utils.cpp.
References firstChild, hasChildren(), and rightSibling. |
The documentation for this class was generated from the following files:
Syntopia Project. Visit the web page,
or the SourceForge page.
Docs made by Doxygen.
Email: Mikael Christensen
|