2013-03-13 08:00:12 +00:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
< html xmlns = "http://www.w3.org/1999/xhtml" >
< head >
< meta http-equiv = "Content-Type" content = "text/xhtml;charset=UTF-8" / >
2012-09-19 15:15:01 +00:00
< title > TinyXml: TiXmlHandle Class Reference< / title >
2013-03-13 08:00:12 +00:00
< link href = "tabs.css" rel = "stylesheet" type = "text/css" / >
< link href = "doxygen.css" rel = "stylesheet" type = "text/css" / >
< / head >
< body >
<!-- Generated by Doxygen 1.6.2 -->
< div class = "navigation" id = "top" >
< div class = "tabs" >
< ul >
< li > < a href = "index.html" > < span > Main Page< / span > < / a > < / li >
< li > < a href = "pages.html" > < span > Related Pages< / span > < / a > < / li >
< li class = "current" > < a href = "annotated.html" > < span > Classes< / span > < / a > < / li >
< li > < a href = "files.html" > < span > Files< / span > < / a > < / li >
< / ul >
< / div >
< div class = "tabs" >
< ul >
< li > < a href = "annotated.html" > < span > Class List< / span > < / a > < / li >
< li > < a href = "hierarchy.html" > < span > Class Hierarchy< / span > < / a > < / li >
< li > < a href = "functions.html" > < span > Class Members< / span > < / a > < / li >
< / ul >
< / div >
< / div >
< div class = "contents" >
< h1 > TiXmlHandle Class Reference< / h1 > <!-- doxytag: class="TiXmlHandle" -->
< p > A < a class = "el" href = "classTiXmlHandle.html" title = "A TiXmlHandle is a class that wraps a node pointer with null checks; this is an incredibly..." > TiXmlHandle< / a > is a class that wraps a node pointer with null checks; this is an incredibly useful thing.
< a href = "#_details" > More...< / a > < / p >
< p > < code > #include < < a class = "el" href = "tinyxml_8h_source.html" > tinyxml.h< / a > > < / code > < / p >
< p > < a href = "classTiXmlHandle-members.html" > List of all members.< / a > < / p >
< table border = "0" cellpadding = "0" cellspacing = "0" >
< tr > < td colspan = "2" > < h2 > Public Member Functions< / h2 > < / td > < / tr >
< tr > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "aba18fd7bdefb942ecdea4bf4b8e29ec8" > < / a > <!-- doxytag: member="TiXmlHandle::TiXmlHandle" ref="aba18fd7bdefb942ecdea4bf4b8e29ec8" args="(TiXmlNode *_node)" -->
< / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classTiXmlHandle.html#aba18fd7bdefb942ecdea4bf4b8e29ec8" > TiXmlHandle< / a > (< a class = "el" href = "classTiXmlNode.html" > TiXmlNode< / a > *_node)< / td > < / tr >
< tr > < td class = "mdescLeft" > < / td > < td class = "mdescRight" > Create a handle from any node (at any depth of the tree.) This can be a null pointer. < br / > < / td > < / tr >
< tr > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a236d7855e1e56ccc7b980630c48c7fd7" > < / a > <!-- doxytag: member="TiXmlHandle::TiXmlHandle" ref="a236d7855e1e56ccc7b980630c48c7fd7" args="(const TiXmlHandle &ref)" -->
< / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classTiXmlHandle.html#a236d7855e1e56ccc7b980630c48c7fd7" > TiXmlHandle< / a > (const < a class = "el" href = "classTiXmlHandle.html" > TiXmlHandle< / a > & ref)< / td > < / tr >
< tr > < td class = "mdescLeft" > < / td > < td class = "mdescRight" > Copy constructor. < br / > < / td > < / tr >
< tr > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "acdb1faaf88a700b40ca2c8d9aee21139" > < / a > <!-- doxytag: member="TiXmlHandle::FirstChild" ref="acdb1faaf88a700b40ca2c8d9aee21139" args="() const " -->
< a class = "el" href = "classTiXmlHandle.html" > TiXmlHandle< / a > < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classTiXmlHandle.html#acdb1faaf88a700b40ca2c8d9aee21139" > FirstChild< / a > () const < / td > < / tr >
< tr > < td class = "mdescLeft" > < / td > < td class = "mdescRight" > Return a handle to the first child node. < br / > < / td > < / tr >
< tr > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a8c61f64ae9365d89c264f289085541f8" > < / a > <!-- doxytag: member="TiXmlHandle::FirstChild" ref="a8c61f64ae9365d89c264f289085541f8" args="(const char *value) const " -->
< a class = "el" href = "classTiXmlHandle.html" > TiXmlHandle< / a > < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classTiXmlHandle.html#a8c61f64ae9365d89c264f289085541f8" > FirstChild< / a > (const char *value) const < / td > < / tr >
< tr > < td class = "mdescLeft" > < / td > < td class = "mdescRight" > Return a handle to the first child node with the given name. < br / > < / td > < / tr >
< tr > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a24d1112e995e937e4dddb202d4113d4a" > < / a > <!-- doxytag: member="TiXmlHandle::FirstChildElement" ref="a24d1112e995e937e4dddb202d4113d4a" args="() const " -->
< a class = "el" href = "classTiXmlHandle.html" > TiXmlHandle< / a > < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classTiXmlHandle.html#a24d1112e995e937e4dddb202d4113d4a" > FirstChildElement< / a > () const < / td > < / tr >
< tr > < td class = "mdescLeft" > < / td > < td class = "mdescRight" > Return a handle to the first child element. < br / > < / td > < / tr >
< tr > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "af0aea751320f5e430fac6f8fff3b8dd4" > < / a > <!-- doxytag: member="TiXmlHandle::FirstChildElement" ref="af0aea751320f5e430fac6f8fff3b8dd4" args="(const char *value) const " -->
< a class = "el" href = "classTiXmlHandle.html" > TiXmlHandle< / a > < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classTiXmlHandle.html#af0aea751320f5e430fac6f8fff3b8dd4" > FirstChildElement< / a > (const char *value) const < / td > < / tr >
< tr > < td class = "mdescLeft" > < / td > < td class = "mdescRight" > Return a handle to the first child element with the given name. < br / > < / td > < / tr >
< tr > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "classTiXmlHandle.html" > TiXmlHandle< / a > < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classTiXmlHandle.html#a072492b4be1acdb0db2d03cd8f71ccc4" > Child< / a > (const char *value, int index) const < / td > < / tr >
< tr > < td class = "mdescLeft" > < / td > < td class = "mdescRight" > Return a handle to the "index" child with the given name. < a href = "#a072492b4be1acdb0db2d03cd8f71ccc4" > < / a > < br / > < / td > < / tr >
< tr > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "classTiXmlHandle.html" > TiXmlHandle< / a > < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classTiXmlHandle.html#af9cf6a7d08a5da94a8924425ad0cd5ac" > Child< / a > (int index) const < / td > < / tr >
< tr > < td class = "mdescLeft" > < / td > < td class = "mdescRight" > Return a handle to the "index" child. < a href = "#af9cf6a7d08a5da94a8924425ad0cd5ac" > < / a > < br / > < / td > < / tr >
< tr > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "classTiXmlHandle.html" > TiXmlHandle< / a > < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classTiXmlHandle.html#a979a3f850984a176ee884e394c7eed2d" > ChildElement< / a > (const char *value, int index) const < / td > < / tr >
< tr > < td class = "mdescLeft" > < / td > < td class = "mdescRight" > Return a handle to the "index" child element with the given name. < a href = "#a979a3f850984a176ee884e394c7eed2d" > < / a > < br / > < / td > < / tr >
< tr > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "classTiXmlHandle.html" > TiXmlHandle< / a > < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classTiXmlHandle.html#a8786475b9d1f1518492e3a46704c7ef0" > ChildElement< / a > (int index) const < / td > < / tr >
< tr > < td class = "mdescLeft" > < / td > < td class = "mdescRight" > Return a handle to the "index" child element. < a href = "#a8786475b9d1f1518492e3a46704c7ef0" > < / a > < br / > < / td > < / tr >
< tr > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "classTiXmlNode.html" > TiXmlNode< / a > * < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classTiXmlHandle.html#af678e5088e83be67baf76f699756f2c3" > ToNode< / a > () const < / td > < / tr >
< tr > < td class = "mdescLeft" > < / td > < td class = "mdescRight" > Return the handle as a < a class = "el" href = "classTiXmlNode.html" title = "The parent class for everything in the Document Object Model." > TiXmlNode< / a > . < a href = "#af678e5088e83be67baf76f699756f2c3" > < / a > < br / > < / td > < / tr >
< tr > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "classTiXmlElement.html" > TiXmlElement< / a > * < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classTiXmlHandle.html#abc6e7ed383a5fe1e52b0c0004b457b9e" > ToElement< / a > () const < / td > < / tr >
< tr > < td class = "mdescLeft" > < / td > < td class = "mdescRight" > Return the handle as a < a class = "el" href = "classTiXmlElement.html" title = "The element is a container class." > TiXmlElement< / a > . < a href = "#abc6e7ed383a5fe1e52b0c0004b457b9e" > < / a > < br / > < / td > < / tr >
< tr > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "classTiXmlText.html" > TiXmlText< / a > * < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classTiXmlHandle.html#a4ac53a652296203a5b5e13854d923586" > ToText< / a > () const < / td > < / tr >
< tr > < td class = "mdescLeft" > < / td > < td class = "mdescRight" > Return the handle as a < a class = "el" href = "classTiXmlText.html" title = "XML text." > TiXmlText< / a > . < a href = "#a4ac53a652296203a5b5e13854d923586" > < / a > < br / > < / td > < / tr >
< tr > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "classTiXmlUnknown.html" > TiXmlUnknown< / a > * < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classTiXmlHandle.html#a1381c17507a130767b1e23afc93b3674" > ToUnknown< / a > () const < / td > < / tr >
< tr > < td class = "mdescLeft" > < / td > < td class = "mdescRight" > Return the handle as a < a class = "el" href = "classTiXmlUnknown.html" title = "Any tag that tinyXml doesn't recognize is saved as an unknown." > TiXmlUnknown< / a > . < a href = "#a1381c17507a130767b1e23afc93b3674" > < / a > < br / > < / td > < / tr >
< tr > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "classTiXmlNode.html" > TiXmlNode< / a > * < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classTiXmlHandle.html#ab44b723a8dc9af72838a303c079d0376" > Node< / a > () const < / td > < / tr >
< tr > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "classTiXmlElement.html" > TiXmlElement< / a > * < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classTiXmlHandle.html#acb5fe8388a526289ea65e817a51e05e7" > Element< / a > () const < / td > < / tr >
< tr > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "classTiXmlText.html" > TiXmlText< / a > * < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classTiXmlHandle.html#a9fc739c8a18d160006f82572fc143d13" > Text< / a > () const < / td > < / tr >
< tr > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "classTiXmlUnknown.html" > TiXmlUnknown< / a > * < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classTiXmlHandle.html#a49675b74357ba2aae124657a9a1ef465" > Unknown< / a > () const < / td > < / tr >
2012-09-19 15:15:01 +00:00
< / table >
2013-03-13 08:00:12 +00:00
< hr / > < a name = "_details" > < / a > < h2 > Detailed Description< / h2 >
< p > A < a class = "el" href = "classTiXmlHandle.html" title = "A TiXmlHandle is a class that wraps a node pointer with null checks; this is an incredibly..." > TiXmlHandle< / a > is a class that wraps a node pointer with null checks; this is an incredibly useful thing. < / p >
< p > Note that < a class = "el" href = "classTiXmlHandle.html" title = "A TiXmlHandle is a class that wraps a node pointer with null checks; this is an incredibly..." > TiXmlHandle< / a > is not part of the TinyXml DOM structure. It is a separate utility class.< / p >
< p > Take an example: < / p >
< div class = "fragment" > < pre class = "fragment" >
< Document>
2012-09-19 15:15:01 +00:00
< Element attributeA = "valueA">
< Child attributeB = "value1" />
< Child attributeB = "value2" />
< /Element>
< Document>
2013-03-13 08:00:12 +00:00
< / pre > < / div > < p > Assuming you want the value of "attributeB" in the 2nd "Child" element, it's very easy to write a *lot* of code that looks like:< / p >
< div class = "fragment" > < pre class = "fragment" >
TiXmlElement* root = document.FirstChildElement( "Document" );
2012-09-19 15:15:01 +00:00
if ( root )
{
TiXmlElement* element = root-> FirstChildElement( "Element" );
if ( element )
{
TiXmlElement* child = element-> FirstChildElement( "Child" );
if ( child )
{
TiXmlElement* child2 = child-> NextSiblingElement( "Child" );
if ( child2 )
{
// Finally do something useful.
2013-03-13 08:00:12 +00:00
< / pre > < / div > < p > And that doesn't even cover "else" cases. < a class = "el" href = "classTiXmlHandle.html" title = "A TiXmlHandle is a class that wraps a node pointer with null checks; this is an incredibly..." > TiXmlHandle< / a > addresses the verbosity of such code. A < a class = "el" href = "classTiXmlHandle.html" title = "A TiXmlHandle is a class that wraps a node pointer with null checks; this is an incredibly..." > TiXmlHandle< / a > checks for null pointers so it is perfectly safe and correct to use:< / p >
< div class = "fragment" > < pre class = "fragment" >
TiXmlHandle docHandle( & document );
2012-09-19 15:15:01 +00:00
TiXmlElement* child2 = docHandle.FirstChild( "Document" ).FirstChild( "Element" ).Child( "Child", 1 ).ToElement();
if ( child2 )
{
// do something useful
2013-03-13 08:00:12 +00:00
< / pre > < / div > < p > Which is MUCH more concise and useful.< / p >
< p > It is also safe to copy handles - internally they are nothing more than node pointers. < / p >
< div class = "fragment" > < pre class = "fragment" >
TiXmlHandle handleCopy = handle;
< / pre > < / div > < p > What they should not be used for is iteration:< / p >
< div class = "fragment" > < pre class = "fragment" >
int i=0;
2012-09-19 15:15:01 +00:00
while ( true )
{
TiXmlElement* child = docHandle.FirstChild( "Document" ).FirstChild( "Element" ).Child( "Child", i ).ToElement();
if ( !child )
break;
// do something
++i;
}
2013-03-13 08:00:12 +00:00
< / pre > < / div > < p > It seems reasonable, but it is in fact two embedded while loops. The Child method is a linear walk to find the element, so this code would iterate much more than it needs to. Instead, prefer:< / p >
< div class = "fragment" > < pre class = "fragment" >
TiXmlElement* child = docHandle.FirstChild( "Document" ).FirstChild( "Element" ).FirstChild( "Child" ).ToElement();
2012-09-19 15:15:01 +00:00
for( child; child; child=child-> NextSiblingElement() )
{
// do something
}
2013-03-13 08:00:12 +00:00
< / pre > < / div > < hr / > < h2 > Member Function Documentation< / h2 >
< a class = "anchor" id = "af9cf6a7d08a5da94a8924425ad0cd5ac" > < / a > <!-- doxytag: member="TiXmlHandle::Child" ref="af9cf6a7d08a5da94a8924425ad0cd5ac" args="(int index) const " -->
2012-09-19 15:15:01 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2013-03-13 08:00:12 +00:00
< td class = "memname" > < a class = "el" href = "classTiXmlHandle.html" > TiXmlHandle< / a > TiXmlHandle::Child < / td >
2012-09-19 15:15:01 +00:00
< td > (< / td >
< td class = "paramtype" > int < / td >
2013-03-13 08:00:12 +00:00
< td class = "paramname" > < em > index< / em > < / td >
2012-09-19 15:15:01 +00:00
< td > ) < / td >
2013-03-13 08:00:12 +00:00
< td > const< / td >
2012-09-19 15:15:01 +00:00
< / tr >
< / table >
< / div >
< div class = "memdoc" >
2013-03-13 08:00:12 +00:00
< p > Return a handle to the "index" child. < / p >
< p > The first child is 0, the second 1, etc. < / p >
2012-09-19 15:15:01 +00:00
< / div >
2013-03-13 08:00:12 +00:00
< / div >
< a class = "anchor" id = "a072492b4be1acdb0db2d03cd8f71ccc4" > < / a > <!-- doxytag: member="TiXmlHandle::Child" ref="a072492b4be1acdb0db2d03cd8f71ccc4" args="(const char *value, int index) const " -->
2012-09-19 15:15:01 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2013-03-13 08:00:12 +00:00
< td class = "memname" > < a class = "el" href = "classTiXmlHandle.html" > TiXmlHandle< / a > TiXmlHandle::Child < / td >
2012-09-19 15:15:01 +00:00
< td > (< / td >
< td class = "paramtype" > const char * < / td >
< td class = "paramname" > < em > value< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > int < / td >
< td class = "paramname" > < em > index< / em > < / td > < td > < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
2013-03-13 08:00:12 +00:00
< td > < / td > < td > < / td > < td > const< / td >
2012-09-19 15:15:01 +00:00
< / tr >
< / table >
< / div >
< div class = "memdoc" >
2013-03-13 08:00:12 +00:00
< p > Return a handle to the "index" child with the given name. < / p >
< p > The first child is 0, the second 1, etc. < / p >
2012-09-19 15:15:01 +00:00
< / div >
2013-03-13 08:00:12 +00:00
< / div >
< a class = "anchor" id = "a8786475b9d1f1518492e3a46704c7ef0" > < / a > <!-- doxytag: member="TiXmlHandle::ChildElement" ref="a8786475b9d1f1518492e3a46704c7ef0" args="(int index) const " -->
2012-09-19 15:15:01 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2013-03-13 08:00:12 +00:00
< td class = "memname" > < a class = "el" href = "classTiXmlHandle.html" > TiXmlHandle< / a > TiXmlHandle::ChildElement < / td >
2012-09-19 15:15:01 +00:00
< td > (< / td >
< td class = "paramtype" > int < / td >
2013-03-13 08:00:12 +00:00
< td class = "paramname" > < em > index< / em > < / td >
2012-09-19 15:15:01 +00:00
< td > ) < / td >
2013-03-13 08:00:12 +00:00
< td > const< / td >
2012-09-19 15:15:01 +00:00
< / tr >
< / table >
< / div >
< div class = "memdoc" >
2013-03-13 08:00:12 +00:00
< p > Return a handle to the "index" child element. < / p >
< p > The first child element is 0, the second 1, etc. Note that only TiXmlElements are indexed: other types are not counted. < / p >
< / div >
2012-09-19 15:15:01 +00:00
< / div >
2013-03-13 08:00:12 +00:00
< a class = "anchor" id = "a979a3f850984a176ee884e394c7eed2d" > < / a > <!-- doxytag: member="TiXmlHandle::ChildElement" ref="a979a3f850984a176ee884e394c7eed2d" args="(const char *value, int index) const " -->
2012-09-19 15:15:01 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2013-03-13 08:00:12 +00:00
< td class = "memname" > < a class = "el" href = "classTiXmlHandle.html" > TiXmlHandle< / a > TiXmlHandle::ChildElement < / td >
2012-09-19 15:15:01 +00:00
< td > (< / td >
< td class = "paramtype" > const char * < / td >
< td class = "paramname" > < em > value< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > int < / td >
< td class = "paramname" > < em > index< / em > < / td > < td > < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
2013-03-13 08:00:12 +00:00
< td > < / td > < td > < / td > < td > const< / td >
2012-09-19 15:15:01 +00:00
< / tr >
< / table >
< / div >
< div class = "memdoc" >
2013-03-13 08:00:12 +00:00
< p > Return a handle to the "index" child element with the given name. < / p >
< p > The first child element is 0, the second 1, etc. Note that only TiXmlElements are indexed: other types are not counted. < / p >
< / div >
2012-09-19 15:15:01 +00:00
< / div >
2013-03-13 08:00:12 +00:00
< a class = "anchor" id = "acb5fe8388a526289ea65e817a51e05e7" > < / a > <!-- doxytag: member="TiXmlHandle::Element" ref="acb5fe8388a526289ea65e817a51e05e7" args="() const " -->
2012-09-19 15:15:01 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2013-03-13 08:00:12 +00:00
< td class = "memname" > < a class = "el" href = "classTiXmlElement.html" > TiXmlElement< / a > * TiXmlHandle::Element < / td >
2012-09-19 15:15:01 +00:00
< td > (< / td >
2013-03-13 08:00:12 +00:00
< td class = "paramname" > < / td >
2012-09-19 15:15:01 +00:00
< td > ) < / td >
2013-03-13 08:00:12 +00:00
< td > const< code > [inline]< / code > < / td >
2012-09-19 15:15:01 +00:00
< / tr >
< / table >
< / div >
< div class = "memdoc" >
2013-03-13 08:00:12 +00:00
< dl class = "deprecated" > < dt > < b > < a class = "el" href = "deprecated.html#_deprecated000002" > Deprecated:< / a > < / b > < / dt > < dd > use ToElement. Return the handle as a < a class = "el" href = "classTiXmlElement.html" title = "The element is a container class." > TiXmlElement< / a > . This may return null. < / dd > < / dl >
2012-09-19 15:15:01 +00:00
2013-03-13 08:00:12 +00:00
< p > References < a class = "el" href = "tinyxml_8h_source.html#l01688" > ToElement()< / a > .< / p >
2012-09-19 15:15:01 +00:00
< / div >
2013-03-13 08:00:12 +00:00
< / div >
< a class = "anchor" id = "ab44b723a8dc9af72838a303c079d0376" > < / a > <!-- doxytag: member="TiXmlHandle::Node" ref="ab44b723a8dc9af72838a303c079d0376" args="() const " -->
2012-09-19 15:15:01 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2013-03-13 08:00:12 +00:00
< td class = "memname" > < a class = "el" href = "classTiXmlNode.html" > TiXmlNode< / a > * TiXmlHandle::Node < / td >
2012-09-19 15:15:01 +00:00
< td > (< / td >
2013-03-13 08:00:12 +00:00
< td class = "paramname" > < / td >
2012-09-19 15:15:01 +00:00
< td > ) < / td >
2013-03-13 08:00:12 +00:00
< td > const< code > [inline]< / code > < / td >
2012-09-19 15:15:01 +00:00
< / tr >
< / table >
< / div >
< div class = "memdoc" >
2013-03-13 08:00:12 +00:00
< dl class = "deprecated" > < dt > < b > < a class = "el" href = "deprecated.html#_deprecated000001" > Deprecated:< / a > < / b > < / dt > < dd > use ToNode. Return the handle as a < a class = "el" href = "classTiXmlNode.html" title = "The parent class for everything in the Document Object Model." > TiXmlNode< / a > . This may return null. < / dd > < / dl >
2012-09-19 15:15:01 +00:00
2013-03-13 08:00:12 +00:00
< p > References < a class = "el" href = "tinyxml_8h_source.html#l01685" > ToNode()< / a > .< / p >
2012-09-19 15:15:01 +00:00
< / div >
2013-03-13 08:00:12 +00:00
< / div >
< a class = "anchor" id = "a9fc739c8a18d160006f82572fc143d13" > < / a > <!-- doxytag: member="TiXmlHandle::Text" ref="a9fc739c8a18d160006f82572fc143d13" args="() const " -->
2012-09-19 15:15:01 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2013-03-13 08:00:12 +00:00
< td class = "memname" > < a class = "el" href = "classTiXmlText.html" > TiXmlText< / a > * TiXmlHandle::Text < / td >
2012-09-19 15:15:01 +00:00
< td > (< / td >
2013-03-13 08:00:12 +00:00
< td class = "paramname" > < / td >
2012-09-19 15:15:01 +00:00
< td > ) < / td >
2013-03-13 08:00:12 +00:00
< td > const< code > [inline]< / code > < / td >
2012-09-19 15:15:01 +00:00
< / tr >
< / table >
< / div >
< div class = "memdoc" >
2013-03-13 08:00:12 +00:00
< dl class = "deprecated" > < dt > < b > < a class = "el" href = "deprecated.html#_deprecated000003" > Deprecated:< / a > < / b > < / dt > < dd > use < a class = "el" href = "classTiXmlHandle.html#a4ac53a652296203a5b5e13854d923586" title = "Return the handle as a TiXmlText." > ToText()< / a > Return the handle as a < a class = "el" href = "classTiXmlText.html" title = "XML text." > TiXmlText< / a > . This may return null. < / dd > < / dl >
2012-09-19 15:15:01 +00:00
2013-03-13 08:00:12 +00:00
< p > References < a class = "el" href = "tinyxml_8h_source.html#l01691" > ToText()< / a > .< / p >
2012-09-19 15:15:01 +00:00
< / div >
2013-03-13 08:00:12 +00:00
< / div >
< a class = "anchor" id = "abc6e7ed383a5fe1e52b0c0004b457b9e" > < / a > <!-- doxytag: member="TiXmlHandle::ToElement" ref="abc6e7ed383a5fe1e52b0c0004b457b9e" args="() const " -->
2012-09-19 15:15:01 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2013-03-13 08:00:12 +00:00
< td class = "memname" > < a class = "el" href = "classTiXmlElement.html" > TiXmlElement< / a > * TiXmlHandle::ToElement < / td >
2012-09-19 15:15:01 +00:00
< td > (< / td >
2013-03-13 08:00:12 +00:00
< td class = "paramname" > < / td >
2012-09-19 15:15:01 +00:00
< td > ) < / td >
2013-03-13 08:00:12 +00:00
< td > const< code > [inline]< / code > < / td >
2012-09-19 15:15:01 +00:00
< / tr >
< / table >
< / div >
< div class = "memdoc" >
2013-03-13 08:00:12 +00:00
< p > Return the handle as a < a class = "el" href = "classTiXmlElement.html" title = "The element is a container class." > TiXmlElement< / a > . < / p >
< p > This may return null. < / p >
< p > Referenced by < a class = "el" href = "tinyxml_8h_source.html#l01703" > Element()< / a > .< / p >
< / div >
2012-09-19 15:15:01 +00:00
< / div >
2013-03-13 08:00:12 +00:00
< a class = "anchor" id = "af678e5088e83be67baf76f699756f2c3" > < / a > <!-- doxytag: member="TiXmlHandle::ToNode" ref="af678e5088e83be67baf76f699756f2c3" args="() const " -->
2012-09-19 15:15:01 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2013-03-13 08:00:12 +00:00
< td class = "memname" > < a class = "el" href = "classTiXmlNode.html" > TiXmlNode< / a > * TiXmlHandle::ToNode < / td >
2012-09-19 15:15:01 +00:00
< td > (< / td >
2013-03-13 08:00:12 +00:00
< td class = "paramname" > < / td >
2012-09-19 15:15:01 +00:00
< td > ) < / td >
2013-03-13 08:00:12 +00:00
< td > const< code > [inline]< / code > < / td >
2012-09-19 15:15:01 +00:00
< / tr >
< / table >
< / div >
< div class = "memdoc" >
2013-03-13 08:00:12 +00:00
< p > Return the handle as a < a class = "el" href = "classTiXmlNode.html" title = "The parent class for everything in the Document Object Model." > TiXmlNode< / a > . < / p >
< p > This may return null. < / p >
< p > Referenced by < a class = "el" href = "tinyxml_8h_source.html#l01699" > Node()< / a > .< / p >
< / div >
2012-09-19 15:15:01 +00:00
< / div >
2013-03-13 08:00:12 +00:00
< a class = "anchor" id = "a4ac53a652296203a5b5e13854d923586" > < / a > <!-- doxytag: member="TiXmlHandle::ToText" ref="a4ac53a652296203a5b5e13854d923586" args="() const " -->
2012-09-19 15:15:01 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2013-03-13 08:00:12 +00:00
< td class = "memname" > < a class = "el" href = "classTiXmlText.html" > TiXmlText< / a > * TiXmlHandle::ToText < / td >
2012-09-19 15:15:01 +00:00
< td > (< / td >
2013-03-13 08:00:12 +00:00
< td class = "paramname" > < / td >
2012-09-19 15:15:01 +00:00
< td > ) < / td >
2013-03-13 08:00:12 +00:00
< td > const< code > [inline]< / code > < / td >
2012-09-19 15:15:01 +00:00
< / tr >
< / table >
< / div >
< div class = "memdoc" >
2013-03-13 08:00:12 +00:00
< p > Return the handle as a < a class = "el" href = "classTiXmlText.html" title = "XML text." > TiXmlText< / a > . < / p >
< p > This may return null. < / p >
< p > Referenced by < a class = "el" href = "tinyxml_8h_source.html#l01707" > Text()< / a > .< / p >
< / div >
2012-09-19 15:15:01 +00:00
< / div >
2013-03-13 08:00:12 +00:00
< a class = "anchor" id = "a1381c17507a130767b1e23afc93b3674" > < / a > <!-- doxytag: member="TiXmlHandle::ToUnknown" ref="a1381c17507a130767b1e23afc93b3674" args="() const " -->
2012-09-19 15:15:01 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2013-03-13 08:00:12 +00:00
< td class = "memname" > < a class = "el" href = "classTiXmlUnknown.html" > TiXmlUnknown< / a > * TiXmlHandle::ToUnknown < / td >
2012-09-19 15:15:01 +00:00
< td > (< / td >
2013-03-13 08:00:12 +00:00
< td class = "paramname" > < / td >
2012-09-19 15:15:01 +00:00
< td > ) < / td >
2013-03-13 08:00:12 +00:00
< td > const< code > [inline]< / code > < / td >
2012-09-19 15:15:01 +00:00
< / tr >
< / table >
< / div >
< div class = "memdoc" >
2013-03-13 08:00:12 +00:00
< p > Return the handle as a < a class = "el" href = "classTiXmlUnknown.html" title = "Any tag that tinyXml doesn't recognize is saved as an unknown." > TiXmlUnknown< / a > . < / p >
< p > This may return null. < / p >
< p > Referenced by < a class = "el" href = "tinyxml_8h_source.html#l01711" > Unknown()< / a > .< / p >
< / div >
2012-09-19 15:15:01 +00:00
< / div >
2013-03-13 08:00:12 +00:00
< a class = "anchor" id = "a49675b74357ba2aae124657a9a1ef465" > < / a > <!-- doxytag: member="TiXmlHandle::Unknown" ref="a49675b74357ba2aae124657a9a1ef465" args="() const " -->
2012-09-19 15:15:01 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2013-03-13 08:00:12 +00:00
< td class = "memname" > < a class = "el" href = "classTiXmlUnknown.html" > TiXmlUnknown< / a > * TiXmlHandle::Unknown < / td >
2012-09-19 15:15:01 +00:00
< td > (< / td >
2013-03-13 08:00:12 +00:00
< td class = "paramname" > < / td >
2012-09-19 15:15:01 +00:00
< td > ) < / td >
2013-03-13 08:00:12 +00:00
< td > const< code > [inline]< / code > < / td >
2012-09-19 15:15:01 +00:00
< / tr >
< / table >
< / div >
< div class = "memdoc" >
2013-03-13 08:00:12 +00:00
< dl class = "deprecated" > < dt > < b > < a class = "el" href = "deprecated.html#_deprecated000004" > Deprecated:< / a > < / b > < / dt > < dd > use < a class = "el" href = "classTiXmlHandle.html#a1381c17507a130767b1e23afc93b3674" title = "Return the handle as a TiXmlUnknown." > ToUnknown()< / a > Return the handle as a < a class = "el" href = "classTiXmlUnknown.html" title = "Any tag that tinyXml doesn't recognize is saved as an unknown." > TiXmlUnknown< / a > . This may return null. < / dd > < / dl >
2012-09-19 15:15:01 +00:00
2013-03-13 08:00:12 +00:00
< p > References < a class = "el" href = "tinyxml_8h_source.html#l01694" > ToUnknown()< / a > .< / p >
2012-09-19 15:15:01 +00:00
< / div >
2013-03-13 08:00:12 +00:00
< / div >
< hr / > The documentation for this class was generated from the following file:< ul >
< li > < a class = "el" href = "tinyxml_8h_source.html" > tinyxml.h< / a > < / li >
< / ul >
< / div >
< hr size = "1" / > < address style = "text-align: right;" > < small > Generated by
2012-09-19 15:15:01 +00:00
< a href = "http://www.doxygen.org/index.html" >
2013-03-13 08:00:12 +00:00
< img class = "footer" src = "doxygen.png" alt = "doxygen" / > < / a > 1.6.2 < / small > < / address >
2012-09-19 15:15:01 +00:00
< / body >
< / html >