|
| SXmlNode (pugi::xml_node node) |
| Constructor for SXmlNode.
|
|
| SXmlNode (const IXmlNode *src) |
| Constructor for SXmlNode from an IXmlNode pointer.
|
|
| SXmlNode (const SXmlNode &src) |
| Copy constructor for SXmlNode.
|
|
| SXmlNode (LPVOID pData=NULL) |
| Constructor for SXmlNode with an optional private data pointer.
|
|
void | ToString (IStringW *out) SCONST OVERRIDE |
| Converts the node to a string representation.
|
|
LPVOID | GetPrivPtr () SCONST OVERRIDE |
| Gets the private data pointer.
|
|
BOOL | Empty () SCONST OVERRIDE |
| Checks if the node is empty.
|
|
const wchar_t * | Name () SCONST OVERRIDE |
| Gets the node name.
|
|
const wchar_t * | Value () SCONST OVERRIDE |
| Gets the node value.
|
|
const wchar_t * | Text () SCONST OVERRIDE |
| Gets the node text.
|
|
BOOL | set_userdata (int data) OVERRIDE |
| Sets user data for the node.
|
|
int | get_userdata () SCONST OVERRIDE |
| Gets user data for the node.
|
|
IXmlAttr * | Attribute (const wchar_t *name, BOOL bCaseSensitive) SCONST OVERRIDE |
| Gets an attribute by name.
|
|
IXmlAttr * | FirstAttribute () SCONST OVERRIDE |
| Gets the first attribute in the attribute list.
|
|
IXmlAttr * | LastAttribute () SCONST OVERRIDE |
| Gets the last attribute in the attribute list.
|
|
IXmlNode * | Child (const wchar_t *name, BOOL bCaseSensitive) SCONST OVERRIDE |
| Gets a child node by name.
|
|
IXmlNode * | FirstChild () SCONST OVERRIDE |
| Gets the first child node.
|
|
IXmlNode * | LastChild () SCONST OVERRIDE |
| Gets the last child node.
|
|
IXmlNode * | NextSibling () SCONST OVERRIDE |
| Gets the next sibling node.
|
|
IXmlNode * | PrevSibling () SCONST OVERRIDE |
| Gets the previous sibling node.
|
|
IXmlNode * | NextSibling2 (const wchar_t *name, BOOL bCaseSensitive) SCONST OVERRIDE |
| Gets the next sibling node by name.
|
|
IXmlNode * | PrevSibling2 (const wchar_t *name, BOOL bCaseSensitive) SCONST OVERRIDE |
| Gets the previous sibling node by name.
|
|
IXmlNode * | AppendChild (const wchar_t *name) OVERRIDE |
| Appends a child node with the specified name.
|
|
IXmlNode * | PrependChild (const wchar_t *name) OVERRIDE |
| Prepends a child node with the specified name.
|
|
IXmlNode * | AppendCopyNode (const IXmlNode *proto) OVERRIDE |
| Appends a copy of the specified node as a child.
|
|
IXmlNode * | PrependCopyNode (const IXmlNode *proto) OVERRIDE |
| Prepends a copy of the specified node as a child.
|
|
IXmlAttr * | AppendAttribute (const wchar_t *name) OVERRIDE |
| Appends an attribute with the specified name.
|
|
IXmlAttr * | PrependAttribute (const wchar_t *name) OVERRIDE |
| Prepends an attribute with the specified name.
|
|
IXmlAttr * | AppendCopyAttribute (const IXmlAttr *proto) OVERRIDE |
| Appends a copy of the specified attribute to the node.
|
|
IXmlAttr * | PrependCopyAttribute (const IXmlAttr *proto) OVERRIDE |
| Prepends a copy of the specified attribute to the node.
|
|
BOOL | RemoveAttribute (const wchar_t *name) OVERRIDE |
| Removes an attribute by name.
|
|
BOOL | RemoveChild (const wchar_t *name) OVERRIDE |
| Removes the child node with the specified name.
|
|
BOOL | RemoveAllChilden () OVERRIDE |
| Removes all child nodes from the node.
|
|
bool | operator== (const SXmlNode &src) const |
| Checks if two SXmlNode objects are equal.
|
|
bool | operator!= (const SXmlNode &src) const |
| Checks if two SXmlNode objects are not equal.
|
|
| operator bool () const |
| Checks if the node is empty.
|
|
bool | empty () const |
| Checks if the node is empty.
|
|
XmlNodeType | type () const |
| Gets the type of the node.
|
|
const wchar_t * | name () const |
| Gets the name of the node.
|
|
const wchar_t * | value () const |
| Gets the value of the node.
|
|
SXmlAttr | first_attribute () const |
| Gets the first attribute of the node.
|
|
SXmlAttr | last_attribute () const |
| Gets the last attribute of the node.
|
|
SXmlNode | first_child () const |
| Gets the first child node of the node.
|
|
SXmlNode | last_child () const |
| Gets the last child node of the node.
|
|
SXmlNode | next_sibling () const |
| Gets the next sibling node in the children list of the parent node.
|
|
SXmlNode | previous_sibling () const |
| Gets the previous sibling node in the children list of the parent node.
|
|
SXmlNode | parent () const |
| Gets the parent node of the node.
|
|
SXmlNode | root () const |
| Gets the root node of the DOM tree this node belongs to.
|
|
SXmlNode | child (const wchar_t *name, bool bCaseSensitive=false) const |
| Gets the child node, attribute, or next/previous sibling with the specified name.
|
|
SXmlAttr | attribute (const wchar_t *name, bool bCaseSensitive=false) const |
| Gets the attribute with the specified name.
|
|
SXmlNode | next_sibling (const wchar_t *name, bool bCaseSensitive=false) const |
| Gets the next sibling node with the specified name.
|
|
SXmlNode | previous_sibling (const wchar_t *name, bool bCaseSensitive=false) const |
| Gets the previous sibling node with the specified name.
|
|
SXmlAttr | attribute (const wchar_t *name, SXmlAttr &hint, bool bCaseSensitive=false) const |
| Gets the attribute with the specified name, starting the search from a hint.
|
|
const wchar_t * | child_value () const |
| Gets the child value of the current node.
|
|
const wchar_t * | child_value (const wchar_t *name, bool bCaseSensitive=false) const |
| Gets the child value of the child node with the specified name.
|
|
bool | set_name (const wchar_t *rhs) |
| Sets the name of the node.
|
|
bool | set_value (const wchar_t *rhs) |
| Sets the value of the node.
|
|
SXmlAttr | append_attribute (const wchar_t *name) |
| Adds an attribute with the specified name.
|
|
SXmlAttr | prepend_attribute (const wchar_t *name) |
| Prepends an attribute with the specified name.
|
|
SXmlAttr | insert_attribute_after (const wchar_t *name, const SXmlAttr &attr) |
| Inserts an attribute with the specified name after the specified attribute.
|
|
SXmlAttr | insert_attribute_before (const wchar_t *name, const SXmlAttr &attr) |
| Inserts an attribute with the specified name before the specified attribute.
|
|
SXmlAttr | append_copy (const SXmlAttr &proto) |
| Adds a copy of the specified attribute.
|
|
SXmlAttr | prepend_copy (const SXmlAttr &proto) |
| Prepends a copy of the specified attribute.
|
|
SXmlAttr | insert_copy_after (const SXmlAttr &proto, const SXmlAttr &attr) |
| Inserts a copy of the specified attribute after the specified attribute.
|
|
SXmlAttr | insert_copy_before (const SXmlAttr &proto, const SXmlAttr &attr) |
| Inserts a copy of the specified attribute before the specified attribute.
|
|
SXmlNode | append_child (XmlNodeType type=node_element) |
| Adds a child node with the specified type.
|
|
SXmlNode | prepend_child (XmlNodeType type=node_element) |
| Prepends a child node with the specified type.
|
|
SXmlNode | insert_child_after (XmlNodeType type, const SXmlNode &node) |
| Inserts a child node with the specified type after the specified node.
|
|
SXmlNode | insert_child_before (XmlNodeType type, const SXmlNode &node) |
| Inserts a child node with the specified type before the specified node.
|
|
SXmlNode | append_child (const wchar_t *name) |
| Adds a child element with the specified name.
|
|
SXmlNode | prepend_child (const wchar_t *name) |
| Prepends a child element with the specified name.
|
|
SXmlNode | insert_child_after (const wchar_t *name, const SXmlNode &node) |
| Inserts a child element with the specified name after the specified node.
|
|
SXmlNode | insert_child_before (const wchar_t *name, const SXmlNode &node) |
| Inserts a child element with the specified name before the specified node.
|
|
SXmlNode | append_copy (const SXmlNode &proto) |
| Adds a copy of the specified node as a child.
|
|
SXmlNode | prepend_copy (const SXmlNode &proto) |
| Prepends a copy of the specified node as a child.
|
|
SXmlNode | insert_copy_after (const SXmlNode &proto, const SXmlNode &node) |
| Inserts a copy of the specified node as a child after the specified node.
|
|
SXmlNode | insert_copy_before (const SXmlNode &proto, const SXmlNode &node) |
| Inserts a copy of the specified node as a child before the specified node.
|
|
SXmlNode | append_move (const SXmlNode &moved) |
| Moves the specified node to become a child of this node.
|
|
SXmlNode | prepend_move (const SXmlNode &moved) |
| Prepends the specified node to become a child of this node.
|
|
SXmlNode | insert_move_after (const SXmlNode &moved, const SXmlNode &node) |
| Inserts the specified node to become a child of this node after the specified node.
|
|
SXmlNode | insert_move_before (const SXmlNode &moved, const SXmlNode &node) |
| Inserts the specified node to become a child of this node before the specified node.
|
|
bool | remove_attribute (const SXmlAttr &a) |
| Removes the specified attribute.
|
|
bool | remove_attribute (const wchar_t *name) |
| Removes the attribute with the specified name.
|
|
bool | remove_attributes () |
| Removes all attributes from the node.
|
|
bool | remove_child (const SXmlNode &n) |
| Removes the specified child node.
|
|
bool | remove_child (const wchar_t *name) |
| Removes the child node with the specified name.
|
|
bool | remove_children () |
| Removes all child nodes from the node.
|
|
Class representing an XML node.
This class provides methods to manipulate and access XML nodes.
Definition at line 351 of file SXml.h.