#include <lsxml.h>
Inheritance diagram for lsxml::XmlNode< _Ty >:
Public Member Functions | |
XmlNode (XmlNodeType type) | |
ctor | |
XmlNode (XmlNodeType type, XmlString< _Ty > *value) | |
ctor | |
XmlNode (XmlNodeType type, const _Ty *value) | |
ctor | |
XmlNodeType | GetType () const |
returns this node's type | |
const XmlString< _Ty > * | GetValue () const |
returns this node's value | |
void | SetValue (XmlString< _Ty > *val) |
sets this node's value | |
void | SetValue (const _Ty *val) |
sets this node's value | |
bool | HasValue () const |
checks if the node has a value | |
const _Ty * | GetValueStr () const |
returns the value string | |
bool | HasParent () const |
checks if the node has a parent node | |
bool | HasChildren () const |
checks if the node has any child nodes | |
XmlNode< _Ty > * | GetParent () |
returns the parent node | |
const XmlNode< _Ty > * | GetParent () const |
returns the parent node | |
XmlNode< _Ty > * | GetFirstChild () |
returns the first child node | |
const XmlNode< _Ty > * | GetFirstChild () const |
returns the first child node | |
XmlNode< _Ty > * | GetLastChild () |
returns the last child node | |
const XmlNode< _Ty > * | GetLastChild () const |
returns the last child node | |
XmlNode< _Ty > * | GetNextSibling () |
returns the next sibling node | |
const XmlNode< _Ty > * | GetNextSibling () const |
returns the next sibling node | |
XmlNode< _Ty > * | GetPrevSibling () |
returns the previous sibling node | |
const XmlNode< _Ty > * | GetPrevSibling () const |
returns the previous sibling node | |
virtual void | AppendChild (XmlNode< _Ty > *node) |
appends a child node to this element | |
virtual bool | RemoveChild (XmlNode< _Ty > *node) |
removes a child node | |
virtual void | RemoveAll () |
removes all child nodes | |
const XmlAttribute< _Ty > * | GetAttributes () const |
returns the node's attributes | |
XmlAttribute< _Ty > * | GetAttributes () |
returns the node's attributes | |
const XmlAttribute< _Ty > * | GetAttribute (const _Ty *name) const |
returns an attribute with the specified name | |
XmlAttribute< _Ty > * | GetAttribute (const _Ty *name) |
returns an attribute with the specified name | |
const _Ty * | GetAttributeStr (const _Ty *name, const _Ty *defValue=0) const |
returns the attribute value with the specified name | |
int | GetAttributeInt (const _Ty *name, int defValue=0) const |
returns the attribute value with the specified name | |
const XmlElement< _Ty > * | GetNextElement () const |
returns a sibling element | |
XmlElement< _Ty > * | GetNextElement () |
returns a sibling element | |
XmlElement< _Ty > * | GetFirstChildElement () |
returns the first child node | |
const XmlElement< _Ty > * | GetFirstChildElement () const |
returns the first child node | |
const XmlElement< _Ty > * | GetNextElement (const _Ty *name) const |
returns a sibling element with the specified tag name | |
XmlElement< _Ty > * | GetNextElement (const _Ty *name) |
returns a sibling element with the specified tag name | |
const XmlElement< _Ty > * | GetChildElement (const _Ty *name) const |
returns a child element with the specified tag name | |
XmlElement< _Ty > * | GetChildElement (const _Ty *name) |
returns a child element with the specified tag name | |
const XmlElement< _Ty > * | GetDescendant (const _Ty *name) const |
returns a descendant child element with the specified tag name | |
XmlElement< _Ty > * | GetDescendant (const _Ty *name) |
returns a descendant child element with the specified tag name | |
void | SetAttributes (XmlAttribute< _Ty > *attribs) |
sets the node's attributes | |
XmlNode (XmlNodeType type) | |
Constructor. | |
XmlNode (XmlNodeType type, XmlString< _Ty > *value) | |
Constructor. | |
XmlNode (XmlNodeType type, const _Ty *value) | |
Constructor. | |
XmlNodeType | GetType () const |
Returns this node's type. | |
const XmlString< _Ty > * | GetValue () const |
Returns this node's value. | |
void | SetValue (XmlString< _Ty > *val) |
Sets this node's value. | |
void | SetValue (const _Ty *val) |
Sets this node's value. | |
bool | HasValue () const |
Checks if the node has a value. | |
const _Ty * | GetValueStr () const |
Returns the value string. | |
bool | HasParent () const |
Checks if the node has a parent node. | |
bool | HasChildren () const |
Checks if the node has any child nodes. | |
XmlNode< _Ty > * | GetParent () |
Returns the parent node. | |
const XmlNode< _Ty > * | GetParent () const |
Returns the parent node. | |
XmlNode< _Ty > * | GetFirstChild () |
Returns the first child node. | |
const XmlNode< _Ty > * | GetFirstChild () const |
Returns the first child node. | |
XmlNode< _Ty > * | GetLastChild () |
Returns the last child node. | |
const XmlNode< _Ty > * | GetLastChild () const |
Returns the last child node. | |
XmlNode< _Ty > * | GetNextSibling () |
Returns the next sibling node. | |
const XmlNode< _Ty > * | GetNextSibling () const |
Returns the next sibling node. | |
XmlNode< _Ty > * | GetPrevSibling () |
Returns the previous sibling node. | |
const XmlNode< _Ty > * | GetPrevSibling () const |
Returns the previous sibling node. | |
virtual void | AppendChild (XmlNode< _Ty > *node) |
Appends a child node to this element. | |
virtual bool | RemoveChild (XmlNode< _Ty > *node) |
Removes a child node. | |
virtual void | RemoveAll () |
Removes all child nodes. | |
const XmlAttribute< _Ty > * | GetAttributes () const |
Returns the node's attributes. | |
XmlAttribute< _Ty > * | GetAttributes () |
Returns the node's attributes. | |
const XmlAttribute< _Ty > * | GetAttribute (const _Ty *name) const |
Returns an attribute with the specified name. | |
XmlAttribute< _Ty > * | GetAttribute (const _Ty *name) |
Returns an attribute with the specified name. | |
const _Ty * | GetAttributeStr (const _Ty *name, const _Ty *defValue=0) const |
Returns the attribute value with the specified name. | |
int | GetAttributeInt (const _Ty *name, int defValue=0) const |
Returns the attribute value with the specified name. | |
const XmlElement< _Ty > * | GetNextElement () const |
Returns a sibling element. | |
XmlElement< _Ty > * | GetNextElement () |
Returns a sibling element. | |
XmlElement< _Ty > * | GetFirstChildElement () |
Returns the first child node. | |
const XmlElement< _Ty > * | GetFirstChildElement () const |
Returns the first child node. | |
const XmlElement< _Ty > * | GetNextElement (const _Ty *name) const |
Returns a sibling element with the specified tag name. | |
XmlElement< _Ty > * | GetNextElement (const _Ty *name) |
Returns a sibling element with the specified tag name. | |
const XmlElement< _Ty > * | GetChildElement (const _Ty *name) const |
Returns a child element with the specified tag name. | |
XmlElement< _Ty > * | GetChildElement (const _Ty *name) |
Returns a child element with the specified tag name. | |
const XmlElement< _Ty > * | GetDescendant (const _Ty *name) const |
Returns a descendant child element with the specified tag name. | |
XmlElement< _Ty > * | GetDescendant (const _Ty *name) |
Returns a descendant child element with the specified tag name. | |
void | SetAttributes (XmlAttribute< _Ty > *attribs) |
Sets the node's attributes. |
Base class for all DOM classes
lsxml::XmlNode< _Ty >::XmlNode | ( | XmlNodeType | type | ) | [inline] |
Constructor.
type | the node's type |
lsxml::XmlNode< _Ty >::XmlNode | ( | XmlNodeType | type, | |
XmlString< _Ty > * | value | |||
) | [inline] |
Constructor.
type | the node's type | |
value | the node's value |
lsxml::XmlNode< _Ty >::XmlNode | ( | XmlNodeType | type, | |
const _Ty * | value | |||
) |
Constructor.
type | the node's type | |
value | the node's value |