Public Member Functions | |
const XMLDocument * | GetDocument () const |
Get the XMLDocument that owns this XMLNode. More... | |
XMLDocument * | GetDocument () |
Get the XMLDocument that owns this XMLNode. More... | |
virtual XMLElement * | ToElement () |
Safely cast to an Element, or null. More... | |
virtual XMLText * | ToText () |
Safely cast to Text, or null. More... | |
virtual XMLComment * | ToComment () |
Safely cast to a Comment, or null. More... | |
virtual XMLDocument * | ToDocument () |
Safely cast to a Document, or null. More... | |
virtual XMLDeclaration * | ToDeclaration () |
Safely cast to a Declaration, or null. More... | |
virtual XMLUnknown * | ToUnknown () |
Safely cast to an Unknown, or null. More... | |
virtual const XMLElement * | ToElement () const |
virtual const XMLText * | ToText () const |
virtual const XMLComment * | ToComment () const |
virtual const XMLDocument * | ToDocument () const |
virtual const XMLDeclaration * | ToDeclaration () const |
virtual const XMLUnknown * | ToUnknown () const |
const char * | Value () const |
void | SetValue (const char *val, bool staticMem=false) |
int | GetLineNum () const |
Gets the line number the node is in, if the document was parsed from a file. More... | |
const XMLNode * | Parent () const |
Get the parent of this node on the DOM. More... | |
XMLNode * | Parent () |
bool | NoChildren () const |
Returns true if this node has no children. More... | |
const XMLNode * | FirstChild () const |
Get the first child node, or null if none exists. More... | |
XMLNode * | FirstChild () |
const XMLElement * | FirstChildElement (const char *name=nullptr) const |
XMLElement * | FirstChildElement (const char *name=nullptr) |
const XMLNode * | LastChild () const |
Get the last child node, or null if none exists. More... | |
XMLNode * | LastChild () |
const XMLElement * | LastChildElement (const char *name=nullptr) const |
XMLElement * | LastChildElement (const char *name=nullptr) |
const XMLNode * | PreviousSibling () const |
Get the previous(left) sibling node of this node. More... | |
XMLNode * | PreviousSibling () |
const XMLElement * | PreviousSiblingElement (const char *name=nullptr) const |
Get the previous(left) sibling element of this node, with an optionally supplied name. More... | |
XMLElement * | PreviousSiblingElement (const char *name=nullptr) |
const XMLNode * | NextSibling () const |
Get the next(right) sibling node of this node. More... | |
XMLNode * | NextSibling () |
const XMLElement * | NextSiblingElement (const char *name=nullptr) const |
Get the next(right) sibling element of this node, with an optionally supplied name. More... | |
XMLElement * | NextSiblingElement (const char *name=nullptr) |
XMLNode * | InsertEndChild (XMLNode *addThis) |
XMLNode * | LinkEndChild (XMLNode *addThis) |
XMLNode * | InsertFirstChild (XMLNode *addThis) |
XMLNode * | InsertAfterChild (XMLNode *afterThis, XMLNode *addThis) |
void | DeleteChildren () |
void | DeleteChild (XMLNode *node) |
virtual XMLNode * | ShallowClone (XMLDocument *document) const =0 |
XMLNode * | DeepClone (XMLDocument *target) const |
virtual bool | ShallowEqual (const XMLNode *compare) const =0 |
virtual bool | Accept (XMLVisitor *visitor) const =0 |
void | SetUserData (void *userData) |
void * | GetUserData () const |
Protected Member Functions | |
XMLNode (XMLDocument *) | |
virtual char * | ParseDeep (char *p, StrPair *parentEndTag, int *curLineNumPtr) |
Protected Attributes | |
XMLDocument * | _document |
XMLNode * | _parent |
StrPair | _value |
int | _parseLineNum |
XMLNode * | _firstChild |
XMLNode * | _lastChild |
XMLNode * | _prev |
XMLNode * | _next |
void * | _userData |
Private Member Functions | |
void | Unlink (XMLNode *child) |
void | InsertChildPreamble (XMLNode *insertThis) const |
const XMLElement * | ToElementWithName (const char *name) const |
XMLNode (const XMLNode &) | |
XMLNode & | operator= (const XMLNode &) |
Static Private Member Functions | |
static void | DeleteNode (XMLNode *node) |
Private Attributes | |
MemPool * | _memPool |
Friends | |
class | XMLDocument |
class | XMLElement |
Definition at line 662 of file tinyxml2.h.
|
protected |
Definition at line 814 of file tinyxml2.cpp.
|
protectedvirtual |
Definition at line 827 of file tinyxml2.cpp.
XMLNode * DeepClone | ( | XMLDocument * | target | ) | const |
Definition at line 856 of file tinyxml2.cpp.
void DeleteChild | ( | XMLNode * | node | ) |
Definition at line 909 of file tinyxml2.cpp.
void DeleteChildren | ( | ) |
Definition at line 870 of file tinyxml2.cpp.
|
staticprivate |
Definition at line 1205 of file tinyxml2.cpp.
|
inline |
Definition at line 761 of file tinyxml2.h.
|
inline |
Get the first child node, or null if none exists.
Definition at line 757 of file tinyxml2.h.
|
inline |
Definition at line 770 of file tinyxml2.h.
const XMLElement * FirstChildElement | ( | const char * | name = nullptr | ) | const |
Definition at line 1031 of file tinyxml2.cpp.
|
inline |
Get the XMLDocument that owns this XMLNode.
Definition at line 674 of file tinyxml2.h.
|
inline |
Get the XMLDocument that owns this XMLNode.
Definition at line 669 of file tinyxml2.h.
|
inline |
Gets the line number the node is in, if the document was parsed from a file.
Definition at line 740 of file tinyxml2.h.
|
inline |
Definition at line 934 of file tinyxml2.h.
Definition at line 989 of file tinyxml2.cpp.
|
private |
Definition at line 1222 of file tinyxml2.cpp.
Definition at line 922 of file tinyxml2.cpp.
Definition at line 955 of file tinyxml2.cpp.
|
inline |
Definition at line 779 of file tinyxml2.h.
|
inline |
Get the last child node, or null if none exists.
Definition at line 775 of file tinyxml2.h.
|
inline |
Definition at line 788 of file tinyxml2.h.
const XMLElement * LastChildElement | ( | const char * | name = nullptr | ) | const |
Definition at line 1045 of file tinyxml2.cpp.
Definition at line 833 of file tinyxml2.h.
|
inline |
Definition at line 813 of file tinyxml2.h.
|
inline |
Get the next(right) sibling node of this node.
Definition at line 809 of file tinyxml2.h.
|
inline |
Definition at line 820 of file tinyxml2.h.
const XMLElement * NextSiblingElement | ( | const char * | name = nullptr | ) | const |
Get the next(right) sibling element of this node, with an optionally supplied name.
Definition at line 1059 of file tinyxml2.cpp.
|
inline |
Returns true if this node has no children.
Definition at line 752 of file tinyxml2.h.
|
inline |
Definition at line 747 of file tinyxml2.h.
|
inline |
Get the parent of this node on the DOM.
Definition at line 743 of file tinyxml2.h.
|
protectedvirtual |
Definition at line 1087 of file tinyxml2.cpp.
|
inline |
Definition at line 797 of file tinyxml2.h.
|
inline |
Get the previous(left) sibling node of this node.
Definition at line 793 of file tinyxml2.h.
|
inline |
Definition at line 804 of file tinyxml2.h.
const XMLElement * PreviousSiblingElement | ( | const char * | name = nullptr | ) | const |
Get the previous(left) sibling element of this node, with an optionally supplied name.
Definition at line 1073 of file tinyxml2.cpp.
|
inline |
Definition at line 927 of file tinyxml2.h.
void SetValue | ( | const char * | val, |
bool | staticMem = false |
||
) |
Definition at line 844 of file tinyxml2.cpp.
|
inlinevirtual |
Safely cast to a Comment, or null.
Reimplemented in XMLComment.
Definition at line 688 of file tinyxml2.h.
|
inlinevirtual |
Definition at line 710 of file tinyxml2.h.
|
inlinevirtual |
Safely cast to a Declaration, or null.
Reimplemented in XMLDeclaration.
Definition at line 696 of file tinyxml2.h.
|
inlinevirtual |
Definition at line 716 of file tinyxml2.h.
|
inlinevirtual |
Safely cast to a Document, or null.
Reimplemented in XMLDocument.
Definition at line 692 of file tinyxml2.h.
|
inlinevirtual |
Definition at line 713 of file tinyxml2.h.
|
inlinevirtual |
Safely cast to an Element, or null.
Reimplemented in XMLElement.
Definition at line 680 of file tinyxml2.h.
|
inlinevirtual |
Definition at line 704 of file tinyxml2.h.
|
private |
Definition at line 1238 of file tinyxml2.cpp.
|
inlinevirtual |
|
inlinevirtual |
Definition at line 707 of file tinyxml2.h.
|
inlinevirtual |
Safely cast to an Unknown, or null.
Reimplemented in XMLUnknown.
Definition at line 700 of file tinyxml2.h.
|
inlinevirtual |
Definition at line 719 of file tinyxml2.h.
|
private |
Definition at line 881 of file tinyxml2.cpp.
const char * Value | ( | ) | const |
Definition at line 836 of file tinyxml2.cpp.
|
friend |
Definition at line 664 of file tinyxml2.h.
|
friend |
Definition at line 665 of file tinyxml2.h.
|
protected |
Definition at line 942 of file tinyxml2.h.
|
protected |
Definition at line 947 of file tinyxml2.h.
|
protected |
Definition at line 948 of file tinyxml2.h.
|
private |
Definition at line 956 of file tinyxml2.h.
|
protected |
Definition at line 951 of file tinyxml2.h.
|
protected |
Definition at line 943 of file tinyxml2.h.
|
protected |
Definition at line 945 of file tinyxml2.h.
|
protected |
Definition at line 950 of file tinyxml2.h.
|
protected |
Definition at line 953 of file tinyxml2.h.
|
mutableprotected |
Definition at line 944 of file tinyxml2.h.