Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > eeacaa4eb55fa544d622989e42fc27b1 > files > 622

libyate-devel-2.0.0-2mdv2009.1.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Yate: TiXmlElement Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.7.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</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&nbsp;List</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="namespaceTelEngine.html">TelEngine</a>::<a class="el" href="classTelEngine_1_1TiXmlElement.html">TiXmlElement</a>
  </div>
</div>
<div class="contents">
<h1>TiXmlElement Class Reference</h1><!-- doxytag: class="TelEngine::TiXmlElement" --><!-- doxytag: inherits="TelEngine::TiXmlNode" --><code>#include &lt;<a class="el" href="tinyxml_8h-source.html">tinyxml.h</a>&gt;</code>
<p>
<div class="dynheader">
Inheritance diagram for TiXmlElement:</div>
<div class="dynsection">

<p><center><img src="classTelEngine_1_1TiXmlElement.png" usemap="#TiXmlElement_map" border="0" alt=""></center>
<map name="TiXmlElement_map">
<area href="classTelEngine_1_1TiXmlNode.html" alt="TiXmlNode" shape="rect" coords="0,56,87,80">
<area href="classTelEngine_1_1TiXmlBase.html" alt="TiXmlBase" shape="rect" coords="0,0,87,24">
</map>
</div>

<p>
<a href="classTelEngine_1_1TiXmlElement-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="fef495516679fdc02d57948a070899a4"></a><!-- doxytag: member="TelEngine::TiXmlElement::TiXmlElement" ref="fef495516679fdc02d57948a070899a4" args="(const char *in_value)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTelEngine_1_1TiXmlElement.html#fef495516679fdc02d57948a070899a4">TiXmlElement</a> (const char *in_value)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Construct an element. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3289b5299814fbf3431a33b4bc66cce1"></a><!-- doxytag: member="TelEngine::TiXmlElement::TiXmlElement" ref="3289b5299814fbf3431a33b4bc66cce1" args="(const std::string &amp;_value)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTelEngine_1_1TiXmlElement.html#3289b5299814fbf3431a33b4bc66cce1">TiXmlElement</a> (const std::string &amp;_value)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">std::string constructor. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c299cddadb1870a007e636ac65bf66cb"></a><!-- doxytag: member="TelEngine::TiXmlElement::TiXmlElement" ref="c299cddadb1870a007e636ac65bf66cb" args="(const TiXmlElement &amp;)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>TiXmlElement</b> (const <a class="el" href="classTelEngine_1_1TiXmlElement.html">TiXmlElement</a> &amp;)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="81bb2b47b59d81fba2f436c5ec25e0ed"></a><!-- doxytag: member="TelEngine::TiXmlElement::operator=" ref="81bb2b47b59d81fba2f436c5ec25e0ed" args="(const TiXmlElement &amp;base)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><b>operator=</b> (const <a class="el" href="classTelEngine_1_1TiXmlElement.html">TiXmlElement</a> &amp;base)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTelEngine_1_1TiXmlElement.html#3d913ca6d78f43ca5498dcc257f9163c">Attribute</a> (const char *name) const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTelEngine_1_1TiXmlElement.html#02fcaa23d16de0d72fae4439f21fa203">Attribute</a> (const char *name, int *i) const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTelEngine_1_1TiXmlElement.html#7df9fe5c4a913dc59189bdfe7955b158">Attribute</a> (const char *name, double *d) const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTelEngine_1_1TiXmlElement.html#972027c6de44102fdff0d165410565f1">QueryIntAttribute</a> (const char *name, int *_value) const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="038e43e4cf0837ab960df5ff5c0404b0"></a><!-- doxytag: member="TelEngine::TiXmlElement::QueryDoubleAttribute" ref="038e43e4cf0837ab960df5ff5c0404b0" args="(const char *name, double *_value) const " -->
int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTelEngine_1_1TiXmlElement.html#038e43e4cf0837ab960df5ff5c0404b0">QueryDoubleAttribute</a> (const char *name, double *_value) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">QueryDoubleAttribute examines the attribute - see <a class="el" href="classTelEngine_1_1TiXmlElement.html#972027c6de44102fdff0d165410565f1">QueryIntAttribute()</a>. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0525da5f0899e687d9a4d0a5442c2d14"></a><!-- doxytag: member="TelEngine::TiXmlElement::QueryFloatAttribute" ref="0525da5f0899e687d9a4d0a5442c2d14" args="(const char *name, float *_value) const " -->
int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTelEngine_1_1TiXmlElement.html#0525da5f0899e687d9a4d0a5442c2d14">QueryFloatAttribute</a> (const char *name, float *_value) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">QueryFloatAttribute examines the attribute - see <a class="el" href="classTelEngine_1_1TiXmlElement.html#972027c6de44102fdff0d165410565f1">QueryIntAttribute()</a>. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTelEngine_1_1TiXmlElement.html#eaa3964c69762f892060e14b9636dee5">SetAttribute</a> (const char *name, const char *_value)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="207b6326c127ab406fefec926ae79f5a"></a><!-- doxytag: member="TelEngine::TiXmlElement::Attribute" ref="207b6326c127ab406fefec926ae79f5a" args="(const std::string &amp;name) const " -->
const char *&nbsp;</td><td class="memItemRight" valign="bottom"><b>Attribute</b> (const std::string &amp;name) const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="67eac671ed2ba6d58914e55089116dfa"></a><!-- doxytag: member="TelEngine::TiXmlElement::Attribute" ref="67eac671ed2ba6d58914e55089116dfa" args="(const std::string &amp;name, int *i) const " -->
const char *&nbsp;</td><td class="memItemRight" valign="bottom"><b>Attribute</b> (const std::string &amp;name, int *i) const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="441f67c6ec40241bae21fe8d0884f976"></a><!-- doxytag: member="TelEngine::TiXmlElement::Attribute" ref="441f67c6ec40241bae21fe8d0884f976" args="(const std::string &amp;name, double *d) const " -->
const char *&nbsp;</td><td class="memItemRight" valign="bottom"><b>Attribute</b> (const std::string &amp;name, double *d) const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="68f32a06b2dd473dd2a29fcc2ed1f37e"></a><!-- doxytag: member="TelEngine::TiXmlElement::QueryIntAttribute" ref="68f32a06b2dd473dd2a29fcc2ed1f37e" args="(const std::string &amp;name, int *_value) const " -->
int&nbsp;</td><td class="memItemRight" valign="bottom"><b>QueryIntAttribute</b> (const std::string &amp;name, int *_value) const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6dfe58c30ac98701a3a8cfc1edbe44a9"></a><!-- doxytag: member="TelEngine::TiXmlElement::QueryDoubleAttribute" ref="6dfe58c30ac98701a3a8cfc1edbe44a9" args="(const std::string &amp;name, double *_value) const " -->
int&nbsp;</td><td class="memItemRight" valign="bottom"><b>QueryDoubleAttribute</b> (const std::string &amp;name, double *_value) const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTelEngine_1_1TiXmlElement.html#997cb2106b2fddc9faa8b099a1103979">SetAttribute</a> (const std::string &amp;name, const std::string &amp;_value)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">STL std::string form.  <a href="#997cb2106b2fddc9faa8b099a1103979"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e8230084257571db10d8a77ff68b3c93"></a><!-- doxytag: member="TelEngine::TiXmlElement::SetAttribute" ref="e8230084257571db10d8a77ff68b3c93" args="(const std::string &amp;name, int _value)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><b>SetAttribute</b> (const std::string &amp;name, int _value)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTelEngine_1_1TiXmlElement.html#de4fa1e18b3bf96da49e249d03f63c90">SetAttribute</a> (const char *name, int value)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTelEngine_1_1TiXmlElement.html#c24c2dea49288cd446f2340c301c2e6a">SetDoubleAttribute</a> (const char *name, double value)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTelEngine_1_1TiXmlElement.html#8071a29307c7a7573f507debc084ec43">RemoveAttribute</a> (const char *name)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0faa8ab18b5171ea2ad6f6dddc8d2889"></a><!-- doxytag: member="TelEngine::TiXmlElement::RemoveAttribute" ref="0faa8ab18b5171ea2ad6f6dddc8d2889" args="(const std::string &amp;name)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTelEngine_1_1TiXmlElement.html#0faa8ab18b5171ea2ad6f6dddc8d2889">RemoveAttribute</a> (const std::string &amp;name)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">STL std::string form. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7b357194869f6d65539da85dc6544d24"></a><!-- doxytag: member="TelEngine::TiXmlElement::FirstAttribute" ref="7b357194869f6d65539da85dc6544d24" args="() const " -->
const <a class="el" href="classTelEngine_1_1TiXmlAttribute.html">TiXmlAttribute</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTelEngine_1_1TiXmlElement.html#7b357194869f6d65539da85dc6544d24">FirstAttribute</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Access the first attribute in this element. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3b630879ac25fe5bfc4f4f779c200406"></a><!-- doxytag: member="TelEngine::TiXmlElement::FirstAttribute" ref="3b630879ac25fe5bfc4f4f779c200406" args="()" -->
<a class="el" href="classTelEngine_1_1TiXmlAttribute.html">TiXmlAttribute</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><b>FirstAttribute</b> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2bacb6685a44d7a89cdece343b447dac"></a><!-- doxytag: member="TelEngine::TiXmlElement::LastAttribute" ref="2bacb6685a44d7a89cdece343b447dac" args="() const " -->
const <a class="el" href="classTelEngine_1_1TiXmlAttribute.html">TiXmlAttribute</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTelEngine_1_1TiXmlElement.html#2bacb6685a44d7a89cdece343b447dac">LastAttribute</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Access the last attribute in this element. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="65888f62847066c810b809ffea9ac62d"></a><!-- doxytag: member="TelEngine::TiXmlElement::LastAttribute" ref="65888f62847066c810b809ffea9ac62d" args="()" -->
<a class="el" href="classTelEngine_1_1TiXmlAttribute.html">TiXmlAttribute</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><b>LastAttribute</b> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTelEngine_1_1TiXmlElement.html#1101153f7a899d8efd98c007a73600bb">GetText</a> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="842a98f3a31af4a808cee9d8842e5072"></a><!-- doxytag: member="TelEngine::TiXmlElement::Clone" ref="842a98f3a31af4a808cee9d8842e5072" args="() const " -->
virtual <a class="el" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTelEngine_1_1TiXmlElement.html#842a98f3a31af4a808cee9d8842e5072">Clone</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Creates a new Element and returns it - the returned element is a copy. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTelEngine_1_1TiXmlElement.html#a0c7ee41a4ae95253c321399cd995b9f">Print</a> (FILE *cfile, int depth) const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6c006d93730ee147d7bbc35c29033ad6"></a><!-- doxytag: member="TelEngine::TiXmlElement::Parse" ref="6c006d93730ee147d7bbc35c29033ad6" args="(const char *p, TiXmlParsingData *data, TiXmlEncoding encoding)" -->
virtual const char *&nbsp;</td><td class="memItemRight" valign="bottom"><b>Parse</b> (const char *p, TiXmlParsingData *data, TiXmlEncoding encoding)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7a2cc466ad0e9996d71ee5da2db2511f"></a><!-- doxytag: member="TelEngine::TiXmlElement::ToElement" ref="7a2cc466ad0e9996d71ee5da2db2511f" args="() const " -->
virtual const <a class="el" href="classTelEngine_1_1TiXmlElement.html">TiXmlElement</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTelEngine_1_1TiXmlElement.html#7a2cc466ad0e9996d71ee5da2db2511f">ToElement</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Cast to a more defined type. Will return null not of the requested type. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6225c641ac28d55726b392a3a33774e8"></a><!-- doxytag: member="TelEngine::TiXmlElement::ToElement" ref="6225c641ac28d55726b392a3a33774e8" args="()" -->
virtual <a class="el" href="classTelEngine_1_1TiXmlElement.html">TiXmlElement</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTelEngine_1_1TiXmlElement.html#6225c641ac28d55726b392a3a33774e8">ToElement</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Cast to a more defined type. Will return null not of the requested type. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="38848efd07a0e5dc4994b8b266740953"></a><!-- doxytag: member="TelEngine::TiXmlElement::StreamOut" ref="38848efd07a0e5dc4994b8b266740953" args="(TIXML_OSTREAM *out, bool unclosed=false) const " -->
virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><b>StreamOut</b> (TIXML_OSTREAM *out, bool unclosed=false) const </td></tr>

