XMLHandle Class Reference

Public Member Functions

 XMLHandle (XMLNode *node)
 Create a handle from any node(at any depth of the tree.) This can be a null pointer. More...
 
 XMLHandle (XMLNode &node)
 Create a handle from a node. More...
 
 XMLHandle (const XMLHandle &ref)
 Copy constructor. More...
 
XMLHandleoperator= (const XMLHandle &ref)
 Assignment. More...
 
XMLHandle FirstChild ()
 Get the first child of this handle. More...
 
XMLHandle FirstChildElement (const char *name=nullptr)
 Get the first child element of this handle. More...
 
XMLHandle LastChild ()
 Get the last child of this handle. More...
 
XMLHandle LastChildElement (const char *name=nullptr)
 Get the last child element of this handle. More...
 
XMLHandle PreviousSibling ()
 Get the previous sibling of this handle. More...
 
XMLHandle PreviousSiblingElement (const char *name=nullptr)
 Get the previous sibling element of this handle. More...
 
XMLHandle NextSibling ()
 Get the next sibling of this handle. More...
 
XMLHandle NextSiblingElement (const char *name=nullptr)
 Get the next sibling element of this handle. More...
 
XMLNodeToNode ()
 Safe cast to XMLNode. This can return null. More...
 
XMLElementToElement ()
 Safe cast to XMLElement. This can return null. More...
 
XMLTextToText ()
 Safe cast to XMLText. This can return null. More...
 
XMLUnknownToUnknown ()
 Safe cast to XMLUnknown. This can return null. More...
 
XMLDeclarationToDeclaration ()
 Safe cast to XMLDeclaration. This can return null. More...
 

Private Attributes

XMLNode_node
 

Detailed Description

Definition at line 1970 of file tinyxml2.h.

Constructor & Destructor Documentation

◆ XMLHandle() [1/3]

XMLHandle ( XMLNode node)
inline

Create a handle from any node(at any depth of the tree.) This can be a null pointer.

Definition at line 1974 of file tinyxml2.h.

◆ XMLHandle() [2/3]

XMLHandle ( XMLNode node)
inline

Create a handle from a node.

Definition at line 1977 of file tinyxml2.h.

◆ XMLHandle() [3/3]

XMLHandle ( const XMLHandle ref)
inline

Copy constructor.

Definition at line 1980 of file tinyxml2.h.

Member Function Documentation

◆ FirstChild()

XMLHandle FirstChild ( )
inline

Get the first child of this handle.

Definition at line 1989 of file tinyxml2.h.

◆ FirstChildElement()

XMLHandle FirstChildElement ( const char *  name = nullptr)
inline

Get the first child element of this handle.

Definition at line 1993 of file tinyxml2.h.

◆ LastChild()

XMLHandle LastChild ( )
inline

Get the last child of this handle.

Definition at line 1997 of file tinyxml2.h.

◆ LastChildElement()

XMLHandle LastChildElement ( const char *  name = nullptr)
inline

Get the last child element of this handle.

Definition at line 2001 of file tinyxml2.h.

◆ NextSibling()

XMLHandle NextSibling ( )
inline

Get the next sibling of this handle.

Definition at line 2013 of file tinyxml2.h.

◆ NextSiblingElement()

XMLHandle NextSiblingElement ( const char *  name = nullptr)
inline

Get the next sibling element of this handle.

Definition at line 2017 of file tinyxml2.h.

◆ operator=()

XMLHandle & operator= ( const XMLHandle ref)
inline

Assignment.

Definition at line 1983 of file tinyxml2.h.

◆ PreviousSibling()

XMLHandle PreviousSibling ( )
inline

Get the previous sibling of this handle.

Definition at line 2005 of file tinyxml2.h.

◆ PreviousSiblingElement()

XMLHandle PreviousSiblingElement ( const char *  name = nullptr)
inline

Get the previous sibling element of this handle.

Definition at line 2009 of file tinyxml2.h.

◆ ToDeclaration()

XMLDeclaration * ToDeclaration ( )
inline

Safe cast to XMLDeclaration. This can return null.

Definition at line 2038 of file tinyxml2.h.

◆ ToElement()

XMLElement * ToElement ( )
inline

Safe cast to XMLElement. This can return null.

Definition at line 2026 of file tinyxml2.h.

◆ ToNode()

XMLNode * ToNode ( )
inline

Safe cast to XMLNode. This can return null.

Definition at line 2022 of file tinyxml2.h.

◆ ToText()

XMLText * ToText ( )
inline

Safe cast to XMLText. This can return null.

Definition at line 2030 of file tinyxml2.h.

◆ ToUnknown()

XMLUnknown * ToUnknown ( )
inline

Safe cast to XMLUnknown. This can return null.

Definition at line 2034 of file tinyxml2.h.

Member Data Documentation

◆ _node

XMLNode* _node
private

Definition at line 2043 of file tinyxml2.h.


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