<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f9060cfa49543a1362e6f847de3600d1"></a><!-- doxytag: member="TelEngine::TiXmlElement::CopyTo" ref="f9060cfa49543a1362e6f847de3600d1" args="(TiXmlElement *target) const " -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><b>CopyTo</b> (<a class="el" href="classTelEngine_1_1TiXmlElement.html">TiXmlElement</a> *target) const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f6e492c158a10c6b78f946f71c00f328"></a><!-- doxytag: member="TelEngine::TiXmlElement::ClearThis" ref="f6e492c158a10c6b78f946f71c00f328" args="()" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><b>ClearThis</b> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8693fd4b2b20c70468dd84074e98b678"></a><!-- doxytag: member="TelEngine::TiXmlElement::StreamIn" ref="8693fd4b2b20c70468dd84074e98b678" args="(TIXML_ISTREAM *in, TIXML_STRING *tag)" -->
virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><b>StreamIn</b> (TIXML_ISTREAM *in, TIXML_STRING *tag)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b266e9428b5c62b840ca97c532839b0b"></a><!-- doxytag: member="TelEngine::TiXmlElement::ReadValue" ref="b266e9428b5c62b840ca97c532839b0b" args="(const char *in, TiXmlParsingData *prevData, TiXmlEncoding encoding)" -->
const char *&nbsp;</td><td class="memItemRight" valign="bottom"><b>ReadValue</b> (const char *in, TiXmlParsingData *prevData, TiXmlEncoding encoding)</td></tr>

</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
The element is a container class. It has a value, the element name, and can contain other elements, text, comments, and unknowns. Elements also contain an arbitrary number of attributes. <hr><h2>Member Function Documentation</h2>
<a class="anchor" name="7df9fe5c4a913dc59189bdfe7955b158"></a><!-- doxytag: member="TelEngine::TiXmlElement::Attribute" ref="7df9fe5c4a913dc59189bdfe7955b158" args="(const char *name, double *d) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char* Attribute           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double *&nbsp;</td>
          <td class="paramname"> <em>d</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Given an attribute name, <a class="el" href="classTelEngine_1_1TiXmlElement.html#3d913ca6d78f43ca5498dcc257f9163c">Attribute()</a> returns the value for the attribute of that name, or null if none exists. If the attribute exists and can be converted to an double, the double value will be put in the return 'd', if 'd' is non-null. 
</div>
</div><p>
<a class="anchor" name="02fcaa23d16de0d72fae4439f21fa203"></a><!-- doxytag: member="TelEngine::TiXmlElement::Attribute" ref="02fcaa23d16de0d72fae4439f21fa203" args="(const char *name, int *i) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char* Attribute           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&nbsp;</td>
          <td class="paramname"> <em>i</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Given an attribute name, <a class="el" href="classTelEngine_1_1TiXmlElement.html#3d913ca6d78f43ca5498dcc257f9163c">Attribute()</a> returns the value for the attribute of that name, or null if none exists. If the attribute exists and can be converted to an integer, the integer value will be put in the return 'i', if 'i' is non-null. 
</div>
</div><p>
<a class="anchor" name="3d913ca6d78f43ca5498dcc257f9163c"></a><!-- doxytag: member="TelEngine::TiXmlElement::Attribute" ref="3d913ca6d78f43ca5498dcc257f9163c" args="(const char *name) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char* Attribute           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>name</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Given an attribute name, <a class="el" href="classTelEngine_1_1TiXmlElement.html#3d913ca6d78f43ca5498dcc257f9163c">Attribute()</a> returns the value for the attribute of that name, or null if none exists. 
</div>
</div><p>
<a class="anchor" name="1101153f7a899d8efd98c007a73600bb"></a><!-- doxytag: member="TelEngine::TiXmlElement::GetText" ref="1101153f7a899d8efd98c007a73600bb" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char* GetText           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Convenience function for easy access to the text inside an element. Although easy and concise, <a class="el" href="classTelEngine_1_1TiXmlElement.html#1101153f7a899d8efd98c007a73600bb">GetText()</a> is limited compared to getting the <a class="el" href="classTelEngine_1_1TiXmlText.html">TiXmlText</a> child and accessing it directly.<p>
If the first child of 'this' is a <a class="el" href="classTelEngine_1_1TiXmlText.html">TiXmlText</a>, the <a class="el" href="classTelEngine_1_1TiXmlElement.html#1101153f7a899d8efd98c007a73600bb">GetText()</a> returns the character string of the Text node, else null is returned.<p>
This is a convenient method for getting the text of simple contained text: <div class="fragment"><pre class="fragment">
		&lt;foo&gt;This is text&lt;/foo&gt;
		const char* str = fooElement-&gt;GetText();
		</pre></div><p>
'str' will be a pointer to "This is text".<p>
Note that this function can be misleading. If the element foo was created from this XML: <div class="fragment"><pre class="fragment">
		&lt;foo&gt;&lt;b&gt;This is text&lt;/b&gt;&lt;/foo&gt; 
		</pre></div><p>
then the value of str would be null. The first child node isn't a text node, it is another element. From this XML: <div class="fragment"><pre class="fragment">
		&lt;foo&gt;This is &lt;b&gt;text&lt;/b&gt;&lt;/foo&gt; 
		</pre></div> <a class="el" href="classTelEngine_1_1TiXmlElement.html#1101153f7a899d8efd98c007a73600bb">GetText()</a> will return "This is ".<p>
WARNING: <a class="el" href="classTelEngine_1_1TiXmlElement.html#1101153f7a899d8efd98c007a73600bb">GetText()</a> accesses a child node - don't become confused with the similarly named <a class="el" href="classTelEngine_1_1TiXmlHandle.html#3020aa52e43b2640bc34b4d4550a4586" title="Return the handle as a TiXmlText. This may return null.">TiXmlHandle::Text()</a> and <a class="el" href="classTelEngine_1_1TiXmlNode.html#0229d3dce587577a7a295d07524ccf6b" title="Cast to a more defined type. Will return null if not of the requested type.">TiXmlNode::ToText()</a> which are safe type casts on the referenced node. 
</div>
</div><p>
<a class="anchor" name="a0c7ee41a4ae95253c321399cd995b9f"></a><!-- doxytag: member="TelEngine::TiXmlElement::Print" ref="a0c7ee41a4ae95253c321399cd995b9f" args="(FILE *cfile, int depth) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void Print           </td>
          <td>(</td>
          <td class="paramtype">FILE *&nbsp;</td>
          <td class="paramname"> <em>cfile</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>depth</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
All TinyXml classes can print themselves to a filestream. This is a formatted print, and will insert tabs and newlines.<p>
(For an unformatted stream, use the &lt;&lt; operator.) 
<p>Implements <a class="el" href="classTelEngine_1_1TiXmlBase.html#953033a3c8ccb7404e67b0be72562391">TiXmlBase</a>.</p>

</div>
</div><p>
<a class="anchor" name="972027c6de44102fdff0d165410565f1"></a><!-- doxytag: member="TelEngine::TiXmlElement::QueryIntAttribute" ref="972027c6de44102fdff0d165410565f1" args="(const char *name, int *_value) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int QueryIntAttribute           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&nbsp;</td>
          <td class="paramname"> <em>_value</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
QueryIntAttribute examines the attribute - it is an alternative to the <a class="el" href="classTelEngine_1_1TiXmlElement.html#3d913ca6d78f43ca5498dcc257f9163c">Attribute()</a> method with richer error checking. If the attribute is an integer, it is stored in 'value' and the call returns TIXML_SUCCESS. If it is not an integer, it returns TIXML_WRONG_TYPE. If the attribute does not exist, then TIXML_NO_ATTRIBUTE is returned. 
</div>
</div><p>
<a class="anchor" name="8071a29307c7a7573f507debc084ec43"></a><!-- doxytag: member="TelEngine::TiXmlElement::RemoveAttribute" ref="8071a29307c7a7573f507debc084ec43" args="(const char *name)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RemoveAttribute           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>name</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Deletes an attribute with the given name. 
</div>
</div><p>
<a class="anchor" name="de4fa1e18b3bf96da49e249d03f63c90"></a><!-- doxytag: member="TelEngine::TiXmlElement::SetAttribute" ref="de4fa1e18b3bf96da49e249d03f63c90" args="(const char *name, int value)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SetAttribute           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>value</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets an attribute of name to a given value. The attribute will be created if it does not exist, or changed if it does. 
</div>
</div><p>
<a class="anchor" name="997cb2106b2fddc9faa8b099a1103979"></a><!-- doxytag: member="TelEngine::TiXmlElement::SetAttribute" ref="997cb2106b2fddc9faa8b099a1103979" args="(const std::string &amp;name, const std::string &amp;_value)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SetAttribute           </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>_value</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
STL std::string form. 
<p>
STL std::string form. 
</div>
</div><p>
<a class="anchor" name="eaa3964c69762f892060e14b9636dee5"></a><!-- doxytag: member="TelEngine::TiXmlElement::SetAttribute" ref="eaa3964c69762f892060e14b9636dee5" args="(const char *name, const char *_value)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SetAttribute           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>_value</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets an attribute of name to a given value. The attribute will be created if it does not exist, or changed if it does. 
</div>
</div><p>
<a class="anchor" name="c24c2dea49288cd446f2340c301c2e6a"></a><!-- doxytag: member="TelEngine::TiXmlElement::SetDoubleAttribute" ref="c24c2dea49288cd446f2340c301c2e6a" args="(const char *name, double value)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SetDoubleAttribute           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>value</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets an attribute of name to a given value. The attribute will be created if it does not exist, or changed if it does. 
</div>
</div><p>
<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></ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Dec 7 21:36:14 2008 for Yate by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.7.1 </small></address>
</body>
</html>