Sophie

Sophie

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

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: tinyxml.h Source File</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><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
    </ul>
  </div>
<h1>tinyxml.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment">www.sourceforge.net/projects/tinyxml</span>
<a name="l00003"></a>00003 <span class="comment">Original code (2.0 and earlier )copyright (c) 2000-2002 Lee Thomason (www.grinninglizard.com)</span>
<a name="l00004"></a>00004 <span class="comment"></span>
<a name="l00005"></a>00005 <span class="comment">This software is provided 'as-is', without any express or implied</span>
<a name="l00006"></a>00006 <span class="comment">warranty. In no event will the authors be held liable for any</span>
<a name="l00007"></a>00007 <span class="comment">damages arising from the use of this software.</span>
<a name="l00008"></a>00008 <span class="comment"></span>
<a name="l00009"></a>00009 <span class="comment">Permission is granted to anyone to use this software for any</span>
<a name="l00010"></a>00010 <span class="comment">purpose, including commercial applications, and to alter it and</span>
<a name="l00011"></a>00011 <span class="comment">redistribute it freely, subject to the following restrictions:</span>
<a name="l00012"></a>00012 <span class="comment"></span>
<a name="l00013"></a>00013 <span class="comment">1. The origin of this software must not be misrepresented; you must</span>
<a name="l00014"></a>00014 <span class="comment">not claim that you wrote the original software. If you use this</span>
<a name="l00015"></a>00015 <span class="comment">software in a product, an acknowledgment in the product documentation</span>
<a name="l00016"></a>00016 <span class="comment">would be appreciated but is not required.</span>
<a name="l00017"></a>00017 <span class="comment"></span>
<a name="l00018"></a>00018 <span class="comment">2. Altered source versions must be plainly marked as such, and</span>
<a name="l00019"></a>00019 <span class="comment">must not be misrepresented as being the original software.</span>
<a name="l00020"></a>00020 <span class="comment"></span>
<a name="l00021"></a>00021 <span class="comment">3. This notice may not be removed or altered from any source</span>
<a name="l00022"></a>00022 <span class="comment">distribution.</span>
<a name="l00023"></a>00023 <span class="comment">*/</span>
<a name="l00024"></a>00024 
<a name="l00025"></a>00025 <span class="preprocessor">#ifndef TINYXML_INCLUDED</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span><span class="preprocessor">#define TINYXML_INCLUDED</span>
<a name="l00027"></a>00027 <span class="preprocessor"></span>
<a name="l00028"></a>00028 <span class="preprocessor">#include &lt;yateclass.h&gt;</span>
<a name="l00029"></a>00029 
<a name="l00030"></a>00030 <span class="preprocessor">#ifdef _MSC_VER</span>
<a name="l00031"></a>00031 <span class="preprocessor"></span><span class="preprocessor">#pragma warning( push )</span>
<a name="l00032"></a>00032 <span class="preprocessor"></span><span class="preprocessor">#pragma warning( disable : 4530 )</span>
<a name="l00033"></a>00033 <span class="preprocessor"></span><span class="preprocessor">#pragma warning( disable : 4786 )</span>
<a name="l00034"></a>00034 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00035"></a>00035 <span class="preprocessor"></span>
<a name="l00036"></a>00036 <span class="preprocessor">#include &lt;ctype.h&gt;</span>
<a name="l00037"></a>00037 <span class="preprocessor">#include &lt;stdio.h&gt;</span>
<a name="l00038"></a>00038 <span class="preprocessor">#include &lt;stdlib.h&gt;</span>
<a name="l00039"></a>00039 <span class="preprocessor">#include &lt;string.h&gt;</span>
<a name="l00040"></a>00040 <span class="preprocessor">#include &lt;assert.h&gt;</span>
<a name="l00041"></a>00041 
<a name="l00042"></a>00042 <span class="comment">// Help out windows:</span>
<a name="l00043"></a>00043 <span class="preprocessor">#if defined( _DEBUG ) &amp;&amp; !defined( DEBUG )</span>
<a name="l00044"></a>00044 <span class="preprocessor"></span><span class="preprocessor">#define DEBUG</span>
<a name="l00045"></a>00045 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00046"></a>00046 <span class="preprocessor"></span>
<a name="l00047"></a>00047 <span class="preprocessor">#ifdef TIXML_USE_STL</span>
<a name="l00048"></a>00048 <span class="preprocessor"></span><span class="preprocessor">        #include &lt;string&gt;</span>
<a name="l00049"></a>00049 <span class="preprocessor">        #include &lt;iostream&gt;</span>
<a name="l00050"></a>00050 <span class="preprocessor">        #define TIXML_STRING    std::string</span>
<a name="l00051"></a>00051 <span class="preprocessor"></span><span class="preprocessor">        #define TIXML_ISTREAM   std::istream</span>
<a name="l00052"></a>00052 <span class="preprocessor"></span><span class="preprocessor">        #define TIXML_OSTREAM   std::ostream</span>
<a name="l00053"></a>00053 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00054"></a>00054 <span class="preprocessor"></span><span class="preprocessor">        #include "tinystr.h"</span>
<a name="l00055"></a>00055 <span class="preprocessor">        #define TIXML_STRING    TiXmlString</span>
<a name="l00056"></a>00056 <span class="preprocessor"></span><span class="preprocessor">        #define TIXML_OSTREAM   TiXmlOutStream</span>
<a name="l00057"></a>00057 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00058"></a>00058 <span class="preprocessor"></span>
<a name="l00059"></a>00059 <span class="comment">// Deprecated library function hell. Compilers want to use the</span>
<a name="l00060"></a>00060 <span class="comment">// new safe versions. This probably doesn't fully address the problem,</span>
<a name="l00061"></a>00061 <span class="comment">// but it gets closer. There are too many compilers for me to fully</span>
<a name="l00062"></a>00062 <span class="comment">// test. If you get compilation troubles, undefine TIXML_SAFE</span>
<a name="l00063"></a>00063 
<a name="l00064"></a>00064 <span class="preprocessor">#define TIXML_SAFE              // TinyXml isn't fully buffer overrun protected, safe code. This is work in progress.</span>
<a name="l00065"></a>00065 <span class="preprocessor"></span><span class="preprocessor">#ifdef TIXML_SAFE</span>
<a name="l00066"></a>00066 <span class="preprocessor"></span><span class="preprocessor">        #if defined(_MSC_VER) &amp;&amp; (_MSC_VER &gt;= 1400 )</span>
<a name="l00067"></a>00067 <span class="preprocessor"></span>                <span class="comment">// Microsoft visual studio, version 2005 and higher.</span>
<a name="l00068"></a>00068 <span class="preprocessor">                #define TIXML_SNPRINTF _snprintf_s</span>
<a name="l00069"></a>00069 <span class="preprocessor"></span><span class="preprocessor">                #define TIXML_SNSCANF  _snscanf_s</span>
<a name="l00070"></a>00070 <span class="preprocessor"></span><span class="preprocessor">        #elif defined(_MSC_VER) &amp;&amp; (_MSC_VER &gt;= 1200 )</span>
<a name="l00071"></a>00071 <span class="preprocessor"></span>                <span class="comment">// Microsoft visual studio, version 6 and higher.</span>
<a name="l00072"></a>00072                 <span class="comment">//#pragma message( "Using _sn* functions." )</span>
<a name="l00073"></a>00073 <span class="preprocessor">                #define TIXML_SNPRINTF _snprintf</span>
<a name="l00074"></a>00074 <span class="preprocessor"></span><span class="preprocessor">                #define TIXML_SNSCANF  _snscanf</span>
<a name="l00075"></a>00075 <span class="preprocessor"></span><span class="preprocessor">        #elif defined(__GNUC__) &amp;&amp; (__GNUC__ &gt;= 3 )</span>
<a name="l00076"></a>00076 <span class="preprocessor"></span>                <span class="comment">// GCC version 3 and higher.s</span>
<a name="l00077"></a>00077                 <span class="comment">//#warning( "Using sn* functions." )</span>
<a name="l00078"></a>00078 <span class="preprocessor">                #define TIXML_SNPRINTF snprintf</span>
<a name="l00079"></a>00079 <span class="preprocessor"></span><span class="preprocessor">                #define TIXML_SNSCANF  snscanf</span>
<a name="l00080"></a>00080 <span class="preprocessor"></span><span class="preprocessor">        #endif</span>
<a name="l00081"></a>00081 <span class="preprocessor"></span><span class="preprocessor">#endif  </span>
<a name="l00082"></a>00082 <span class="preprocessor"></span>
<a name="l00083"></a>00083 <span class="preprocessor">#ifdef _WINDOWS</span>
<a name="l00084"></a>00084 <span class="preprocessor"></span>
<a name="l00085"></a>00085 <span class="preprocessor">#ifdef LIBYXML_EXPORTS</span>
<a name="l00086"></a>00086 <span class="preprocessor"></span><span class="preprocessor">#define YXML_API __declspec(dllexport)</span>
<a name="l00087"></a>00087 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00088"></a>00088 <span class="preprocessor"></span><span class="preprocessor">#ifndef LIBYXML_STATIC</span>
<a name="l00089"></a>00089 <span class="preprocessor"></span><span class="preprocessor">#define YXML_API __declspec(dllimport)</span>
<a name="l00090"></a>00090 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00091"></a>00091 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00092"></a>00092 <span class="preprocessor"></span>
<a name="l00093"></a>00093 <span class="preprocessor">#endif </span><span class="comment">/* _WINDOWS */</span>
<a name="l00094"></a>00094 
<a name="l00095"></a>00095 <span class="preprocessor">#ifndef YXML_API</span>
<a name="l00096"></a>00096 <span class="preprocessor"></span><span class="preprocessor">#define YXML_API</span>
<a name="l00097"></a>00097 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00098"></a>00098 <span class="preprocessor"></span>
<a name="l00102"></a>00102 <span class="keyword">namespace </span>TelEngine {
<a name="l00103"></a>00103 
<a name="l00104"></a>00104 <span class="keyword">class </span>TiXmlDocument;
<a name="l00105"></a>00105 <span class="keyword">class </span>TiXmlElement;
<a name="l00106"></a>00106 <span class="keyword">class </span>TiXmlComment;
<a name="l00107"></a>00107 <span class="keyword">class </span>TiXmlUnknown;
<a name="l00108"></a>00108 <span class="keyword">class </span>TiXmlAttribute;
<a name="l00109"></a>00109 <span class="keyword">class </span>TiXmlText;
<a name="l00110"></a>00110 <span class="keyword">class </span>TiXmlDeclaration;
<a name="l00111"></a>00111 <span class="keyword">class </span>TiXmlParsingData;
<a name="l00112"></a>00112 
<a name="l00113"></a>00113 <span class="keyword">const</span> <span class="keywordtype">int</span> TIXML_MAJOR_VERSION = 2;
<a name="l00114"></a>00114 <span class="keyword">const</span> <span class="keywordtype">int</span> TIXML_MINOR_VERSION = 4;
<a name="l00115"></a>00115 <span class="keyword">const</span> <span class="keywordtype">int</span> TIXML_PATCH_VERSION = 3;
<a name="l00116"></a>00116 
<a name="l00117"></a>00117 <span class="comment">/*      Internal structure for tracking location of items </span>
<a name="l00118"></a>00118 <span class="comment">        in the XML file.</span>
<a name="l00119"></a>00119 <span class="comment">*/</span>
<a name="l00120"></a>00120 <span class="keyword">struct </span>YXML_API TiXmlCursor
<a name="l00121"></a>00121 {
<a name="l00122"></a>00122         TiXmlCursor()           { Clear(); }
<a name="l00123"></a>00123         <span class="keywordtype">void</span> Clear()            { row = col = -1; }
<a name="l00124"></a>00124 
<a name="l00125"></a>00125         <span class="keywordtype">int</span> row;        <span class="comment">// 0 based.</span>
<a name="l00126"></a>00126         <span class="keywordtype">int</span> col;        <span class="comment">// 0 based.</span>
<a name="l00127"></a>00127 };
<a name="l00128"></a>00128 
<a name="l00129"></a>00129 
<a name="l00130"></a>00130 <span class="comment">// Only used by Attribute::Query functions</span>
<a name="l00131"></a>00131 <span class="keyword">enum</span> 
<a name="l00132"></a>00132 { 
<a name="l00133"></a>00133         TIXML_SUCCESS,
<a name="l00134"></a>00134         TIXML_NO_ATTRIBUTE,
<a name="l00135"></a>00135         TIXML_WRONG_TYPE
<a name="l00136"></a>00136 };
<a name="l00137"></a>00137 
<a name="l00138"></a>00138 
<a name="l00139"></a>00139 <span class="comment">// Used by the parsing routines.</span>
<a name="l00140"></a>00140 <span class="keyword">enum</span> TiXmlEncoding
<a name="l00141"></a>00141 {
<a name="l00142"></a>00142         TIXML_ENCODING_UNKNOWN,
<a name="l00143"></a>00143         TIXML_ENCODING_UTF8,
<a name="l00144"></a>00144         TIXML_ENCODING_LEGACY
<a name="l00145"></a>00145 };
<a name="l00146"></a>00146 
<a name="l00147"></a>00147 <span class="keyword">const</span> TiXmlEncoding TIXML_DEFAULT_ENCODING = TIXML_ENCODING_UNKNOWN;
<a name="l00148"></a>00148 
<a name="l00171"></a><a class="code" href="classTelEngine_1_1TiXmlBase.html">00171</a> <span class="keyword">class </span>YXML_API <a class="code" href="classTelEngine_1_1TiXmlBase.html">TiXmlBase</a>
<a name="l00172"></a>00172 {
<a name="l00173"></a>00173         <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>;
<a name="l00174"></a>00174         <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classTelEngine_1_1TiXmlElement.html">TiXmlElement</a>;
<a name="l00175"></a>00175         <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classTelEngine_1_1TiXmlDocument.html">TiXmlDocument</a>;
<a name="l00176"></a>00176 
<a name="l00177"></a>00177 <span class="keyword">public</span>:
<a name="l00178"></a>00178         <a class="code" href="classTelEngine_1_1TiXmlBase.html">TiXmlBase</a>()     :       userData(0) {}
<a name="l00179"></a>00179         <span class="keyword">virtual</span> ~<a class="code" href="classTelEngine_1_1TiXmlBase.html">TiXmlBase</a>()                                    {}
<a name="l00180"></a>00180 
<a name="l00186"></a>00186         <span class="keyword">virtual</span> <span class="keywordtype">void</span> Print( FILE* cfile, <span class="keywordtype">int</span> depth ) <span class="keyword">const</span> = 0;
<a name="l00187"></a>00187 
<a name="l00194"></a><a class="code" href="classTelEngine_1_1TiXmlBase.html#f8f2207f82d9add8ab6f375f5a5b9667">00194</a>         <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classTelEngine_1_1TiXmlBase.html#f8f2207f82d9add8ab6f375f5a5b9667">SetCondenseWhiteSpace</a>( <span class="keywordtype">bool</span> condense )              { condenseWhiteSpace = condense; }
<a name="l00195"></a>00195 
<a name="l00197"></a><a class="code" href="classTelEngine_1_1TiXmlBase.html#3b5c220f2933287671e650679746c08f">00197</a>         <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classTelEngine_1_1TiXmlBase.html#3b5c220f2933287671e650679746c08f" title="Return the current white space setting.">IsWhiteSpaceCondensed</a>()                                             { <span class="keywordflow">return</span> condenseWhiteSpace; }
<a name="l00198"></a>00198 
<a name="l00217"></a><a class="code" href="classTelEngine_1_1TiXmlBase.html#8b8f21430c62433a48c592277a3bd7a2">00217</a>         <span class="keywordtype">int</span> <a class="code" href="classTelEngine_1_1TiXmlBase.html#8b8f21430c62433a48c592277a3bd7a2">Row</a>()<span class="keyword"> const                 </span>{ <span class="keywordflow">return</span> location.row + 1; }
<a name="l00218"></a><a class="code" href="classTelEngine_1_1TiXmlBase.html#b01a75ed9853cd6e22f06a61d173f229">00218</a>         <span class="keywordtype">int</span> <a class="code" href="classTelEngine_1_1TiXmlBase.html#b01a75ed9853cd6e22f06a61d173f229" title="See Row().">Column</a>()<span class="keyword"> const              </span>{ <span class="keywordflow">return</span> location.col + 1; }    
<a name="l00219"></a>00219 
<a name="l00220"></a>00220         <span class="keywordtype">void</span>  SetUserData( <span class="keywordtype">void</span>* user )                 { userData = user; }
<a name="l00221"></a>00221         <span class="keywordtype">void</span>* GetUserData()                                             { <span class="keywordflow">return</span> userData; }
<a name="l00222"></a>00222 
<a name="l00223"></a>00223         <span class="comment">// Table that returs, for a given lead byte, the total number of bytes</span>
<a name="l00224"></a>00224         <span class="comment">// in the UTF-8 sequence.</span>
<a name="l00225"></a>00225         <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> utf8ByteTable[256];
<a name="l00226"></a>00226 
<a name="l00227"></a>00227 
<a name="l00228"></a>00228 
<a name="l00229"></a>00229         <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* Parse(<span class="keyword">const</span> <span class="keywordtype">char</span>* p, 
<a name="l00230"></a>00230                                   TiXmlParsingData* data, 
<a name="l00231"></a>00231                                   TiXmlEncoding encoding <span class="comment">/*= TIXML_ENCODING_UNKNOWN */</span> ) = 0;
<a name="l00232"></a>00232 
<a name="l00233"></a>00233         <span class="keyword">enum</span>
<a name="l00234"></a>00234         {
<a name="l00235"></a>00235                 TIXML_NO_ERROR = 0,
<a name="l00236"></a>00236                 TIXML_ERROR,
<a name="l00237"></a>00237                 TIXML_ERROR_OPENING_FILE,
<a name="l00238"></a>00238                 TIXML_ERROR_OUT_OF_MEMORY,
<a name="l00239"></a>00239                 TIXML_ERROR_PARSING_ELEMENT,
<a name="l00240"></a>00240                 TIXML_ERROR_FAILED_TO_READ_ELEMENT_NAME,
<a name="l00241"></a>00241                 TIXML_ERROR_READING_ELEMENT_VALUE,
<a name="l00242"></a>00242                 TIXML_ERROR_READING_ATTRIBUTES,
<a name="l00243"></a>00243                 TIXML_ERROR_PARSING_EMPTY,
<a name="l00244"></a>00244                 TIXML_ERROR_READING_END_TAG,
<a name="l00245"></a>00245                 TIXML_ERROR_PARSING_UNKNOWN,
<a name="l00246"></a>00246                 TIXML_ERROR_PARSING_COMMENT,
<a name="l00247"></a>00247                 TIXML_ERROR_PARSING_DECLARATION,
<a name="l00248"></a>00248                 TIXML_ERROR_DOCUMENT_EMPTY,
<a name="l00249"></a>00249                 TIXML_ERROR_EMBEDDED_NULL,
<a name="l00250"></a>00250                 TIXML_ERROR_PARSING_CDATA,
<a name="l00251"></a>00251                 TIXML_ERROR_INCOMPLETE,
<a name="l00252"></a>00252                 TIXML_ERROR_BUFFEROVERRUN,
<a name="l00253"></a>00253 
<a name="l00254"></a>00254                 TIXML_ERROR_STRING_COUNT
<a name="l00255"></a>00255         };
<a name="l00256"></a>00256 
<a name="l00257"></a>00257 <span class="keyword">protected</span>:
<a name="l00258"></a>00258 
<a name="l00259"></a>00259         <span class="comment">// See STL_STRING_BUG</span>
<a name="l00260"></a>00260         <span class="comment">// Utility class to overcome a bug.</span>
<a name="l00261"></a>00261         <span class="keyword">class </span>StringToBuffer
<a name="l00262"></a>00262         {
<a name="l00263"></a>00263           <span class="keyword">public</span>:
<a name="l00264"></a>00264                 StringToBuffer( <span class="keyword">const</span> TIXML_STRING&amp; str );
<a name="l00265"></a>00265                 ~StringToBuffer();
<a name="l00266"></a>00266                 <span class="keywordtype">char</span>* buffer;
<a name="l00267"></a>00267         };
<a name="l00268"></a>00268 
<a name="l00269"></a>00269         <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span>*      SkipWhiteSpace( <span class="keyword">const</span> <span class="keywordtype">char</span>*, TiXmlEncoding encoding );
<a name="l00270"></a>00270         <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">bool</span>      IsWhiteSpace( <span class="keywordtype">char</span> c )          
<a name="l00271"></a>00271         { 
<a name="l00272"></a>00272                 <span class="keywordflow">return</span> ( isspace( (<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>) c ) || c == <span class="charliteral">'\n'</span> || c == <span class="charliteral">'\r'</span> ); 
<a name="l00273"></a>00273         }
<a name="l00274"></a>00274         <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">bool</span>      IsWhiteSpace( <span class="keywordtype">int</span> c )
<a name="l00275"></a>00275         {
<a name="l00276"></a>00276                 <span class="keywordflow">if</span> ( c &lt; 256 )
<a name="l00277"></a>00277                         <span class="keywordflow">return</span> IsWhiteSpace( (<span class="keywordtype">char</span>) c );
<a name="l00278"></a>00278                 <span class="keywordflow">return</span> <span class="keyword">false</span>;   <span class="comment">// Again, only truly correct for English/Latin...but usually works.</span>
<a name="l00279"></a>00279         }
<a name="l00280"></a>00280 
<a name="l00281"></a>00281 <span class="keyword">public</span>:
<a name="l00282"></a>00282         <span class="keyword">virtual</span> <span class="keywordtype">void</span> StreamOut (TIXML_OSTREAM *, <span class="keywordtype">bool</span> = <span class="keyword">false</span>) <span class="keyword">const</span> = 0;
<a name="l00283"></a>00283 
<a name="l00284"></a>00284 <span class="keyword">protected</span>:
<a name="l00285"></a>00285 <span class="preprocessor">        #ifdef TIXML_USE_STL</span>
<a name="l00286"></a>00286 <span class="preprocessor"></span>            <span class="keyword">static</span> <span class="keywordtype">bool</span> StreamWhiteSpace( TIXML_ISTREAM * in, TIXML_STRING * tag );
<a name="l00287"></a>00287             <span class="keyword">static</span> <span class="keywordtype">bool</span> StreamTo( TIXML_ISTREAM * in, <span class="keywordtype">int</span> character, TIXML_STRING * tag );
<a name="l00288"></a>00288 <span class="preprocessor">        #endif</span>
<a name="l00289"></a>00289 <span class="preprocessor"></span>
<a name="l00290"></a>00290         <span class="comment">/*      Reads an XML name into the string provided. Returns</span>
<a name="l00291"></a>00291 <span class="comment">                a pointer just past the last character of the name,</span>
<a name="l00292"></a>00292 <span class="comment">                or 0 if p or *p are 0.</span>
<a name="l00293"></a>00293 <span class="comment">        */</span>
<a name="l00294"></a>00294         <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* ReadName( <span class="keyword">const</span> <span class="keywordtype">char</span>* p, TIXML_STRING* name, TiXmlEncoding encoding );
<a name="l00295"></a>00295 
<a name="l00296"></a>00296         <span class="comment">/*      Reads text. Returns a pointer past the given end tag.</span>
<a name="l00297"></a>00297 <span class="comment">                Wickedly complex options, but it keeps the (sensitive) code in one place.</span>
<a name="l00298"></a>00298 <span class="comment">                *** Return 0 if end tag is not found.</span>
<a name="l00299"></a>00299 <span class="comment">                *** Set eof to true if data ended before end tag.</span>
<a name="l00300"></a>00300 <span class="comment">        */</span>
<a name="l00301"></a>00301         <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* ReadText(<span class="keyword">const</span> <span class="keywordtype">char</span>* in,              <span class="comment">// where to start</span>
<a name="l00302"></a>00302                                     TIXML_STRING* text,          <span class="comment">// the string read</span>
<a name="l00303"></a>00303                                     <span class="keywordtype">bool</span> ignoreWhiteSpace,       <span class="comment">// whether to keep the white space</span>
<a name="l00304"></a>00304                                     <span class="keyword">const</span> <span class="keywordtype">char</span>* endTag,          <span class="comment">// what ends this text</span>
<a name="l00305"></a>00305                                     <span class="keywordtype">bool</span> ignoreCase,             <span class="comment">// whether to ignore case in the end tag</span>
<a name="l00306"></a>00306                                     TiXmlEncoding encoding,      <span class="comment">// the current encoding</span>
<a name="l00307"></a>00307                                     <span class="keywordtype">bool</span>* eof = 0);              <span class="comment">// Optional flag set to true if data finishes before endTag</span>
<a name="l00308"></a>00308 
<a name="l00309"></a>00309         <span class="comment">// If an entity has been found, transform it into a character.</span>
<a name="l00310"></a>00310         <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* GetEntity( <span class="keyword">const</span> <span class="keywordtype">char</span>* in, <span class="keywordtype">char</span>* value, <span class="keywordtype">int</span>* length, TiXmlEncoding encoding );
<a name="l00311"></a>00311 
<a name="l00312"></a>00312         <span class="comment">// Get a character, while interpreting entities.</span>
<a name="l00313"></a>00313         <span class="comment">// The length can be from 0 to 4 bytes.</span>
<a name="l00314"></a>00314         <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* GetChar( <span class="keyword">const</span> <span class="keywordtype">char</span>* p, <span class="keywordtype">char</span>* _value, <span class="keywordtype">int</span>* length, TiXmlEncoding encoding )
<a name="l00315"></a>00315         {
<a name="l00316"></a>00316                 assert( p );
<a name="l00317"></a>00317                 <span class="keywordflow">if</span> ( encoding == TIXML_ENCODING_UTF8 )
<a name="l00318"></a>00318                 {
<a name="l00319"></a>00319                         *length = utf8ByteTable[ *((<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>*)p) ];
<a name="l00320"></a>00320                         assert( *length &gt;= 0 &amp;&amp; *length &lt; 5 );
<a name="l00321"></a>00321                 }
<a name="l00322"></a>00322                 <span class="keywordflow">else</span>
<a name="l00323"></a>00323                 {
<a name="l00324"></a>00324                         *length = 1;
<a name="l00325"></a>00325                 }
<a name="l00326"></a>00326 
<a name="l00327"></a>00327                 <span class="keywordflow">if</span> ( *length == 1 )
<a name="l00328"></a>00328                 {
<a name="l00329"></a>00329                         <span class="keywordflow">if</span> ( *p == <span class="charliteral">'&amp;'</span> )
<a name="l00330"></a>00330                                 <span class="keywordflow">return</span> GetEntity( p, _value, length, encoding );
<a name="l00331"></a>00331                         *_value = *p;
<a name="l00332"></a>00332                         <span class="keywordflow">return</span> p+1;
<a name="l00333"></a>00333                 }
<a name="l00334"></a>00334                 <span class="keywordflow">else</span> <span class="keywordflow">if</span> ( *length )
<a name="l00335"></a>00335                 {
<a name="l00336"></a>00336                         <span class="comment">//strncpy( _value, p, *length );</span>
<a name="l00337"></a>00337                         <span class="comment">// lots of compilers don't like this function (unsafe),</span>
<a name="l00338"></a>00338                         <span class="comment">// and the null terminator isn't needed</span>
<a name="l00339"></a>00339                         <span class="keywordflow">for</span>( <span class="keywordtype">int</span> i=0; p[i] &amp;&amp; i&lt;*length; ++i ) {
<a name="l00340"></a>00340                                 _value[i] = p[i];
<a name="l00341"></a>00341                         }
<a name="l00342"></a>00342                         <span class="keywordflow">return</span> p + (*length);
<a name="l00343"></a>00343                 }
<a name="l00344"></a>00344                 <span class="keywordflow">else</span>
<a name="l00345"></a>00345                 {
<a name="l00346"></a>00346                         <span class="comment">// Not valid text.</span>
<a name="l00347"></a>00347                         <span class="keywordflow">return</span> 0;
<a name="l00348"></a>00348                 }
<a name="l00349"></a>00349         }
<a name="l00350"></a>00350 
<a name="l00351"></a>00351         <span class="comment">// Puts a string to a stream, expanding entities as it goes.</span>
<a name="l00352"></a>00352         <span class="comment">// Note this should not contian the '&lt;', '&gt;', etc, or they will be transformed into entities!</span>
<a name="l00353"></a>00353         <span class="keyword">static</span> <span class="keywordtype">void</span> PutString( <span class="keyword">const</span> TIXML_STRING&amp; str, TIXML_OSTREAM* out );
<a name="l00354"></a>00354 
<a name="l00355"></a>00355         <span class="keyword">static</span> <span class="keywordtype">void</span> PutString( <span class="keyword">const</span> TIXML_STRING&amp; str, TIXML_STRING* out );
<a name="l00356"></a>00356 
<a name="l00357"></a>00357         <span class="comment">// Return true if the next characters in the stream are any of the endTag sequences.</span>
<a name="l00358"></a>00358         <span class="comment">// Ignore case only works for english, and should only be relied on when comparing</span>
<a name="l00359"></a>00359         <span class="comment">// to English words: StringEqual( p, "version", true ) is fine.</span>
<a name="l00360"></a>00360         <span class="comment">// eof is set to true if p ended before endTag</span>
<a name="l00361"></a>00361         <span class="keyword">static</span> <span class="keywordtype">bool</span> StringEqual(<span class="keyword">const</span> <span class="keywordtype">char</span>* p,
<a name="l00362"></a>00362                                 <span class="keyword">const</span> <span class="keywordtype">char</span>* endTag,
<a name="l00363"></a>00363                                 <span class="keywordtype">bool</span> ignoreCase,
<a name="l00364"></a>00364                                 TiXmlEncoding encoding,
<a name="l00365"></a>00365                                 <span class="keywordtype">bool</span>* eof = 0);
<a name="l00366"></a>00366 
<a name="l00367"></a>00367         <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* errorString[ TIXML_ERROR_STRING_COUNT ];
<a name="l00368"></a>00368 
<a name="l00369"></a>00369         TiXmlCursor location;
<a name="l00370"></a>00370 
<a name="l00372"></a><a class="code" href="classTelEngine_1_1TiXmlBase.html#2e294dd14122c554baa0665072b4ca7a">00372</a>         <span class="keywordtype">void</span>*                   userData;
<a name="l00373"></a>00373         
<a name="l00374"></a>00374         <span class="comment">// None of these methods are reliable for any language except English.</span>
<a name="l00375"></a>00375         <span class="comment">// Good for approximation, not great for accuracy.</span>
<a name="l00376"></a>00376         <span class="keyword">static</span> <span class="keywordtype">int</span> IsAlpha( <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> anyByte, TiXmlEncoding encoding );
<a name="l00377"></a>00377         <span class="keyword">static</span> <span class="keywordtype">int</span> IsAlphaNum( <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> anyByte, TiXmlEncoding encoding );
<a name="l00378"></a>00378         <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">int</span> ToLower( <span class="keywordtype">int</span> v, TiXmlEncoding encoding )
<a name="l00379"></a>00379         {
<a name="l00380"></a>00380                 <span class="keywordflow">if</span> ( encoding == TIXML_ENCODING_UTF8 )
<a name="l00381"></a>00381                 {
<a name="l00382"></a>00382                         <span class="keywordflow">if</span> ( v &lt; 128 ) <span class="keywordflow">return</span> tolower( v );
<a name="l00383"></a>00383                         <span class="keywordflow">return</span> v;
<a name="l00384"></a>00384                 }
<a name="l00385"></a>00385                 <span class="keywordflow">else</span>
<a name="l00386"></a>00386                 {
<a name="l00387"></a>00387                         <span class="keywordflow">return</span> tolower( v );
<a name="l00388"></a>00388                 }
<a name="l00389"></a>00389         }
<a name="l00390"></a>00390         <span class="keyword">static</span> <span class="keywordtype">void</span> ConvertUTF32ToUTF8( <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> input, <span class="keywordtype">char</span>* output, <span class="keywordtype">int</span>* length );
<a name="l00391"></a>00391 
<a name="l00392"></a>00392 <span class="keyword">private</span>:
<a name="l00393"></a>00393         TiXmlBase( <span class="keyword">const</span> TiXmlBase&amp; );                          <span class="comment">// not implemented.</span>
<a name="l00394"></a>00394         <span class="keywordtype">void</span> operator=( <span class="keyword">const</span> TiXmlBase&amp; base );        <span class="comment">// not allowed.</span>
<a name="l00395"></a>00395 
<a name="l00396"></a>00396         <span class="keyword">struct </span>Entity
<a name="l00397"></a>00397         {
<a name="l00398"></a>00398                 <span class="keyword">const</span> <span class="keywordtype">char</span>*     str;
<a name="l00399"></a>00399                 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>    strLength;
<a name="l00400"></a>00400                 <span class="keywordtype">char</span>                chr;
<a name="l00401"></a>00401         };
<a name="l00402"></a>00402         <span class="keyword">enum</span>
<a name="l00403"></a>00403         {
<a name="l00404"></a>00404                 NUM_ENTITY = 5,
<a name="l00405"></a>00405                 MAX_ENTITY_LENGTH = 6
<a name="l00406"></a>00406 
<a name="l00407"></a>00407         };
<a name="l00408"></a>00408         <span class="keyword">static</span> Entity entity[ NUM_ENTITY ];
<a name="l00409"></a>00409         <span class="keyword">static</span> <span class="keywordtype">bool</span> condenseWhiteSpace;
<a name="l00410"></a>00410 };
<a name="l00411"></a>00411 
<a name="l00412"></a>00412 
<a name="l00419"></a><a class="code" href="classTelEngine_1_1TiXmlNode.html">00419</a> <span class="keyword">class </span>YXML_API <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a> : <span class="keyword">public</span> <a class="code" href="classTelEngine_1_1TiXmlBase.html">TiXmlBase</a>
<a name="l00420"></a>00420 {
<a name="l00421"></a>00421         <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classTelEngine_1_1TiXmlDocument.html">TiXmlDocument</a>;
<a name="l00422"></a>00422         <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classTelEngine_1_1TiXmlElement.html">TiXmlElement</a>;
<a name="l00423"></a>00423 
<a name="l00424"></a>00424 <span class="keyword">public</span>:
<a name="l00425"></a>00425 <span class="preprocessor">        #ifdef TIXML_USE_STL    </span>
<a name="l00426"></a>00426 <span class="preprocessor"></span>
<a name="l00430"></a>00430             <span class="keyword">friend</span> std::istream&amp; operator &gt;&gt; (std::istream&amp; in, <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>&amp; base);
<a name="l00431"></a>00431 
<a name="l00448"></a>00448             <span class="keyword">friend</span> std::ostream&amp; <a class="code" href="namespaceTelEngine.html#1d3bf961a71253ffd25e2984bae048be">operator&lt;&lt; </a>(std::ostream&amp; out, <span class="keyword">const</span> <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>&amp; base);
<a name="l00449"></a>00449 
<a name="l00451"></a>00451                 <span class="keyword">friend</span> std::string&amp; <a class="code" href="namespaceTelEngine.html#1d3bf961a71253ffd25e2984bae048be">operator&lt;&lt; </a>(std::string&amp; out, <span class="keyword">const</span> <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>&amp; base );
<a name="l00452"></a>00452 
<a name="l00453"></a>00453 <span class="preprocessor">        #else</span>
<a name="l00454"></a>00454 <span class="preprocessor"></span>            <span class="comment">// Used internally, not part of the public API.</span>
<a name="l00455"></a>00455             <span class="keyword">friend</span> TIXML_OSTREAM&amp; <a class="code" href="namespaceTelEngine.html#1d3bf961a71253ffd25e2984bae048be">operator&lt;&lt; </a>(TIXML_OSTREAM&amp; out, <span class="keyword">const</span> <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>&amp; base);
<a name="l00456"></a>00456 <span class="preprocessor">        #endif</span>
<a name="l00457"></a>00457 <span class="preprocessor"></span>
<a name="l00461"></a><a class="code" href="classTelEngine_1_1TiXmlNode.html#cac9cbaeea226ed297804c012dc12b16">00461</a>         <span class="keyword">enum</span> <a class="code" href="classTelEngine_1_1TiXmlNode.html#cac9cbaeea226ed297804c012dc12b16">NodeType</a>
<a name="l00462"></a>00462         {
<a name="l00463"></a>00463                 DOCUMENT,
<a name="l00464"></a>00464                 ELEMENT,
<a name="l00465"></a>00465                 COMMENT,
<a name="l00466"></a>00466                 UNKNOWN,
<a name="l00467"></a>00467                 TEXT,
<a name="l00468"></a>00468                 DECLARATION,
<a name="l00469"></a>00469                 TYPECOUNT
<a name="l00470"></a>00470         };
<a name="l00471"></a>00471 
<a name="l00472"></a>00472         <span class="keyword">virtual</span> ~<a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>();
<a name="l00473"></a>00473 
<a name="l00486"></a><a class="code" href="classTelEngine_1_1TiXmlNode.html#67ec54cde5ef8dac7901ad63544c6d44">00486</a>         <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="classTelEngine_1_1TiXmlNode.html#67ec54cde5ef8dac7901ad63544c6d44">Value</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> value.c_str (); }
<a name="l00487"></a>00487 
<a name="l00488"></a>00488 <span class="preprocessor">    #ifdef TIXML_USE_STL</span>
<a name="l00489"></a>00489 <span class="preprocessor"></span>
<a name="l00493"></a><a class="code" href="classTelEngine_1_1TiXmlNode.html#b75c7962024f152b258aea8f285a91cd">00493</a>         <span class="keyword">const</span> std::string&amp; <a class="code" href="classTelEngine_1_1TiXmlNode.html#b75c7962024f152b258aea8f285a91cd">ValueStr</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> value; }
<a name="l00494"></a>00494 <span class="preprocessor">        #endif</span>
<a name="l00495"></a>00495 <span class="preprocessor"></span>
<a name="l00505"></a><a class="code" href="classTelEngine_1_1TiXmlNode.html#ea82a06505184ef86f477ad405fbbef9">00505</a>         <span class="keywordtype">void</span> <a class="code" href="classTelEngine_1_1TiXmlNode.html#ea82a06505184ef86f477ad405fbbef9">SetValue</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> * _value) { value = _value;}
<a name="l00506"></a>00506 
<a name="l00507"></a>00507 <span class="preprocessor">    #ifdef TIXML_USE_STL</span>
<a name="l00509"></a><a class="code" href="classTelEngine_1_1TiXmlNode.html#9abeaf014738a68ec2676fb23334064d">00509</a> <span class="preprocessor">        void SetValue( const std::string&amp; _value )      { value = _value; }</span>
<a name="l00510"></a>00510 <span class="preprocessor"></span><span class="preprocessor">        #endif</span>
<a name="l00511"></a>00511 <span class="preprocessor"></span>
<a name="l00513"></a>00513         <span class="keywordtype">void</span> Clear();
<a name="l00514"></a>00514 
<a name="l00516"></a><a class="code" href="classTelEngine_1_1TiXmlNode.html#4e3428786b78432ca5e026b468dc3133">00516</a>         <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>* <a class="code" href="classTelEngine_1_1TiXmlNode.html#4e3428786b78432ca5e026b468dc3133" title="One step up the DOM.">Parent</a>()                                                     { <span class="keywordflow">return</span> parent; }
<a name="l00517"></a>00517         <span class="keyword">const</span> <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>* Parent()<span class="keyword"> const                         </span>{ <span class="keywordflow">return</span> parent; }
<a name="l00518"></a>00518 
<a name="l00519"></a><a class="code" href="classTelEngine_1_1TiXmlNode.html#7ac8d1fed702dafc908e01d1dd842751">00519</a>         <span class="keyword">const</span> <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>* <a class="code" href="classTelEngine_1_1TiXmlNode.html#7ac8d1fed702dafc908e01d1dd842751" title="The first child of this node. Will be null if there are no children.">FirstChild</a>()<span class="keyword">   const   </span>{ <span class="keywordflow">return</span> firstChild; }          
<a name="l00520"></a>00520         <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>* FirstChild()                                 { <span class="keywordflow">return</span> firstChild; }
<a name="l00521"></a>00521         <span class="keyword">const</span> TiXmlNode* FirstChild( <span class="keyword">const</span> <span class="keywordtype">char</span> * value ) <span class="keyword">const</span>;                        
<a name="l00522"></a>00522         TiXmlNode* FirstChild( <span class="keyword">const</span> <span class="keywordtype">char</span> * value );                                            
<a name="l00523"></a>00523 
<a name="l00524"></a>00524         <span class="keyword">const</span> TiXmlNode* LastChild()<span class="keyword"> const      </span>{ <span class="keywordflow">return</span> lastChild; }           
<a name="l00525"></a><a class="code" href="classTelEngine_1_1TiXmlNode.html#59977be0e97e6625029e42725158aa23">00525</a>         <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>* <a class="code" href="classTelEngine_1_1TiXmlNode.html#59977be0e97e6625029e42725158aa23" title="The last child of this node. Will be null if there are no children.">LastChild</a>()  { <span class="keywordflow">return</span> lastChild; }
<a name="l00526"></a>00526         <span class="keyword">const</span> <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>* LastChild( <span class="keyword">const</span> <span class="keywordtype">char</span> * value ) <span class="keyword">const</span>;                 
<a name="l00527"></a>00527         <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>* LastChild( <span class="keyword">const</span> <span class="keywordtype">char</span> * value );     
<a name="l00528"></a>00528 
<a name="l00529"></a>00529 <span class="preprocessor">    #ifdef TIXML_USE_STL</span>
<a name="l00530"></a><a class="code" href="classTelEngine_1_1TiXmlNode.html#63b53e094ac8a085d7affb08db838a1d">00530</a> <span class="preprocessor"></span>        <span class="keyword">const</span> <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>* <a class="code" href="classTelEngine_1_1TiXmlNode.html#63b53e094ac8a085d7affb08db838a1d" title="STL std::string form.">FirstChild</a>( <span class="keyword">const</span> std::string&amp; _value )<span class="keyword"> const  </span>{       <span class="keywordflow">return</span> <a class="code" href="classTelEngine_1_1TiXmlNode.html#63b53e094ac8a085d7affb08db838a1d" title="STL std::string form.">FirstChild</a> (_value.c_str ());    }       
<a name="l00531"></a><a class="code" href="classTelEngine_1_1TiXmlNode.html#718d6c8eb588d8a1159ef3edab3a3dcf">00531</a>         <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>* <a class="code" href="classTelEngine_1_1TiXmlNode.html#718d6c8eb588d8a1159ef3edab3a3dcf" title="STL std::string form.">FirstChild</a>( <span class="keyword">const</span> std::string&amp; _value )                              {       <span class="keywordflow">return</span> <a class="code" href="classTelEngine_1_1TiXmlNode.html#718d6c8eb588d8a1159ef3edab3a3dcf" title="STL std::string form.">FirstChild</a> (_value.c_str ());    }       
<a name="l00532"></a><a class="code" href="classTelEngine_1_1TiXmlNode.html#f2803fdb8e44a92e6ef4129db2e52a09">00532</a>         <span class="keyword">const</span> <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>* <a class="code" href="classTelEngine_1_1TiXmlNode.html#f2803fdb8e44a92e6ef4129db2e52a09" title="STL std::string form.">LastChild</a>( <span class="keyword">const</span> std::string&amp; _value )<span class="keyword"> const   </span>{       <span class="keywordflow">return</span> <a class="code" href="classTelEngine_1_1TiXmlNode.html#f2803fdb8e44a92e6ef4129db2e52a09" title="STL std::string form.">LastChild</a> (_value.c_str ());     }       
<a name="l00533"></a><a class="code" href="classTelEngine_1_1TiXmlNode.html#41fe8deb9839c9ff59f8c8ba9ce799f2">00533</a>         <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>* <a class="code" href="classTelEngine_1_1TiXmlNode.html#41fe8deb9839c9ff59f8c8ba9ce799f2" title="STL std::string form.">LastChild</a>( <span class="keyword">const</span> std::string&amp; _value )                               {       <span class="keywordflow">return</span> <a class="code" href="classTelEngine_1_1TiXmlNode.html#41fe8deb9839c9ff59f8c8ba9ce799f2" title="STL std::string form.">LastChild</a> (_value.c_str ());     }       
<a name="l00534"></a>00534 <span class="preprocessor">        #endif</span>
<a name="l00535"></a>00535 <span class="preprocessor"></span>
<a name="l00552"></a>00552         <span class="keyword">const</span> <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>* IterateChildren( <span class="keyword">const</span> <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>* previous ) <span class="keyword">const</span>;
<a name="l00553"></a>00553         <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>* IterateChildren( <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>* previous );
<a name="l00554"></a>00554 
<a name="l00556"></a>00556         <span class="keyword">const</span> <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>* IterateChildren( <span class="keyword">const</span> <span class="keywordtype">char</span> * value, <span class="keyword">const</span> <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>* previous ) <span class="keyword">const</span>;
<a name="l00557"></a>00557         <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>* IterateChildren( <span class="keyword">const</span> <span class="keywordtype">char</span> * value, <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>* previous );
<a name="l00558"></a>00558 
<a name="l00559"></a>00559 <span class="preprocessor">    #ifdef TIXML_USE_STL</span>
<a name="l00560"></a><a class="code" href="classTelEngine_1_1TiXmlNode.html#c6d688020d13b9dac0db790d9921ac42">00560</a> <span class="preprocessor"></span>        <span class="keyword">const</span> <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>* <a class="code" href="classTelEngine_1_1TiXmlNode.html#c6d688020d13b9dac0db790d9921ac42" title="STL std::string form.">IterateChildren</a>( <span class="keyword">const</span> std::string&amp; _value, <span class="keyword">const</span> <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>* previous )<span class="keyword"> const  </span>{       <span class="keywordflow">return</span> <a class="code" href="classTelEngine_1_1TiXmlNode.html#c6d688020d13b9dac0db790d9921ac42" title="STL std::string form.">IterateChildren</a> (_value.c_str (), previous);     }       
<a name="l00561"></a><a class="code" href="classTelEngine_1_1TiXmlNode.html#bda51177caf5d180299d13acfde6c278">00561</a>         <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>* <a class="code" href="classTelEngine_1_1TiXmlNode.html#bda51177caf5d180299d13acfde6c278" title="STL std::string form.">IterateChildren</a>( <span class="keyword">const</span> std::string&amp; _value, <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>* previous ) {  <span class="keywordflow">return</span> <a class="code" href="classTelEngine_1_1TiXmlNode.html#bda51177caf5d180299d13acfde6c278" title="STL std::string form.">IterateChildren</a> (_value.c_str (), previous);     }       
<a name="l00562"></a>00562 <span class="preprocessor">        #endif</span>
<a name="l00563"></a>00563 <span class="preprocessor"></span>
<a name="l00567"></a>00567         <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>* InsertEndChild( <span class="keyword">const</span> <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>&amp; addThis );
<a name="l00568"></a>00568 
<a name="l00569"></a>00569 
<a name="l00579"></a>00579         <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>* LinkEndChild( <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>* addThis );
<a name="l00580"></a>00580 
<a name="l00584"></a>00584         <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>* InsertBeforeChild( <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>* beforeThis, <span class="keyword">const</span> <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>&amp; addThis );
<a name="l00585"></a>00585 
<a name="l00589"></a>00589         <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>* InsertAfterChild(  <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>* afterThis, <span class="keyword">const</span> <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>&amp; addThis );
<a name="l00590"></a>00590 
<a name="l00594"></a>00594         <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>* ReplaceChild( <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>* replaceThis, <span class="keyword">const</span> <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>&amp; withThis );
<a name="l00595"></a>00595 
<a name="l00597"></a>00597         <span class="keywordtype">bool</span> RemoveChild( <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>* removeThis, <span class="keywordtype">bool</span> del = <span class="keyword">true</span> );
<a name="l00598"></a>00598 
<a name="l00600"></a><a class="code" href="classTelEngine_1_1TiXmlNode.html#03242d71797b79eba11e9c94fe0bd142">00600</a>         <span class="keyword">const</span> <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>* <a class="code" href="classTelEngine_1_1TiXmlNode.html#03242d71797b79eba11e9c94fe0bd142" title="Navigate to a sibling node.">PreviousSibling</a>()<span class="keyword"> const                        </span>{ <span class="keywordflow">return</span> prev; }
<a name="l00601"></a>00601         <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>* PreviousSibling()                                            { <span class="keywordflow">return</span> prev; }
<a name="l00602"></a>00602 
<a name="l00604"></a>00604         <span class="keyword">const</span> TiXmlNode* PreviousSibling( <span class="keyword">const</span> <span class="keywordtype">char</span> * ) <span class="keyword">const</span>;
<a name="l00605"></a>00605         TiXmlNode* PreviousSibling( <span class="keyword">const</span> <span class="keywordtype">char</span> * );
<a name="l00606"></a>00606 
<a name="l00607"></a>00607 <span class="preprocessor">    #ifdef TIXML_USE_STL</span>
<a name="l00608"></a><a class="code" href="classTelEngine_1_1TiXmlNode.html#e240df38f8afa41b136eca1243335181">00608</a> <span class="preprocessor"></span>        <span class="keyword">const</span> <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>* <a class="code" href="classTelEngine_1_1TiXmlNode.html#e240df38f8afa41b136eca1243335181" title="STL std::string form.">PreviousSibling</a>( <span class="keyword">const</span> std::string&amp; _value )<span class="keyword"> const     </span>{       <span class="keywordflow">return</span> <a class="code" href="classTelEngine_1_1TiXmlNode.html#e240df38f8afa41b136eca1243335181" title="STL std::string form.">PreviousSibling</a> (_value.c_str ());       }       
<a name="l00609"></a><a class="code" href="classTelEngine_1_1TiXmlNode.html#f845c85889064fe43cdedd68b1c9515d">00609</a>         <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>* <a class="code" href="classTelEngine_1_1TiXmlNode.html#f845c85889064fe43cdedd68b1c9515d" title="STL std::string form.">PreviousSibling</a>( <span class="keyword">const</span> std::string&amp; _value )                         {       <span class="keywordflow">return</span> <a class="code" href="classTelEngine_1_1TiXmlNode.html#f845c85889064fe43cdedd68b1c9515d" title="STL std::string form.">PreviousSibling</a> (_value.c_str ());       }       
<a name="l00610"></a><a class="code" href="classTelEngine_1_1TiXmlNode.html#6725198a55c9f020586f0da933a4c946">00610</a>         <span class="keyword">const</span> <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>* <a class="code" href="classTelEngine_1_1TiXmlNode.html#6725198a55c9f020586f0da933a4c946" title="STL std::string form.">NextSibling</a>( <span class="keyword">const</span> std::string&amp; _value)<span class="keyword"> const          </span>{       <span class="keywordflow">return</span> <a class="code" href="classTelEngine_1_1TiXmlNode.html#6725198a55c9f020586f0da933a4c946" title="STL std::string form.">NextSibling</a> (_value.c_str ());   }       
<a name="l00611"></a><a class="code" href="classTelEngine_1_1TiXmlNode.html#c55125cb083896ba3aa9ec35e60a30e6">00611</a>         <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>* <a class="code" href="classTelEngine_1_1TiXmlNode.html#c55125cb083896ba3aa9ec35e60a30e6" title="STL std::string form.">NextSibling</a>( <span class="keyword">const</span> std::string&amp; _value)                                      {       <span class="keywordflow">return</span> <a class="code" href="classTelEngine_1_1TiXmlNode.html#c55125cb083896ba3aa9ec35e60a30e6" title="STL std::string form.">NextSibling</a> (_value.c_str ());   }       
<a name="l00612"></a>00612 <span class="preprocessor">        #endif</span>
<a name="l00613"></a>00613 <span class="preprocessor"></span>
<a name="l00615"></a><a class="code" href="classTelEngine_1_1TiXmlNode.html#4880cf2f976049d73487cae726edc644">00615</a>         <span class="keyword">const</span> <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>* <a class="code" href="classTelEngine_1_1TiXmlNode.html#4880cf2f976049d73487cae726edc644" title="Navigate to a sibling node.">NextSibling</a>()<span class="keyword"> const                            </span>{ <span class="keywordflow">return</span> next; }
<a name="l00616"></a>00616         <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>* NextSibling()                                                        { <span class="keywordflow">return</span> next; }
<a name="l00617"></a>00617 
<a name="l00619"></a>00619         <span class="keyword">const</span> TiXmlNode* NextSibling( <span class="keyword">const</span> <span class="keywordtype">char</span> * ) <span class="keyword">const</span>;
<a name="l00620"></a>00620         TiXmlNode* NextSibling( <span class="keyword">const</span> <span class="keywordtype">char</span> * );
<a name="l00621"></a>00621 
<a name="l00626"></a>00626         <span class="keyword">const</span> TiXmlElement* NextSiblingElement() <span class="keyword">const</span>;
<a name="l00627"></a>00627         TiXmlElement* NextSiblingElement();
<a name="l00628"></a>00628 
<a name="l00633"></a>00633         <span class="keyword">const</span> TiXmlElement* NextSiblingElement( <span class="keyword">const</span> <span class="keywordtype">char</span> * ) <span class="keyword">const</span>;
<a name="l00634"></a>00634         TiXmlElement* NextSiblingElement( <span class="keyword">const</span> <span class="keywordtype">char</span> * );
<a name="l00635"></a>00635 
<a name="l00636"></a>00636 <span class="preprocessor">    #ifdef TIXML_USE_STL</span>
<a name="l00637"></a><a class="code" href="classTelEngine_1_1TiXmlNode.html#af52a432d416701965fb045e4af70958">00637</a> <span class="preprocessor"></span>        <span class="keyword">const</span> <a class="code" href="classTelEngine_1_1TiXmlElement.html">TiXmlElement</a>* <a class="code" href="classTelEngine_1_1TiXmlNode.html#af52a432d416701965fb045e4af70958" title="STL std::string form.">NextSiblingElement</a>( <span class="keyword">const</span> std::string&amp; _value)<span class="keyword"> const        </span>{       <span class="keywordflow">return</span> <a class="code" href="classTelEngine_1_1TiXmlNode.html#af52a432d416701965fb045e4af70958" title="STL std::string form.">NextSiblingElement</a> (_value.c_str ());    }       
<a name="l00638"></a><a class="code" href="classTelEngine_1_1TiXmlNode.html#80290cea08baa4173fad3de85257a55b">00638</a>         <a class="code" href="classTelEngine_1_1TiXmlElement.html">TiXmlElement</a>* <a class="code" href="classTelEngine_1_1TiXmlNode.html#80290cea08baa4173fad3de85257a55b" title="STL std::string form.">NextSiblingElement</a>( <span class="keyword">const</span> std::string&amp; _value)                            {       <span class="keywordflow">return</span> <a class="code" href="classTelEngine_1_1TiXmlNode.html#80290cea08baa4173fad3de85257a55b" title="STL std::string form.">NextSiblingElement</a> (_value.c_str ());    }       
<a name="l00639"></a>00639 <span class="preprocessor">        #endif</span>
<a name="l00640"></a>00640 <span class="preprocessor"></span>
<a name="l00642"></a>00642         <span class="keyword">const</span> <a class="code" href="classTelEngine_1_1TiXmlElement.html">TiXmlElement</a>* FirstChildElement() <span class="keyword">const</span>;
<a name="l00643"></a>00643         <a class="code" href="classTelEngine_1_1TiXmlElement.html">TiXmlElement</a>* FirstChildElement();
<a name="l00644"></a>00644 
<a name="l00646"></a>00646         <span class="keyword">const</span> <a class="code" href="classTelEngine_1_1TiXmlElement.html">TiXmlElement</a>* FirstChildElement( <span class="keyword">const</span> <span class="keywordtype">char</span> * value ) <span class="keyword">const</span>;
<a name="l00647"></a>00647         <a class="code" href="classTelEngine_1_1TiXmlElement.html">TiXmlElement</a>* FirstChildElement( <span class="keyword">const</span> <span class="keywordtype">char</span> * value );
<a name="l00648"></a>00648 
<a name="l00649"></a>00649 <span class="preprocessor">    #ifdef TIXML_USE_STL</span>
<a name="l00650"></a><a class="code" href="classTelEngine_1_1TiXmlNode.html#d2a2bd8bc77d540f9aa3faca675789de">00650</a> <span class="preprocessor"></span>        <span class="keyword">const</span> <a class="code" href="classTelEngine_1_1TiXmlElement.html">TiXmlElement</a>* <a class="code" href="classTelEngine_1_1TiXmlNode.html#d2a2bd8bc77d540f9aa3faca675789de" title="STL std::string form.">FirstChildElement</a>( <span class="keyword">const</span> std::string&amp; _value )<span class="keyword"> const        </span>{       <span class="keywordflow">return</span> <a class="code" href="classTelEngine_1_1TiXmlNode.html#d2a2bd8bc77d540f9aa3faca675789de" title="STL std::string form.">FirstChildElement</a> (_value.c_str ());     }       
<a name="l00651"></a><a class="code" href="classTelEngine_1_1TiXmlNode.html#1814497ada6ca53f71ed0e813ebffaf1">00651</a>         <a class="code" href="classTelEngine_1_1TiXmlElement.html">TiXmlElement</a>* <a class="code" href="classTelEngine_1_1TiXmlNode.html#1814497ada6ca53f71ed0e813ebffaf1" title="STL std::string form.">FirstChildElement</a>( <span class="keyword">const</span> std::string&amp; _value )                            {       <span class="keywordflow">return</span> <a class="code" href="classTelEngine_1_1TiXmlNode.html#1814497ada6ca53f71ed0e813ebffaf1" title="STL std::string form.">FirstChildElement</a> (_value.c_str ());     }       
<a name="l00652"></a>00652 <span class="preprocessor">        #endif</span>
<a name="l00653"></a>00653 <span class="preprocessor"></span>
<a name="l00658"></a><a class="code" href="classTelEngine_1_1TiXmlNode.html#14a55b75c648de4d36edd615c84eabfc">00658</a>         <span class="keywordtype">int</span> <a class="code" href="classTelEngine_1_1TiXmlNode.html#14a55b75c648de4d36edd615c84eabfc">Type</a>()<span class="keyword"> const        </span>{ <span class="keywordflow">return</span> type; }
<a name="l00659"></a>00659 
<a name="l00663"></a>00663         <span class="keyword">const</span> <a class="code" href="classTelEngine_1_1TiXmlDocument.html">TiXmlDocument</a>* GetDocument() <span class="keyword">const</span>;
<a name="l00664"></a>00664         <a class="code" href="classTelEngine_1_1TiXmlDocument.html">TiXmlDocument</a>* GetDocument();
<a name="l00665"></a>00665 
<a name="l00667"></a><a class="code" href="classTelEngine_1_1TiXmlNode.html#0b5f0d92629f576c8e5f5f48b2edee19">00667</a>         <span class="keywordtype">bool</span> <a class="code" href="classTelEngine_1_1TiXmlNode.html#0b5f0d92629f576c8e5f5f48b2edee19" title="Returns true if this node has no children.">NoChildren</a>()<span class="keyword"> const                                         </span>{ <span class="keywordflow">return</span> !firstChild; }
<a name="l00668"></a>00668 
<a name="l00669"></a><a class="code" href="classTelEngine_1_1TiXmlNode.html#0ac5163cd2f090c512d09453d445988a">00669</a>         <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classTelEngine_1_1TiXmlDocument.html">TiXmlDocument</a>*    <a class="code" href="classTelEngine_1_1TiXmlNode.html#0ac5163cd2f090c512d09453d445988a" title="Cast to a more defined type. Will return null if not of the requested type.">ToDocument</a>()<span class="keyword">    const </span>{ <span class="keywordflow">return</span> 0; } 
<a name="l00670"></a><a class="code" href="classTelEngine_1_1TiXmlNode.html#7a2cc466ad0e9996d71ee5da2db2511f">00670</a>         <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classTelEngine_1_1TiXmlElement.html">TiXmlElement</a>*     <a class="code" href="classTelEngine_1_1TiXmlNode.html#7a2cc466ad0e9996d71ee5da2db2511f" title="Cast to a more defined type. Will return null if not of the requested type.">ToElement</a>()<span class="keyword">     const </span>{ <span class="keywordflow">return</span> 0; } 
<a name="l00671"></a><a class="code" href="classTelEngine_1_1TiXmlNode.html#1535d8f760996ff1a651cae2fcb62be3">00671</a>         <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classTelEngine_1_1TiXmlComment.html">TiXmlComment</a>*     <a class="code" href="classTelEngine_1_1TiXmlNode.html#1535d8f760996ff1a651cae2fcb62be3" title="Cast to a more defined type. Will return null if not of the requested type.">ToComment</a>()<span class="keyword">     const </span>{ <span class="keywordflow">return</span> 0; } 
<a name="l00672"></a><a class="code" href="classTelEngine_1_1TiXmlNode.html#461ef07268953b2b3fad50f64aa20321">00672</a>         <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classTelEngine_1_1TiXmlUnknown.html">TiXmlUnknown</a>*     <a class="code" href="classTelEngine_1_1TiXmlNode.html#461ef07268953b2b3fad50f64aa20321" title="Cast to a more defined type. Will return null if not of the requested type.">ToUnknown</a>()<span class="keyword">     const </span>{ <span class="keywordflow">return</span> 0; } 
<a name="l00673"></a><a class="code" href="classTelEngine_1_1TiXmlNode.html#dfcbab915eb7dac33a6b914b507fd79b">00673</a>         <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classTelEngine_1_1TiXmlText.html">TiXmlText</a>*        <a class="code" href="classTelEngine_1_1TiXmlNode.html#dfcbab915eb7dac33a6b914b507fd79b" title="Cast to a more defined type. Will return null if not of the requested type.">ToText</a>()<span class="keyword">        const </span>{ <span class="keywordflow">return</span> 0; } 
<a name="l00674"></a><a class="code" href="classTelEngine_1_1TiXmlNode.html#ee135ea9d6486ec118898e3ac8a293cf">00674</a>         <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classTelEngine_1_1TiXmlDeclaration.html">TiXmlDeclaration</a>* <a class="code" href="classTelEngine_1_1TiXmlNode.html#ee135ea9d6486ec118898e3ac8a293cf" title="Cast to a more defined type. Will return null if not of the requested type.">ToDeclaration</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> 0; } 
<a name="l00675"></a>00675 
<a name="l00676"></a><a class="code" href="classTelEngine_1_1TiXmlNode.html#46a5535cabc469a65f47acc317fea778">00676</a>         <span class="keyword">virtual</span> <a class="code" href="classTelEngine_1_1TiXmlDocument.html">TiXmlDocument</a>*          <a class="code" href="classTelEngine_1_1TiXmlNode.html#46a5535cabc469a65f47acc317fea778" title="Cast to a more defined type. Will return null if not of the requested type.">ToDocument</a>()    { <span class="keywordflow">return</span> 0; } 
<a name="l00677"></a><a class="code" href="classTelEngine_1_1TiXmlNode.html#6225c641ac28d55726b392a3a33774e8">00677</a>         <span class="keyword">virtual</span> <a class="code" href="classTelEngine_1_1TiXmlElement.html">TiXmlElement</a>*           <a class="code" href="classTelEngine_1_1TiXmlNode.html#6225c641ac28d55726b392a3a33774e8" title="Cast to a more defined type. Will return null if not of the requested type.">ToElement</a>()         { <span class="keywordflow">return</span> 0; } 
<a name="l00678"></a><a class="code" href="classTelEngine_1_1TiXmlNode.html#8dfc05132e237c72560d51ee2c725a5c">00678</a>         <span class="keyword">virtual</span> <a class="code" href="classTelEngine_1_1TiXmlComment.html">TiXmlComment</a>*           <a class="code" href="classTelEngine_1_1TiXmlNode.html#8dfc05132e237c72560d51ee2c725a5c" title="Cast to a more defined type. Will return null if not of the requested type.">ToComment</a>()     { <span class="keywordflow">return</span> 0; } 
<a name="l00679"></a><a class="code" href="classTelEngine_1_1TiXmlNode.html#27d3f8d54b19f00da670016ae6c5774a">00679</a>         <span class="keyword">virtual</span> <a class="code" href="classTelEngine_1_1TiXmlUnknown.html">TiXmlUnknown</a>*           <a class="code" href="classTelEngine_1_1TiXmlNode.html#27d3f8d54b19f00da670016ae6c5774a" title="Cast to a more defined type. Will return null if not of the requested type.">ToUnknown</a>()         { <span class="keywordflow">return</span> 0; } 
<a name="l00680"></a><a class="code" href="classTelEngine_1_1TiXmlNode.html#0229d3dce587577a7a295d07524ccf6b">00680</a>         <span class="keyword">virtual</span> <a class="code" href="classTelEngine_1_1TiXmlText.html">TiXmlText</a>*                  <a class="code" href="classTelEngine_1_1TiXmlNode.html#0229d3dce587577a7a295d07524ccf6b" title="Cast to a more defined type. Will return null if not of the requested type.">ToText</a>()        { <span class="keywordflow">return</span> 0; } 
<a name="l00681"></a><a class="code" href="classTelEngine_1_1TiXmlNode.html#b07aa982d62f5beba098e5a285c75e67">00681</a>         <span class="keyword">virtual</span> <a class="code" href="classTelEngine_1_1TiXmlDeclaration.html">TiXmlDeclaration</a>*       <a class="code" href="classTelEngine_1_1TiXmlNode.html#b07aa982d62f5beba098e5a285c75e67" title="Cast to a more defined type. Will return null if not of the requested type.">ToDeclaration</a>() { <span class="keywordflow">return</span> 0; } 
<a name="l00682"></a>00682 
<a name="l00686"></a>00686         <span class="keyword">virtual</span> <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>* Clone() <span class="keyword">const</span> = 0;
<a name="l00687"></a>00687 
<a name="l00688"></a>00688 <span class="keyword">protected</span>:
<a name="l00689"></a>00689         <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>( NodeType _type );
<a name="l00690"></a>00690 
<a name="l00691"></a>00691         <span class="comment">// Copy to the allocated object. Shared functionality between Clone, Copy constructor,</span>
<a name="l00692"></a>00692         <span class="comment">// and the assignment operator.</span>
<a name="l00693"></a>00693         <span class="keywordtype">void</span> CopyTo( <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>* target ) <span class="keyword">const</span>;
<a name="l00694"></a>00694 
<a name="l00695"></a>00695 <span class="preprocessor">        #ifdef TIXML_USE_STL</span>
<a name="l00696"></a>00696 <span class="preprocessor"></span>            <span class="comment">// The real work of the input operator.</span>
<a name="l00697"></a>00697             <span class="keyword">virtual</span> <span class="keywordtype">void</span> StreamIn( TIXML_ISTREAM* in, TIXML_STRING* tag ) = 0;
<a name="l00698"></a>00698 <span class="preprocessor">        #endif</span>
<a name="l00699"></a>00699 <span class="preprocessor"></span>
<a name="l00700"></a>00700         <span class="comment">// Figure out what is at *p, and parse it. Returns null if it is not an xml node.</span>
<a name="l00701"></a>00701         <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>* Identify( <span class="keyword">const</span> <span class="keywordtype">char</span>* start, TiXmlEncoding encoding );
<a name="l00702"></a>00702 
<a name="l00703"></a>00703         <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>*              parent;
<a name="l00704"></a>00704         NodeType                type;
<a name="l00705"></a>00705 
<a name="l00706"></a>00706         <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>*              firstChild;
<a name="l00707"></a>00707         <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>*              lastChild;
<a name="l00708"></a>00708 
<a name="l00709"></a>00709         TIXML_STRING    value;
<a name="l00710"></a>00710 
<a name="l00711"></a>00711         <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>*              prev;
<a name="l00712"></a>00712         <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>*              next;
<a name="l00713"></a>00713 
<a name="l00714"></a>00714 <span class="keyword">private</span>:
<a name="l00715"></a>00715         <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>( <span class="keyword">const</span> <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>&amp; );                          <span class="comment">// not implemented.</span>
<a name="l00716"></a>00716         <span class="keywordtype">void</span> operator=( <span class="keyword">const</span> <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>&amp; base );        <span class="comment">// not allowed.</span>
<a name="l00717"></a>00717 };
<a name="l00718"></a>00718 
<a name="l00719"></a>00719 
<a name="l00727"></a><a class="code" href="classTelEngine_1_1TiXmlAttribute.html">00727</a> <span class="keyword">class </span>YXML_API <a class="code" href="classTelEngine_1_1TiXmlAttribute.html">TiXmlAttribute</a> : <span class="keyword">public</span> <a class="code" href="classTelEngine_1_1TiXmlBase.html">TiXmlBase</a>
<a name="l00728"></a>00728 {
<a name="l00729"></a>00729         <span class="keyword">friend</span> <span class="keyword">class </span>TiXmlAttributeSet;
<a name="l00730"></a>00730         <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classTelEngine_1_1TiXmlElement.html">TiXmlElement</a>;
<a name="l00731"></a>00731 
<a name="l00732"></a>00732 <span class="keyword">public</span>:
<a name="l00734"></a><a class="code" href="classTelEngine_1_1TiXmlAttribute.html#b154afd3a4642739b3411c80af3a0394">00734</a>         <a class="code" href="classTelEngine_1_1TiXmlAttribute.html">TiXmlAttribute</a>() : <a class="code" href="classTelEngine_1_1TiXmlBase.html">TiXmlBase</a>()
<a name="l00735"></a>00735         {
<a name="l00736"></a>00736                 document = 0;
<a name="l00737"></a>00737                 prev = next = 0;
<a name="l00738"></a>00738         }
<a name="l00739"></a>00739 
<a name="l00740"></a>00740 <span class="preprocessor">        #ifdef TIXML_USE_STL</span>
<a name="l00742"></a><a class="code" href="classTelEngine_1_1TiXmlAttribute.html#68bfc40b7dc6f1939384aac22a38feb9">00742</a> <span class="preprocessor">        TiXmlAttribute( const std::string&amp; _name, const std::string&amp; _value )</span>
<a name="l00743"></a>00743 <span class="preprocessor"></span>        {
<a name="l00744"></a>00744                 name = _name;
<a name="l00745"></a>00745                 value = _value;
<a name="l00746"></a>00746                 document = 0;
<a name="l00747"></a>00747                 prev = next = 0;
<a name="l00748"></a>00748         }
<a name="l00749"></a>00749 <span class="preprocessor">        #endif</span>
<a name="l00750"></a>00750 <span class="preprocessor"></span>
<a name="l00752"></a><a class="code" href="classTelEngine_1_1TiXmlAttribute.html#d8cd69ced5416999a1e6c6487cb4309e">00752</a>         <a class="code" href="classTelEngine_1_1TiXmlAttribute.html">TiXmlAttribute</a>( <span class="keyword">const</span> <span class="keywordtype">char</span> * _name, <span class="keyword">const</span> <span class="keywordtype">char</span> * _value )
<a name="l00753"></a>00753         {
<a name="l00754"></a>00754                 name = _name;
<a name="l00755"></a>00755                 value = _value;
<a name="l00756"></a>00756                 document = 0;
<a name="l00757"></a>00757                 prev = next = 0;
<a name="l00758"></a>00758         }
<a name="l00759"></a>00759 
<a name="l00760"></a><a class="code" href="classTelEngine_1_1TiXmlAttribute.html#6f8ea4f3037e8339cbd3e55d97ed08a9">00760</a>         <span class="keyword">const</span> <span class="keywordtype">char</span>*             <a class="code" href="classTelEngine_1_1TiXmlAttribute.html#6f8ea4f3037e8339cbd3e55d97ed08a9" title="Return the name of this attribute.">Name</a>()<span class="keyword">  const           </span>{ <span class="keywordflow">return</span> name.c_str (); }               
<a name="l00761"></a><a class="code" href="classTelEngine_1_1TiXmlAttribute.html#67ec54cde5ef8dac7901ad63544c6d44">00761</a>         <span class="keyword">const</span> <span class="keywordtype">char</span>*             <a class="code" href="classTelEngine_1_1TiXmlAttribute.html#67ec54cde5ef8dac7901ad63544c6d44" title="Return the value of this attribute.">Value</a>()<span class="keyword"> const           </span>{ <span class="keywordflow">return</span> value.c_str (); }              
<a name="l00762"></a>00762         <span class="keywordtype">int</span>                             IntValue() <span class="keyword">const</span>;                                                                       
<a name="l00763"></a>00763         <span class="keywordtype">double</span>                  DoubleValue() <span class="keyword">const</span>;                                                            
<a name="l00764"></a>00764 
<a name="l00765"></a>00765         <span class="comment">// Get the tinyxml string representation</span>
<a name="l00766"></a>00766         <span class="keyword">const</span> TIXML_STRING&amp; NameTStr()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> name; }
<a name="l00767"></a>00767 
<a name="l00777"></a>00777         <span class="keywordtype">int</span> QueryIntValue( <span class="keywordtype">int</span>* _value ) <span class="keyword">const</span>;
<a name="l00779"></a>00779         <span class="keywordtype">int</span> QueryDoubleValue( <span class="keywordtype">double</span>* _value ) <span class="keyword">const</span>;
<a name="l00780"></a>00780 
<a name="l00781"></a><a class="code" href="classTelEngine_1_1TiXmlAttribute.html#8f004727063df873bb46ced79e54f888">00781</a>         <span class="keywordtype">void</span> <a class="code" href="classTelEngine_1_1TiXmlAttribute.html#8f004727063df873bb46ced79e54f888" title="Set the name of this attribute.">SetName</a>( <span class="keyword">const</span> <span class="keywordtype">char</span>* _name )       { name = _name; }                               
<a name="l00782"></a><a class="code" href="classTelEngine_1_1TiXmlAttribute.html#ea82a06505184ef86f477ad405fbbef9">00782</a>         <span class="keywordtype">void</span> <a class="code" href="classTelEngine_1_1TiXmlAttribute.html#ea82a06505184ef86f477ad405fbbef9" title="Set the value.">SetValue</a>( <span class="keyword">const</span> <span class="keywordtype">char</span>* _value )     { value = _value; }                             
<a name="l00783"></a>00783 
<a name="l00784"></a>00784         <span class="keywordtype">void</span> SetIntValue( <span class="keywordtype">int</span> _value );                                                                         
<a name="l00785"></a>00785         <span class="keywordtype">void</span> SetDoubleValue( <span class="keywordtype">double</span> _value );                                                           
<a name="l00786"></a>00786 
<a name="l00787"></a>00787 <span class="preprocessor">    #ifdef TIXML_USE_STL</span>
<a name="l00789"></a><a class="code" href="classTelEngine_1_1TiXmlAttribute.html#1233a88584929349157ec04ca3d389e3">00789</a> <span class="preprocessor">        void SetName( const std::string&amp; _name )        { name = _name; }       </span>
<a name="l00791"></a><a class="code" href="classTelEngine_1_1TiXmlAttribute.html#9abeaf014738a68ec2676fb23334064d">00791</a> <span class="preprocessor">        void SetValue( const std::string&amp; _value )      { value = _value; }</span>
<a name="l00792"></a>00792 <span class="preprocessor"></span><span class="preprocessor">        #endif</span>
<a name="l00793"></a>00793 <span class="preprocessor"></span>
<a name="l00795"></a>00795         <span class="keyword">const</span> <a class="code" href="classTelEngine_1_1TiXmlAttribute.html">TiXmlAttribute</a>* Next() <span class="keyword">const</span>;
<a name="l00796"></a>00796         <a class="code" href="classTelEngine_1_1TiXmlAttribute.html">TiXmlAttribute</a>* Next();
<a name="l00798"></a>00798         <span class="keyword">const</span> <a class="code" href="classTelEngine_1_1TiXmlAttribute.html">TiXmlAttribute</a>* Previous() <span class="keyword">const</span>;
<a name="l00799"></a>00799         <a class="code" href="classTelEngine_1_1TiXmlAttribute.html">TiXmlAttribute</a>* Previous();
<a name="l00800"></a>00800 
<a name="l00801"></a>00801         <span class="keywordtype">bool</span> operator==( <span class="keyword">const</span> <a class="code" href="classTelEngine_1_1TiXmlAttribute.html">TiXmlAttribute</a>&amp; rhs )<span class="keyword"> const </span>{ <span class="keywordflow">return</span> rhs.<a class="code" href="classTelEngine_1_1TiXmlAttribute.html#f83706ca87fc351d03bed7f36574471c">name</a> == name; }
<a name="l00802"></a>00802         <span class="keywordtype">bool</span> operator&lt;( <span class="keyword">const</span> <a class="code" href="classTelEngine_1_1TiXmlAttribute.html">TiXmlAttribute</a>&amp; rhs )<span class="keyword">      const </span>{ <span class="keywordflow">return</span> name &lt; rhs.<a class="code" href="classTelEngine_1_1TiXmlAttribute.html#f83706ca87fc351d03bed7f36574471c">name</a>; }
<a name="l00803"></a>00803         <span class="keywordtype">bool</span> operator&gt;( <span class="keyword">const</span> TiXmlAttribute&amp; rhs )<span class="keyword">  const </span>{ <span class="keywordflow">return</span> name &gt; rhs.name; }
<a name="l00804"></a>00804 
<a name="l00805"></a>00805         <span class="comment">/*      Attribute parsing starts: first letter of the name</span>
<a name="l00806"></a>00806 <span class="comment">                                                 returns: the next char after the value end quote</span>
<a name="l00807"></a>00807 <span class="comment">        */</span>
<a name="l00808"></a>00808         <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* Parse( <span class="keyword">const</span> <span class="keywordtype">char</span>* p, TiXmlParsingData* data, TiXmlEncoding encoding );
<a name="l00809"></a>00809 
<a name="l00810"></a>00810         <span class="comment">// Prints this Attribute to a FILE stream.</span>
<a name="l00811"></a>00811         <span class="keyword">virtual</span> <span class="keywordtype">void</span> Print( FILE* cfile, <span class="keywordtype">int</span> depth ) <span class="keyword">const</span>;
<a name="l00812"></a>00812 
<a name="l00813"></a>00813 <span class="keyword">public</span>:
<a name="l00814"></a>00814         <span class="keyword">virtual</span> <span class="keywordtype">void</span> StreamOut( TIXML_OSTREAM * out, <span class="keywordtype">bool</span> unclosed = <span class="keyword">false</span> ) <span class="keyword">const</span>;
<a name="l00815"></a>00815 
<a name="l00816"></a>00816 <span class="keyword">protected</span>:
<a name="l00817"></a>00817         <span class="comment">// [internal use]</span>
<a name="l00818"></a>00818         <span class="comment">// Set the document pointer so the attribute can report errors.</span>
<a name="l00819"></a>00819         <span class="keywordtype">void</span> SetDocument( TiXmlDocument* doc )  { document = doc; }
<a name="l00820"></a>00820 
<a name="l00821"></a>00821 <span class="keyword">private</span>:
<a name="l00822"></a>00822         TiXmlAttribute( <span class="keyword">const</span> TiXmlAttribute&amp; );                                <span class="comment">// not implemented.</span>
<a name="l00823"></a>00823         <span class="keywordtype">void</span> operator=( <span class="keyword">const</span> TiXmlAttribute&amp; base );   <span class="comment">// not allowed.</span>
<a name="l00824"></a>00824 
<a name="l00825"></a>00825         TiXmlDocument*  document;       <span class="comment">// A pointer back to a document, for error reporting.</span>
<a name="l00826"></a>00826         TIXML_STRING name;
<a name="l00827"></a>00827         TIXML_STRING value;
<a name="l00828"></a>00828         TiXmlAttribute* prev;
<a name="l00829"></a>00829         TiXmlAttribute* next;
<a name="l00830"></a>00830 };
<a name="l00831"></a>00831 
<a name="l00832"></a>00832 
<a name="l00833"></a>00833 <span class="comment">/*      A class used to manage a group of attributes.</span>
<a name="l00834"></a>00834 <span class="comment">        It is only used internally, both by the ELEMENT and the DECLARATION.</span>
<a name="l00835"></a>00835 <span class="comment">        </span>
<a name="l00836"></a>00836 <span class="comment">        The set can be changed transparent to the Element and Declaration</span>
<a name="l00837"></a>00837 <span class="comment">        classes that use it, but NOT transparent to the Attribute</span>
<a name="l00838"></a>00838 <span class="comment">        which has to implement a next() and previous() method. Which makes</span>
<a name="l00839"></a>00839 <span class="comment">        it a bit problematic and prevents the use of STL.</span>
<a name="l00840"></a>00840 <span class="comment"></span>
<a name="l00841"></a>00841 <span class="comment">        This version is implemented with circular lists because:</span>
<a name="l00842"></a>00842 <span class="comment">                - I like circular lists</span>
<a name="l00843"></a>00843 <span class="comment">                - it demonstrates some independence from the (typical) doubly linked list.</span>
<a name="l00844"></a>00844 <span class="comment">*/</span>
<a name="l00845"></a>00845 <span class="keyword">class </span>YXML_API TiXmlAttributeSet
<a name="l00846"></a>00846 {
<a name="l00847"></a>00847 <span class="keyword">public</span>:
<a name="l00848"></a>00848         TiXmlAttributeSet();
<a name="l00849"></a>00849         ~TiXmlAttributeSet();
<a name="l00850"></a>00850 
<a name="l00851"></a>00851         <span class="keywordtype">void</span> Add( TiXmlAttribute* attribute );
<a name="l00852"></a>00852         <span class="keywordtype">void</span> Remove( TiXmlAttribute* attribute );
<a name="l00853"></a>00853 
<a name="l00854"></a>00854         <span class="keyword">const</span> TiXmlAttribute* First()<span class="keyword">   const   </span>{ <span class="keywordflow">return</span> ( sentinel.next == &amp;sentinel ) ? 0 : sentinel.next; }
<a name="l00855"></a>00855         TiXmlAttribute* First()                                 { <span class="keywordflow">return</span> ( sentinel.next == &amp;sentinel ) ? 0 : sentinel.next; }
<a name="l00856"></a>00856         <span class="keyword">const</span> TiXmlAttribute* Last()<span class="keyword"> const              </span>{ <span class="keywordflow">return</span> ( sentinel.prev == &amp;sentinel ) ? 0 : sentinel.prev; }
<a name="l00857"></a>00857         TiXmlAttribute* Last()                                  { <span class="keywordflow">return</span> ( sentinel.prev == &amp;sentinel ) ? 0 : sentinel.prev; }
<a name="l00858"></a>00858 
<a name="l00859"></a>00859         <span class="keyword">const</span> TiXmlAttribute*   Find( <span class="keyword">const</span> TIXML_STRING&amp; name ) <span class="keyword">const</span>;
<a name="l00860"></a>00860         TiXmlAttribute* Find( <span class="keyword">const</span> TIXML_STRING&amp; name );
<a name="l00861"></a>00861 
<a name="l00862"></a>00862 <span class="keyword">private</span>:
<a name="l00863"></a>00863         <span class="comment">//*ME:  Because of hidden/disabled copy-construktor in TiXmlAttribute (sentinel-element),</span>
<a name="l00864"></a>00864         <span class="comment">//*ME:  this class must be also use a hidden/disabled copy-constructor !!!</span>
<a name="l00865"></a>00865         TiXmlAttributeSet( <span class="keyword">const</span> TiXmlAttributeSet&amp; );  <span class="comment">// not allowed</span>
<a name="l00866"></a>00866         <span class="keywordtype">void</span> operator=( <span class="keyword">const</span> TiXmlAttributeSet&amp; );     <span class="comment">// not allowed (as TiXmlAttribute)</span>
<a name="l00867"></a>00867 
<a name="l00868"></a>00868         TiXmlAttribute sentinel;
<a name="l00869"></a>00869 };
<a name="l00870"></a>00870 
<a name="l00871"></a>00871 
<a name="l00876"></a><a class="code" href="classTelEngine_1_1TiXmlElement.html">00876</a> <span class="keyword">class </span>YXML_API <a class="code" href="classTelEngine_1_1TiXmlElement.html">TiXmlElement</a> : <span class="keyword">public</span> <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>
<a name="l00877"></a>00877 {
<a name="l00878"></a>00878 <span class="keyword">public</span>:
<a name="l00880"></a>00880         <a class="code" href="classTelEngine_1_1TiXmlElement.html">TiXmlElement</a> (<span class="keyword">const</span> <span class="keywordtype">char</span> * in_value);
<a name="l00881"></a>00881 
<a name="l00882"></a>00882 <span class="preprocessor">        #ifdef TIXML_USE_STL</span>
<a name="l00884"></a>00884 <span class="preprocessor">        TiXmlElement( const std::string&amp; _value );</span>
<a name="l00885"></a>00885 <span class="preprocessor"></span><span class="preprocessor">        #endif</span>
<a name="l00886"></a>00886 <span class="preprocessor"></span>
<a name="l00887"></a>00887         <a class="code" href="classTelEngine_1_1TiXmlElement.html">TiXmlElement</a>( <span class="keyword">const</span> <a class="code" href="classTelEngine_1_1TiXmlElement.html">TiXmlElement</a>&amp; );
<a name="l00888"></a>00888 
<a name="l00889"></a>00889         <span class="keywordtype">void</span> operator=( <span class="keyword">const</span> <a class="code" href="classTelEngine_1_1TiXmlElement.html">TiXmlElement</a>&amp; base );
<a name="l00890"></a>00890 
<a name="l00891"></a>00891         <span class="keyword">virtual</span> ~<a class="code" href="classTelEngine_1_1TiXmlElement.html">TiXmlElement</a>();
<a name="l00892"></a>00892 
<a name="l00896"></a>00896         <span class="keyword">const</span> <span class="keywordtype">char</span>* Attribute( <span class="keyword">const</span> <span class="keywordtype">char</span>* name ) <span class="keyword">const</span>;
<a name="l00897"></a>00897 
<a name="l00904"></a>00904         <span class="keyword">const</span> <span class="keywordtype">char</span>* Attribute( <span class="keyword">const</span> <span class="keywordtype">char</span>* name, <span class="keywordtype">int</span>* i ) <span class="keyword">const</span>;
<a name="l00905"></a>00905 
<a name="l00912"></a>00912         <span class="keyword">const</span> <span class="keywordtype">char</span>* Attribute( <span class="keyword">const</span> <span class="keywordtype">char</span>* name, <span class="keywordtype">double</span>* d ) <span class="keyword">const</span>;
<a name="l00913"></a>00913 
<a name="l00921"></a>00921         <span class="keywordtype">int</span> QueryIntAttribute( <span class="keyword">const</span> <span class="keywordtype">char</span>* name, <span class="keywordtype">int</span>* _value ) <span class="keyword">const</span>;
<a name="l00923"></a>00923         <span class="keywordtype">int</span> QueryDoubleAttribute( <span class="keyword">const</span> <span class="keywordtype">char</span>* name, <span class="keywordtype">double</span>* _value ) <span class="keyword">const</span>;
<a name="l00925"></a><a class="code" href="classTelEngine_1_1TiXmlElement.html#0525da5f0899e687d9a4d0a5442c2d14">00925</a>         <span class="keywordtype">int</span> <a class="code" href="classTelEngine_1_1TiXmlElement.html#0525da5f0899e687d9a4d0a5442c2d14" title="QueryFloatAttribute examines the attribute - see QueryIntAttribute().">QueryFloatAttribute</a>( <span class="keyword">const</span> <span class="keywordtype">char</span>* name, <span class="keywordtype">float</span>* _value )<span class="keyword"> const </span>{
<a name="l00926"></a>00926                 <span class="keywordtype">double</span> d;
<a name="l00927"></a>00927                 <span class="keywordtype">int</span> result = QueryDoubleAttribute( name, &amp;d );
<a name="l00928"></a>00928                 <span class="keywordflow">if</span> ( result == TIXML_SUCCESS ) {
<a name="l00929"></a>00929                         *_value = (float)d;
<a name="l00930"></a>00930                 }
<a name="l00931"></a>00931                 <span class="keywordflow">return</span> result;
<a name="l00932"></a>00932         }
<a name="l00933"></a>00933 
<a name="l00937"></a>00937         <span class="keywordtype">void</span> SetAttribute( <span class="keyword">const</span> <span class="keywordtype">char</span>* name, <span class="keyword">const</span> <span class="keywordtype">char</span> * _value );
<a name="l00938"></a>00938 
<a name="l00939"></a>00939 <span class="preprocessor">    #ifdef TIXML_USE_STL</span>
<a name="l00940"></a>00940 <span class="preprocessor"></span>        <span class="keyword">const</span> <span class="keywordtype">char</span>* Attribute( <span class="keyword">const</span> std::string&amp; name )<span class="keyword"> const                          </span>{ <span class="keywordflow">return</span> Attribute( name.c_str() ); }
<a name="l00941"></a>00941         <span class="keyword">const</span> <span class="keywordtype">char</span>* Attribute( <span class="keyword">const</span> std::string&amp; name, <span class="keywordtype">int</span>* i )<span class="keyword"> const          </span>{ <span class="keywordflow">return</span> Attribute( name.c_str(), i ); }
<a name="l00942"></a>00942         <span class="keyword">const</span> <span class="keywordtype">char</span>* Attribute( <span class="keyword">const</span> std::string&amp; name, <span class="keywordtype">double</span>* d )<span class="keyword"> const       </span>{ <span class="keywordflow">return</span> Attribute( name.c_str(), d ); }
<a name="l00943"></a>00943         <span class="keywordtype">int</span> QueryIntAttribute( <span class="keyword">const</span> std::string&amp; name, <span class="keywordtype">int</span>* _value )<span class="keyword"> const     </span>{ <span class="keywordflow">return</span> QueryIntAttribute( name.c_str(), _value ); }
<a name="l00944"></a>00944         <span class="keywordtype">int</span> QueryDoubleAttribute( <span class="keyword">const</span> std::string&amp; name, <span class="keywordtype">double</span>* _value )<span class="keyword"> const </span>{ <span class="keywordflow">return</span> QueryDoubleAttribute( name.c_str(), _value ); }
<a name="l00945"></a>00945 
<a name="l00947"></a>00947         <span class="keywordtype">void</span> SetAttribute( <span class="keyword">const</span> std::string&amp; name, <span class="keyword">const</span> std::string&amp; _value );
<a name="l00949"></a>00949         <span class="keywordtype">void</span> SetAttribute( <span class="keyword">const</span> std::string&amp; name, <span class="keywordtype">int</span> _value );
<a name="l00950"></a>00950 <span class="preprocessor">        #endif</span>
<a name="l00951"></a>00951 <span class="preprocessor"></span>
<a name="l00955"></a>00955         <span class="keywordtype">void</span> SetAttribute( <span class="keyword">const</span> <span class="keywordtype">char</span> * name, <span class="keywordtype">int</span> value );
<a name="l00956"></a>00956 
<a name="l00960"></a>00960         <span class="keywordtype">void</span> SetDoubleAttribute( <span class="keyword">const</span> <span class="keywordtype">char</span> * name, <span class="keywordtype">double</span> value );
<a name="l00961"></a>00961 
<a name="l00964"></a>00964         <span class="keywordtype">void</span> RemoveAttribute( <span class="keyword">const</span> <span class="keywordtype">char</span> * name );
<a name="l00965"></a>00965 <span class="preprocessor">    #ifdef TIXML_USE_STL</span>
<a name="l00966"></a><a class="code" href="classTelEngine_1_1TiXmlElement.html#0faa8ab18b5171ea2ad6f6dddc8d2889">00966</a> <span class="preprocessor"></span>        <span class="keywordtype">void</span> <a class="code" href="classTelEngine_1_1TiXmlElement.html#0faa8ab18b5171ea2ad6f6dddc8d2889" title="STL std::string form.">RemoveAttribute</a>( <span class="keyword">const</span> std::string&amp; name ) {       <a class="code" href="classTelEngine_1_1TiXmlElement.html#0faa8ab18b5171ea2ad6f6dddc8d2889" title="STL std::string form.">RemoveAttribute</a> (name.c_str ());        }       
<a name="l00967"></a>00967 <span class="preprocessor">        #endif</span>
<a name="l00968"></a>00968 <span class="preprocessor"></span>
<a name="l00969"></a><a class="code" href="classTelEngine_1_1TiXmlElement.html#7b357194869f6d65539da85dc6544d24">00969</a>         <span class="keyword">const</span> <a class="code" href="classTelEngine_1_1TiXmlAttribute.html">TiXmlAttribute</a>* <a class="code" href="classTelEngine_1_1TiXmlElement.html#7b357194869f6d65539da85dc6544d24" title="Access the first attribute in this element.">FirstAttribute</a>()<span class="keyword"> const    </span>{ <span class="keywordflow">return</span> attributeSet.First(); }                
<a name="l00970"></a>00970         <a class="code" href="classTelEngine_1_1TiXmlAttribute.html">TiXmlAttribute</a>* FirstAttribute()                                { <span class="keywordflow">return</span> attributeSet.First(); }
<a name="l00971"></a><a class="code" href="classTelEngine_1_1TiXmlElement.html#2bacb6685a44d7a89cdece343b447dac">00971</a>         <span class="keyword">const</span> <a class="code" href="classTelEngine_1_1TiXmlAttribute.html">TiXmlAttribute</a>* <a class="code" href="classTelEngine_1_1TiXmlElement.html#2bacb6685a44d7a89cdece343b447dac" title="Access the last attribute in this element.">LastAttribute</a>()<span class="keyword">   const   </span>{ <span class="keywordflow">return</span> attributeSet.Last(); }         
<a name="l00972"></a>00972         <a class="code" href="classTelEngine_1_1TiXmlAttribute.html">TiXmlAttribute</a>* LastAttribute()                                 { <span class="keywordflow">return</span> attributeSet.Last(); }
<a name="l00973"></a>00973 
<a name="l01006"></a>01006         <span class="keyword">const</span> <span class="keywordtype">char</span>* GetText() <span class="keyword">const</span>;
<a name="l01007"></a>01007 
<a name="l01009"></a>01009         <span class="keyword">virtual</span> TiXmlNode* Clone() <span class="keyword">const</span>;
<a name="l01010"></a>01010         <span class="comment">// Print the Element to a FILE stream.</span>
<a name="l01011"></a>01011         <span class="keyword">virtual</span> <span class="keywordtype">void</span> Print( FILE* cfile, <span class="keywordtype">int</span> depth ) <span class="keyword">const</span>;
<a name="l01012"></a>01012 
<a name="l01013"></a>01013         <span class="comment">/*      Attribtue parsing starts: next char past '&lt;'</span>
<a name="l01014"></a>01014 <span class="comment">                                                 returns: next char past '&gt;'</span>
<a name="l01015"></a>01015 <span class="comment">        */</span>
<a name="l01016"></a>01016         <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* Parse( <span class="keyword">const</span> <span class="keywordtype">char</span>* p, TiXmlParsingData* data, TiXmlEncoding encoding );
<a name="l01017"></a>01017 
<a name="l01018"></a><a class="code" href="classTelEngine_1_1TiXmlElement.html#7a2cc466ad0e9996d71ee5da2db2511f">01018</a>         <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classTelEngine_1_1TiXmlElement.html">TiXmlElement</a>*     <a class="code" href="classTelEngine_1_1TiXmlElement.html#7a2cc466ad0e9996d71ee5da2db2511f" title="Cast to a more defined type. Will return null not of the requested type.">ToElement</a>()<span class="keyword">     const </span>{ <span class="keywordflow">return</span> <span class="keyword">this</span>; } 
<a name="l01019"></a><a class="code" href="classTelEngine_1_1TiXmlElement.html#6225c641ac28d55726b392a3a33774e8">01019</a>         <span class="keyword">virtual</span> <a class="code" href="classTelEngine_1_1TiXmlElement.html">TiXmlElement</a>*           <a class="code" href="classTelEngine_1_1TiXmlElement.html#6225c641ac28d55726b392a3a33774e8" title="Cast to a more defined type. Will return null not of the requested type.">ToElement</a>()               { <span class="keywordflow">return</span> <span class="keyword">this</span>; } 
<a name="l01020"></a>01020         
<a name="l01021"></a>01021 <span class="keyword">protected</span>:
<a name="l01022"></a>01022 
<a name="l01023"></a>01023         <span class="keywordtype">void</span> CopyTo( <a class="code" href="classTelEngine_1_1TiXmlElement.html">TiXmlElement</a>* target ) <span class="keyword">const</span>;
<a name="l01024"></a>01024         <span class="keywordtype">void</span> ClearThis();       <span class="comment">// like clear, but initializes 'this' object as well</span>
<a name="l01025"></a>01025 
<a name="l01026"></a>01026         <span class="comment">// Used to be public [internal use]</span>
<a name="l01027"></a>01027 <span class="preprocessor">        #ifdef TIXML_USE_STL</span>
<a name="l01028"></a>01028 <span class="preprocessor"></span>            <span class="keyword">virtual</span> <span class="keywordtype">void</span> StreamIn( TIXML_ISTREAM * in, TIXML_STRING * tag );
<a name="l01029"></a>01029 <span class="preprocessor">        #endif</span>
<a name="l01030"></a>01030 <span class="preprocessor"></span><span class="keyword">public</span>:
<a name="l01031"></a>01031         <span class="keyword">virtual</span> <span class="keywordtype">void</span> StreamOut( TIXML_OSTREAM * out, <span class="keywordtype">bool</span> unclosed = <span class="keyword">false</span> ) <span class="keyword">const</span>;
<a name="l01032"></a>01032 
<a name="l01033"></a>01033 <span class="keyword">protected</span>:
<a name="l01034"></a>01034         <span class="comment">/*      [internal use]</span>
<a name="l01035"></a>01035 <span class="comment">                Reads the "value" of the element -- another element, or text.</span>
<a name="l01036"></a>01036 <span class="comment">                This should terminate with the current end tag.</span>
<a name="l01037"></a>01037 <span class="comment">        */</span>
<a name="l01038"></a>01038         <span class="keyword">const</span> <span class="keywordtype">char</span>* ReadValue( <span class="keyword">const</span> <span class="keywordtype">char</span>* in, TiXmlParsingData* prevData, TiXmlEncoding encoding );
<a name="l01039"></a>01039 
<a name="l01040"></a>01040 <span class="keyword">private</span>:
<a name="l01041"></a>01041 
<a name="l01042"></a>01042         TiXmlAttributeSet attributeSet;
<a name="l01043"></a>01043 };
<a name="l01044"></a>01044 
<a name="l01045"></a>01045 
<a name="l01048"></a><a class="code" href="classTelEngine_1_1TiXmlComment.html">01048</a> <span class="keyword">class </span>YXML_API <a class="code" href="classTelEngine_1_1TiXmlComment.html">TiXmlComment</a> : <span class="keyword">public</span> <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>
<a name="l01049"></a>01049 {
<a name="l01050"></a>01050 <span class="keyword">public</span>:
<a name="l01052"></a><a class="code" href="classTelEngine_1_1TiXmlComment.html#e41c277a90573c1dfa0f6dc84bd268a8">01052</a>         <a class="code" href="classTelEngine_1_1TiXmlComment.html#e41c277a90573c1dfa0f6dc84bd268a8" title="Constructs an empty comment.">TiXmlComment</a>() : <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>( <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>::COMMENT ) {}
<a name="l01053"></a>01053         <a class="code" href="classTelEngine_1_1TiXmlComment.html">TiXmlComment</a>( <span class="keyword">const</span> <a class="code" href="classTelEngine_1_1TiXmlComment.html">TiXmlComment</a>&amp; );
<a name="l01054"></a>01054         <span class="keywordtype">void</span> operator=( <span class="keyword">const</span> <a class="code" href="classTelEngine_1_1TiXmlComment.html">TiXmlComment</a>&amp; base );
<a name="l01055"></a>01055 
<a name="l01056"></a>01056         <span class="keyword">virtual</span> ~<a class="code" href="classTelEngine_1_1TiXmlComment.html">TiXmlComment</a>() {}
<a name="l01057"></a>01057 
<a name="l01059"></a>01059         <span class="keyword">virtual</span> TiXmlNode* Clone() <span class="keyword">const</span>;
<a name="l01061"></a>01061         <span class="keyword">virtual</span> <span class="keywordtype">void</span> Print( FILE* cfile, <span class="keywordtype">int</span> depth ) <span class="keyword">const</span>;
<a name="l01062"></a>01062 
<a name="l01063"></a>01063         <span class="comment">/*      Attribtue parsing starts: at the ! of the !--</span>
<a name="l01064"></a>01064 <span class="comment">                                                 returns: next char past '&gt;'</span>
<a name="l01065"></a>01065 <span class="comment">        */</span>
<a name="l01066"></a>01066         <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* Parse( <span class="keyword">const</span> <span class="keywordtype">char</span>* p, TiXmlParsingData* data, TiXmlEncoding encoding );
<a name="l01067"></a>01067 
<a name="l01068"></a><a class="code" href="classTelEngine_1_1TiXmlComment.html#1535d8f760996ff1a651cae2fcb62be3">01068</a>         <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classTelEngine_1_1TiXmlComment.html">TiXmlComment</a>*  <a class="code" href="classTelEngine_1_1TiXmlComment.html#1535d8f760996ff1a651cae2fcb62be3" title="Cast to a more defined type. Will return null not of the requested type.">ToComment</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <span class="keyword">this</span>; } 
<a name="l01069"></a><a class="code" href="classTelEngine_1_1TiXmlComment.html#8dfc05132e237c72560d51ee2c725a5c">01069</a>         <span class="keyword">virtual</span> <a class="code" href="classTelEngine_1_1TiXmlComment.html">TiXmlComment</a>*  <a class="code" href="classTelEngine_1_1TiXmlComment.html#8dfc05132e237c72560d51ee2c725a5c" title="Cast to a more defined type. Will return null not of the requested type.">ToComment</a>() { <span class="keywordflow">return</span> <span class="keyword">this</span>; } 
<a name="l01070"></a>01070 
<a name="l01071"></a>01071 <span class="keyword">protected</span>:
<a name="l01072"></a>01072         <span class="keywordtype">void</span> CopyTo( <a class="code" href="classTelEngine_1_1TiXmlComment.html">TiXmlComment</a>* target ) <span class="keyword">const</span>;
<a name="l01073"></a>01073 
<a name="l01074"></a>01074         <span class="comment">// used to be public</span>
<a name="l01075"></a>01075 <span class="preprocessor">        #ifdef TIXML_USE_STL</span>
<a name="l01076"></a>01076 <span class="preprocessor"></span>            <span class="keyword">virtual</span> <span class="keywordtype">void</span> StreamIn( TIXML_ISTREAM * in, TIXML_STRING * tag );
<a name="l01077"></a>01077 <span class="preprocessor">        #endif</span>
<a name="l01078"></a>01078 <span class="preprocessor"></span>
<a name="l01079"></a>01079 <span class="keyword">public</span>:
<a name="l01080"></a>01080         <span class="keyword">virtual</span> <span class="keywordtype">void</span> StreamOut( TIXML_OSTREAM * out, <span class="keywordtype">bool</span> unclosed = <span class="keyword">false</span> ) <span class="keyword">const</span>;
<a name="l01081"></a>01081 
<a name="l01082"></a>01082 <span class="keyword">private</span>:
<a name="l01083"></a>01083 
<a name="l01084"></a>01084 };
<a name="l01085"></a>01085 
<a name="l01086"></a>01086 
<a name="l01092"></a><a class="code" href="classTelEngine_1_1TiXmlText.html">01092</a> <span class="keyword">class </span>YXML_API <a class="code" href="classTelEngine_1_1TiXmlText.html">TiXmlText</a> : <span class="keyword">public</span> <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>
<a name="l01093"></a>01093 {
<a name="l01094"></a>01094         <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classTelEngine_1_1TiXmlElement.html">TiXmlElement</a>;
<a name="l01095"></a>01095 <span class="keyword">public</span>:
<a name="l01100"></a><a class="code" href="classTelEngine_1_1TiXmlText.html#1ce4da1d724e3580ad24bac910c7bdcf">01100</a>         <a class="code" href="classTelEngine_1_1TiXmlText.html">TiXmlText</a> (<span class="keyword">const</span> <span class="keywordtype">char</span> * initValue ) : <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a> (<a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>::TEXT)
<a name="l01101"></a>01101         {
<a name="l01102"></a>01102                 SetValue( initValue );
<a name="l01103"></a>01103                 cdata = <span class="keyword">false</span>;
<a name="l01104"></a>01104         }
<a name="l01105"></a>01105         <span class="keyword">virtual</span> ~<a class="code" href="classTelEngine_1_1TiXmlText.html">TiXmlText</a>() {}
<a name="l01106"></a>01106 
<a name="l01107"></a>01107 <span class="preprocessor">        #ifdef TIXML_USE_STL</span>
<a name="l01109"></a><a class="code" href="classTelEngine_1_1TiXmlText.html#8fe397715ba2fc4c177da8044d54131a">01109</a> <span class="preprocessor">        TiXmlText( const std::string&amp; initValue ) : TiXmlNode (TiXmlNode::TEXT)</span>
<a name="l01110"></a>01110 <span class="preprocessor"></span>        {
<a name="l01111"></a>01111                 SetValue( initValue );
<a name="l01112"></a>01112                 cdata = <span class="keyword">false</span>;
<a name="l01113"></a>01113         }
<a name="l01114"></a>01114 <span class="preprocessor">        #endif</span>
<a name="l01115"></a>01115 <span class="preprocessor"></span>
<a name="l01116"></a>01116         <a class="code" href="classTelEngine_1_1TiXmlText.html">TiXmlText</a>( <span class="keyword">const</span> <a class="code" href="classTelEngine_1_1TiXmlText.html">TiXmlText</a>&amp; copy ) : <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>( <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>::TEXT )       { copy.<a class="code" href="classTelEngine_1_1TiXmlText.html#d98ffea964536f84f4c6f09e5fe0f8ce">CopyTo</a>( <span class="keyword">this</span> ); }
<a name="l01117"></a>01117         <span class="keywordtype">void</span> operator=( <span class="keyword">const</span> TiXmlText&amp; base )                                                         { base.CopyTo( <span class="keyword">this</span> ); }
<a name="l01118"></a>01118 
<a name="l01120"></a>01120         <span class="keyword">virtual</span> <span class="keywordtype">void</span> Print( FILE* cfile, <span class="keywordtype">int</span> depth ) <span class="keyword">const</span>;
<a name="l01121"></a>01121 
<a name="l01123"></a><a class="code" href="classTelEngine_1_1TiXmlText.html#3e6b8c03f2908f0dd509ca4de5ff5d3c">01123</a>         <span class="keywordtype">bool</span> <a class="code" href="classTelEngine_1_1TiXmlText.html#3e6b8c03f2908f0dd509ca4de5ff5d3c" title="Queries whether this represents text using a CDATA section.">CDATA</a>()                                    { <span class="keywordflow">return</span> cdata; }
<a name="l01125"></a><a class="code" href="classTelEngine_1_1TiXmlText.html#07fb5fe2ac8f2b633fbcd3c68ffb9a73">01125</a>         <span class="keywordtype">void</span> <a class="code" href="classTelEngine_1_1TiXmlText.html#07fb5fe2ac8f2b633fbcd3c68ffb9a73" title="Turns on or off a CDATA representation of text.">SetCDATA</a>( <span class="keywordtype">bool</span> _cdata )    { cdata = _cdata; }
<a name="l01126"></a>01126 
<a name="l01127"></a>01127         <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* Parse( <span class="keyword">const</span> <span class="keywordtype">char</span>* p, TiXmlParsingData* data, TiXmlEncoding encoding );
<a name="l01128"></a>01128 
<a name="l01129"></a><a class="code" href="classTelEngine_1_1TiXmlText.html#dfcbab915eb7dac33a6b914b507fd79b">01129</a>         <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classTelEngine_1_1TiXmlText.html">TiXmlText</a>* <a class="code" href="classTelEngine_1_1TiXmlText.html#dfcbab915eb7dac33a6b914b507fd79b" title="Cast to a more defined type. Will return null not of the requested type.">ToText</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <span class="keyword">this</span>; } 
<a name="l01130"></a><a class="code" href="classTelEngine_1_1TiXmlText.html#0229d3dce587577a7a295d07524ccf6b">01130</a>         <span class="keyword">virtual</span> <a class="code" href="classTelEngine_1_1TiXmlText.html">TiXmlText</a>*       <a class="code" href="classTelEngine_1_1TiXmlText.html#0229d3dce587577a7a295d07524ccf6b" title="Cast to a more defined type. Will return null not of the requested type.">ToText</a>()       { <span class="keywordflow">return</span> <span class="keyword">this</span>; } 
<a name="l01131"></a>01131 
<a name="l01132"></a>01132 <span class="keyword">protected</span> :
<a name="l01134"></a>01134         <span class="keyword">virtual</span> <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>* Clone() <span class="keyword">const</span>;
<a name="l01135"></a>01135         <span class="keywordtype">void</span> CopyTo( <a class="code" href="classTelEngine_1_1TiXmlText.html">TiXmlText</a>* target ) <span class="keyword">const</span>;
<a name="l01136"></a>01136 
<a name="l01137"></a>01137 <span class="keyword">public</span>:
<a name="l01138"></a>01138         <span class="keyword">virtual</span> <span class="keywordtype">void</span> StreamOut ( TIXML_OSTREAM * out, <span class="keywordtype">bool</span> unclosed = <span class="keyword">false</span> ) <span class="keyword">const</span>;
<a name="l01139"></a>01139 
<a name="l01140"></a>01140 <span class="keyword">protected</span>:
<a name="l01141"></a>01141         <span class="keywordtype">bool</span> Blank() <span class="keyword">const</span>;     <span class="comment">// returns true if all white space and new lines</span>
<a name="l01142"></a>01142         <span class="comment">// [internal use]</span>
<a name="l01143"></a>01143 <span class="preprocessor">        #ifdef TIXML_USE_STL</span>
<a name="l01144"></a>01144 <span class="preprocessor"></span>            <span class="keyword">virtual</span> <span class="keywordtype">void</span> StreamIn( TIXML_ISTREAM * in, TIXML_STRING * tag );
<a name="l01145"></a>01145 <span class="preprocessor">        #endif</span>
<a name="l01146"></a>01146 <span class="preprocessor"></span>
<a name="l01147"></a>01147 <span class="keyword">private</span>:
<a name="l01148"></a>01148         <span class="keywordtype">bool</span> cdata;                     <span class="comment">// true if this should be input and output as a CDATA style text element</span>
<a name="l01149"></a>01149 };
<a name="l01150"></a>01150 
<a name="l01151"></a>01151 
<a name="l01165"></a><a class="code" href="classTelEngine_1_1TiXmlDeclaration.html">01165</a> <span class="keyword">class </span>YXML_API <a class="code" href="classTelEngine_1_1TiXmlDeclaration.html">TiXmlDeclaration</a> : <span class="keyword">public</span> <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>
<a name="l01166"></a>01166 {
<a name="l01167"></a>01167 <span class="keyword">public</span>:
<a name="l01169"></a><a class="code" href="classTelEngine_1_1TiXmlDeclaration.html#dde340cc8cfbc11ea427a162d65c1d3d">01169</a>         <a class="code" href="classTelEngine_1_1TiXmlDeclaration.html#dde340cc8cfbc11ea427a162d65c1d3d" title="Construct an empty declaration.">TiXmlDeclaration</a>()   : <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>( <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>::DECLARATION ) {}
<a name="l01170"></a>01170 
<a name="l01171"></a>01171 <span class="preprocessor">#ifdef TIXML_USE_STL</span>
<a name="l01173"></a>01173 <span class="preprocessor">        TiXmlDeclaration(       const std::string&amp; _version,</span>
<a name="l01174"></a>01174 <span class="preprocessor"></span>                                                <span class="keyword">const</span> std::string&amp; _encoding,
<a name="l01175"></a>01175                                                 <span class="keyword">const</span> std::string&amp; _standalone );
<a name="l01176"></a>01176 <span class="preprocessor">#endif</span>
<a name="l01177"></a>01177 <span class="preprocessor"></span>
<a name="l01179"></a>01179         <a class="code" href="classTelEngine_1_1TiXmlDeclaration.html">TiXmlDeclaration</a>(       <span class="keyword">const</span> <span class="keywordtype">char</span>* _version,
<a name="l01180"></a>01180                                                 <span class="keyword">const</span> <span class="keywordtype">char</span>* _encoding,
<a name="l01181"></a>01181                                                 <span class="keyword">const</span> <span class="keywordtype">char</span>* _standalone );
<a name="l01182"></a>01182 
<a name="l01183"></a>01183         <a class="code" href="classTelEngine_1_1TiXmlDeclaration.html">TiXmlDeclaration</a>( <span class="keyword">const</span> <a class="code" href="classTelEngine_1_1TiXmlDeclaration.html">TiXmlDeclaration</a>&amp; copy );
<a name="l01184"></a>01184         <span class="keywordtype">void</span> operator=( <span class="keyword">const</span> <a class="code" href="classTelEngine_1_1TiXmlDeclaration.html">TiXmlDeclaration</a>&amp; copy );
<a name="l01185"></a>01185 
<a name="l01186"></a>01186         <span class="keyword">virtual</span> ~<a class="code" href="classTelEngine_1_1TiXmlDeclaration.html">TiXmlDeclaration</a>()     {}
<a name="l01187"></a>01187 
<a name="l01189"></a><a class="code" href="classTelEngine_1_1TiXmlDeclaration.html#1abac6487c56161794e2cba656e51e82">01189</a>         <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="classTelEngine_1_1TiXmlDeclaration.html#1abac6487c56161794e2cba656e51e82" title="Version. Will return an empty string if none was found.">Version</a>()<span class="keyword"> const                     </span>{ <span class="keywordflow">return</span> version.c_str (); }
<a name="l01191"></a><a class="code" href="classTelEngine_1_1TiXmlDeclaration.html#21cf43021714cb3938bfd5dee8586e0f">01191</a>         <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="classTelEngine_1_1TiXmlDeclaration.html#21cf43021714cb3938bfd5dee8586e0f" title="Encoding. Will return an empty string if none was found.">Encoding</a>()<span class="keyword"> const            </span>{ <span class="keywordflow">return</span> encoding.c_str (); }
<a name="l01193"></a><a class="code" href="classTelEngine_1_1TiXmlDeclaration.html#8d9819c5680aeba23cfd31c2365054ec">01193</a>         <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="classTelEngine_1_1TiXmlDeclaration.html#8d9819c5680aeba23cfd31c2365054ec" title="Is this a standalone document?">Standalone</a>()<span class="keyword"> const          </span>{ <span class="keywordflow">return</span> standalone.c_str (); }
<a name="l01194"></a>01194 
<a name="l01196"></a>01196         <span class="keyword">virtual</span> <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>* Clone() <span class="keyword">const</span>;
<a name="l01198"></a>01198         <span class="keyword">virtual</span> <span class="keywordtype">void</span> Print( FILE* cfile, <span class="keywordtype">int</span> depth ) <span class="keyword">const</span>;
<a name="l01199"></a>01199 
<a name="l01200"></a>01200         <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* Parse( <span class="keyword">const</span> <span class="keywordtype">char</span>* p, TiXmlParsingData* data, TiXmlEncoding encoding );
<a name="l01201"></a>01201 
<a name="l01202"></a><a class="code" href="classTelEngine_1_1TiXmlDeclaration.html#ee135ea9d6486ec118898e3ac8a293cf">01202</a>         <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classTelEngine_1_1TiXmlDeclaration.html">TiXmlDeclaration</a>* <a class="code" href="classTelEngine_1_1TiXmlDeclaration.html#ee135ea9d6486ec118898e3ac8a293cf" title="Cast to a more defined type. Will return null not of the requested type.">ToDeclaration</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <span class="keyword">this</span>; } 
<a name="l01203"></a><a class="code" href="classTelEngine_1_1TiXmlDeclaration.html#b07aa982d62f5beba098e5a285c75e67">01203</a>         <span class="keyword">virtual</span> <a class="code" href="classTelEngine_1_1TiXmlDeclaration.html">TiXmlDeclaration</a>*       <a class="code" href="classTelEngine_1_1TiXmlDeclaration.html#b07aa982d62f5beba098e5a285c75e67" title="Cast to a more defined type. Will return null not of the requested type.">ToDeclaration</a>()       { <span class="keywordflow">return</span> <span class="keyword">this</span>; } 
<a name="l01204"></a>01204 
<a name="l01205"></a>01205 <span class="keyword">protected</span>:
<a name="l01206"></a>01206         <span class="keywordtype">void</span> CopyTo( <a class="code" href="classTelEngine_1_1TiXmlDeclaration.html">TiXmlDeclaration</a>* target ) <span class="keyword">const</span>;
<a name="l01207"></a>01207         <span class="comment">// used to be public</span>
<a name="l01208"></a>01208 <span class="preprocessor">        #ifdef TIXML_USE_STL</span>
<a name="l01209"></a>01209 <span class="preprocessor"></span>            <span class="keyword">virtual</span> <span class="keywordtype">void</span> StreamIn( TIXML_ISTREAM * in, TIXML_STRING * tag );
<a name="l01210"></a>01210 <span class="preprocessor">        #endif</span>
<a name="l01211"></a>01211 <span class="preprocessor"></span>
<a name="l01212"></a>01212 <span class="keyword">public</span>:
<a name="l01213"></a>01213         <span class="keyword">virtual</span> <span class="keywordtype">void</span> StreamOut ( TIXML_OSTREAM * out, <span class="keywordtype">bool</span> unclosed = <span class="keyword">false</span> ) <span class="keyword">const</span>;
<a name="l01214"></a>01214 
<a name="l01215"></a>01215 <span class="keyword">private</span>:
<a name="l01216"></a>01216 
<a name="l01217"></a>01217         TIXML_STRING version;
<a name="l01218"></a>01218         TIXML_STRING encoding;
<a name="l01219"></a>01219         TIXML_STRING standalone;
<a name="l01220"></a>01220 };
<a name="l01221"></a>01221 
<a name="l01222"></a>01222 
<a name="l01230"></a><a class="code" href="classTelEngine_1_1TiXmlUnknown.html">01230</a> <span class="keyword">class </span>YXML_API <a class="code" href="classTelEngine_1_1TiXmlUnknown.html">TiXmlUnknown</a> : <span class="keyword">public</span> <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>
<a name="l01231"></a>01231 {
<a name="l01232"></a>01232 <span class="keyword">public</span>:
<a name="l01233"></a>01233         <a class="code" href="classTelEngine_1_1TiXmlUnknown.html">TiXmlUnknown</a>() : <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>( TiXmlNode::UNKNOWN )        {}
<a name="l01234"></a>01234         <span class="keyword">virtual</span> ~<a class="code" href="classTelEngine_1_1TiXmlUnknown.html">TiXmlUnknown</a>() {}
<a name="l01235"></a>01235 
<a name="l01236"></a>01236         <a class="code" href="classTelEngine_1_1TiXmlUnknown.html">TiXmlUnknown</a>( <span class="keyword">const</span> <a class="code" href="classTelEngine_1_1TiXmlUnknown.html">TiXmlUnknown</a>&amp; copy ) : <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>( TiXmlNode::UNKNOWN )              { copy.<a class="code" href="classTelEngine_1_1TiXmlUnknown.html#24c1b0ad8054a2643ed0ad565db4c005">CopyTo</a>( <span class="keyword">this</span> ); }
<a name="l01237"></a>01237         <span class="keywordtype">void</span> operator=( <span class="keyword">const</span> <a class="code" href="classTelEngine_1_1TiXmlUnknown.html">TiXmlUnknown</a>&amp; copy )                                                                              { copy.<a class="code" href="classTelEngine_1_1TiXmlUnknown.html#24c1b0ad8054a2643ed0ad565db4c005">CopyTo</a>( <span class="keyword">this</span> ); }
<a name="l01238"></a>01238 
<a name="l01240"></a>01240         <span class="keyword">virtual</span> <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>* Clone() <span class="keyword">const</span>;
<a name="l01242"></a>01242         <span class="keyword">virtual</span> <span class="keywordtype">void</span> Print( FILE* cfile, <span class="keywordtype">int</span> depth ) <span class="keyword">const</span>;
<a name="l01243"></a>01243 
<a name="l01244"></a>01244         <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* Parse( <span class="keyword">const</span> <span class="keywordtype">char</span>* p, TiXmlParsingData* data, TiXmlEncoding encoding );
<a name="l01245"></a>01245 
<a name="l01246"></a><a class="code" href="classTelEngine_1_1TiXmlUnknown.html#461ef07268953b2b3fad50f64aa20321">01246</a>         <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classTelEngine_1_1TiXmlUnknown.html">TiXmlUnknown</a>*     <a class="code" href="classTelEngine_1_1TiXmlUnknown.html#461ef07268953b2b3fad50f64aa20321" title="Cast to a more defined type. Will return null not of the requested type.">ToUnknown</a>()<span class="keyword">     const </span>{ <span class="keywordflow">return</span> <span class="keyword">this</span>; } 
<a name="l01247"></a><a class="code" href="classTelEngine_1_1TiXmlUnknown.html#27d3f8d54b19f00da670016ae6c5774a">01247</a>         <span class="keyword">virtual</span> <a class="code" href="classTelEngine_1_1TiXmlUnknown.html">TiXmlUnknown</a>*           <a class="code" href="classTelEngine_1_1TiXmlUnknown.html#27d3f8d54b19f00da670016ae6c5774a" title="Cast to a more defined type. Will return null not of the requested type.">ToUnknown</a>()         { <span class="keywordflow">return</span> <span class="keyword">this</span>; } 
<a name="l01248"></a>01248 
<a name="l01249"></a>01249 <span class="keyword">protected</span>:
<a name="l01250"></a>01250         <span class="keywordtype">void</span> CopyTo( <a class="code" href="classTelEngine_1_1TiXmlUnknown.html">TiXmlUnknown</a>* target ) <span class="keyword">const</span>;
<a name="l01251"></a>01251 
<a name="l01252"></a>01252 <span class="preprocessor">        #ifdef TIXML_USE_STL</span>
<a name="l01253"></a>01253 <span class="preprocessor"></span>            <span class="keyword">virtual</span> <span class="keywordtype">void</span> StreamIn( TIXML_ISTREAM * in, TIXML_STRING * tag );
<a name="l01254"></a>01254 <span class="preprocessor">        #endif</span>
<a name="l01255"></a>01255 <span class="preprocessor"></span>
<a name="l01256"></a>01256 <span class="keyword">public</span>:
<a name="l01257"></a>01257         <span class="keyword">virtual</span> <span class="keywordtype">void</span> StreamOut ( TIXML_OSTREAM * out, <span class="keywordtype">bool</span> unclosed = <span class="keyword">false</span> ) <span class="keyword">const</span>;
<a name="l01258"></a>01258 
<a name="l01259"></a>01259 <span class="keyword">private</span>:
<a name="l01260"></a>01260 
<a name="l01261"></a>01261 };
<a name="l01262"></a>01262 
<a name="l01263"></a>01263 
<a name="l01268"></a><a class="code" href="classTelEngine_1_1TiXmlDocument.html">01268</a> <span class="keyword">class </span>YXML_API <a class="code" href="classTelEngine_1_1TiXmlDocument.html">TiXmlDocument</a> : <span class="keyword">public</span> <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>
<a name="l01269"></a>01269 {
<a name="l01270"></a>01270 <span class="keyword">public</span>:
<a name="l01272"></a>01272         <a class="code" href="classTelEngine_1_1TiXmlDocument.html">TiXmlDocument</a>();
<a name="l01274"></a>01274         <a class="code" href="classTelEngine_1_1TiXmlDocument.html">TiXmlDocument</a>( <span class="keyword">const</span> <span class="keywordtype">char</span> * documentName );
<a name="l01275"></a>01275 
<a name="l01276"></a>01276 <span class="preprocessor">        #ifdef TIXML_USE_STL</span>
<a name="l01278"></a>01278 <span class="preprocessor">        TiXmlDocument( const std::string&amp; documentName );</span>
<a name="l01279"></a>01279 <span class="preprocessor"></span><span class="preprocessor">        #endif</span>
<a name="l01280"></a>01280 <span class="preprocessor"></span>
<a name="l01281"></a>01281         <a class="code" href="classTelEngine_1_1TiXmlDocument.html">TiXmlDocument</a>( <span class="keyword">const</span> <a class="code" href="classTelEngine_1_1TiXmlDocument.html">TiXmlDocument</a>&amp; copy );
<a name="l01282"></a>01282         <span class="keywordtype">void</span> operator=( <span class="keyword">const</span> <a class="code" href="classTelEngine_1_1TiXmlDocument.html">TiXmlDocument</a>&amp; copy );
<a name="l01283"></a>01283 
<a name="l01284"></a>01284         <span class="keyword">virtual</span> ~<a class="code" href="classTelEngine_1_1TiXmlDocument.html">TiXmlDocument</a>() {}
<a name="l01285"></a>01285 
<a name="l01290"></a>01290         <span class="keywordtype">bool</span> LoadFile( TiXmlEncoding encoding = TIXML_DEFAULT_ENCODING );
<a name="l01292"></a>01292         <span class="keywordtype">bool</span> SaveFile() <span class="keyword">const</span>;
<a name="l01294"></a>01294         <span class="keywordtype">bool</span> LoadFile( <span class="keyword">const</span> <span class="keywordtype">char</span> * filename, TiXmlEncoding encoding = TIXML_DEFAULT_ENCODING );
<a name="l01296"></a>01296         <span class="keywordtype">bool</span> SaveFile( <span class="keyword">const</span> <span class="keywordtype">char</span> * filename ) <span class="keyword">const</span>;
<a name="l01302"></a>01302         <span class="keywordtype">bool</span> LoadFile( FILE*, TiXmlEncoding encoding = TIXML_DEFAULT_ENCODING );
<a name="l01304"></a>01304         <span class="keywordtype">bool</span> SaveFile( FILE* ) <span class="keyword">const</span>;
<a name="l01305"></a>01305 
<a name="l01306"></a>01306 <span class="preprocessor">        #ifdef TIXML_USE_STL</span>
<a name="l01307"></a><a class="code" href="classTelEngine_1_1TiXmlDocument.html#146453f24657d573e1154b5f5ce1fea5">01307</a> <span class="preprocessor"></span>        <span class="keywordtype">bool</span> LoadFile( <span class="keyword">const</span> std::string&amp; filename, TiXmlEncoding encoding = TIXML_DEFAULT_ENCODING )                   
<a name="l01308"></a>01308         {
<a name="l01309"></a>01309                 StringToBuffer f( filename );
<a name="l01310"></a>01310                 <span class="keywordflow">return</span> ( f.buffer &amp;&amp; LoadFile( f.buffer, encoding ));
<a name="l01311"></a>01311         }
<a name="l01312"></a><a class="code" href="classTelEngine_1_1TiXmlDocument.html#d31a4da19ddb53b4e1a1d6602950d5dd">01312</a>         <span class="keywordtype">bool</span> SaveFile( <span class="keyword">const</span> std::string&amp; filename ) <span class="keyword">const</span>              
<a name="l01313"></a>01313         {
<a name="l01314"></a>01314                 StringToBuffer f( filename );
<a name="l01315"></a>01315                 <span class="keywordflow">return</span> ( f.buffer &amp;&amp; SaveFile( f.buffer ));
<a name="l01316"></a>01316         }
<a name="l01317"></a>01317 <span class="preprocessor">        #endif</span>
<a name="l01318"></a>01318 <span class="preprocessor"></span>
<a name="l01324"></a>01324         <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* Parse( <span class="keyword">const</span> <span class="keywordtype">char</span>* p, TiXmlParsingData* data = 0, TiXmlEncoding encoding = TIXML_DEFAULT_ENCODING );
<a name="l01325"></a>01325 
<a name="l01330"></a><a class="code" href="classTelEngine_1_1TiXmlDocument.html#cdbf63eb9f24db17a52066d28cc52409">01330</a>         <span class="keyword">const</span> <a class="code" href="classTelEngine_1_1TiXmlElement.html">TiXmlElement</a>* <a class="code" href="classTelEngine_1_1TiXmlDocument.html#cdbf63eb9f24db17a52066d28cc52409">RootElement</a>()<span class="keyword"> const         </span>{ <span class="keywordflow">return</span> FirstChildElement(); }
<a name="l01331"></a>01331         <a class="code" href="classTelEngine_1_1TiXmlElement.html">TiXmlElement</a>* RootElement()                                     { <span class="keywordflow">return</span> FirstChildElement(); }
<a name="l01332"></a>01332 
<a name="l01338"></a><a class="code" href="classTelEngine_1_1TiXmlDocument.html#7f351111b1715879a6029d189f7457e1">01338</a>         <span class="keywordtype">bool</span> <a class="code" href="classTelEngine_1_1TiXmlDocument.html#7f351111b1715879a6029d189f7457e1">Error</a>()<span class="keyword"> const                                              </span>{ <span class="keywordflow">return</span> error; }
<a name="l01339"></a>01339 
<a name="l01341"></a><a class="code" href="classTelEngine_1_1TiXmlDocument.html#7d1e7abe3926fb683abae7b170d73cc4">01341</a>         <span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code" href="classTelEngine_1_1TiXmlDocument.html#7d1e7abe3926fb683abae7b170d73cc4" title="Contains a textual (english) description of the error if one occurs.">ErrorDesc</a>()<span class="keyword"> const  </span>{ <span class="keywordflow">return</span> errorDesc.c_str (); }
<a name="l01342"></a>01342 
<a name="l01346"></a><a class="code" href="classTelEngine_1_1TiXmlDocument.html#85f5573d8b045fd19ebf476dffb309be">01346</a>         <span class="keywordtype">int</span> <a class="code" href="classTelEngine_1_1TiXmlDocument.html#85f5573d8b045fd19ebf476dffb309be">ErrorId</a>()<span class="keyword">   const                           </span>{ <span class="keywordflow">return</span> errorId; }
<a name="l01347"></a>01347 
<a name="l01355"></a><a class="code" href="classTelEngine_1_1TiXmlDocument.html#b3cea712762b242cd4af6f2d98ab0236">01355</a>         <span class="keywordtype">int</span> <a class="code" href="classTelEngine_1_1TiXmlDocument.html#b3cea712762b242cd4af6f2d98ab0236">ErrorRow</a>()  { <span class="keywordflow">return</span> errorLocation.row+1; }
<a name="l01356"></a><a class="code" href="classTelEngine_1_1TiXmlDocument.html#270f533f0de05ad770edc70afa660989">01356</a>         <span class="keywordtype">int</span> <a class="code" href="classTelEngine_1_1TiXmlDocument.html#270f533f0de05ad770edc70afa660989" title="The column where the error occured. See ErrorRow().">ErrorCol</a>()  { <span class="keywordflow">return</span> errorLocation.col+1; } 
<a name="l01357"></a>01357 
<a name="l01382"></a><a class="code" href="classTelEngine_1_1TiXmlDocument.html#e52c1e6d112677e7fce608a2de6201bd">01382</a>         <span class="keywordtype">void</span> <a class="code" href="classTelEngine_1_1TiXmlDocument.html#e52c1e6d112677e7fce608a2de6201bd">SetTabSize</a>( <span class="keywordtype">int</span> _tabsize )         { tabsize = _tabsize; }
<a name="l01383"></a>01383 
<a name="l01384"></a>01384         <span class="keywordtype">int</span> TabSize()<span class="keyword"> const     </span>{ <span class="keywordflow">return</span> tabsize; }
<a name="l01385"></a>01385 
<a name="l01389"></a><a class="code" href="classTelEngine_1_1TiXmlDocument.html#93f7a306ed9bf1f41de89f2afea7f55d">01389</a>         <span class="keywordtype">void</span> <a class="code" href="classTelEngine_1_1TiXmlDocument.html#93f7a306ed9bf1f41de89f2afea7f55d">ClearError</a>()                                               {       error = <span class="keyword">false</span>; 
<a name="l01390"></a>01390                                                                                                 errorId = 0; 
<a name="l01391"></a>01391                                                                                                 errorDesc = <span class="stringliteral">""</span>; 
<a name="l01392"></a>01392                                                                                                 errorLocation.row = errorLocation.col = 0; 
<a name="l01393"></a>01393                                                                                                 <span class="comment">//errorLocation.last = 0; </span>
<a name="l01394"></a>01394                                                                                         }
<a name="l01395"></a>01395 
<a name="l01397"></a><a class="code" href="classTelEngine_1_1TiXmlDocument.html#11421e368566880f5aaa4f39ce8885c4">01397</a>         <span class="keywordtype">void</span> <a class="code" href="classTelEngine_1_1TiXmlDocument.html#11421e368566880f5aaa4f39ce8885c4">Print</a>()<span class="keyword"> const                                              </span>{ <a class="code" href="classTelEngine_1_1TiXmlDocument.html#11421e368566880f5aaa4f39ce8885c4">Print</a>( stdout, 0 ); }
<a name="l01398"></a>01398 
<a name="l01400"></a>01400         <span class="keyword">virtual</span> <span class="keywordtype">void</span> Print( FILE* cfile, <span class="keywordtype">int</span> depth = 0 ) <span class="keyword">const</span>;
<a name="l01401"></a>01401         <span class="comment">// [internal use]</span>
<a name="l01402"></a>01402         <span class="keywordtype">void</span> SetError( <span class="keywordtype">int</span> err, <span class="keyword">const</span> <span class="keywordtype">char</span>* errorLocation, TiXmlParsingData* prevData, TiXmlEncoding encoding );
<a name="l01403"></a><a class="code" href="classTelEngine_1_1TiXmlDocument.html#0ac5163cd2f090c512d09453d445988a">01403</a>         <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classTelEngine_1_1TiXmlDocument.html">TiXmlDocument</a>*    <a class="code" href="classTelEngine_1_1TiXmlDocument.html#0ac5163cd2f090c512d09453d445988a" title="Cast to a more defined type. Will return null not of the requested type.">ToDocument</a>()<span class="keyword">    const </span>{ <span class="keywordflow">return</span> <span class="keyword">this</span>; } 
<a name="l01404"></a><a class="code" href="classTelEngine_1_1TiXmlDocument.html#46a5535cabc469a65f47acc317fea778">01404</a>         <span class="keyword">virtual</span> <a class="code" href="classTelEngine_1_1TiXmlDocument.html">TiXmlDocument</a>*          <a class="code" href="classTelEngine_1_1TiXmlDocument.html#46a5535cabc469a65f47acc317fea778" title="Cast to a more defined type. Will return null not of the requested type.">ToDocument</a>()          { <span class="keywordflow">return</span> <span class="keyword">this</span>; } 
<a name="l01405"></a>01405 
<a name="l01406"></a>01406         <span class="keyword">virtual</span> <span class="keywordtype">void</span> StreamOut ( TIXML_OSTREAM * out, <span class="keywordtype">bool</span> unclosed = <span class="keyword">false</span> ) <span class="keyword">const</span>;
<a name="l01407"></a>01407 
<a name="l01408"></a>01408 <span class="keyword">protected</span> :
<a name="l01409"></a>01409         <span class="comment">// [internal use]</span>
<a name="l01410"></a>01410         <span class="keyword">virtual</span> <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>* Clone() <span class="keyword">const</span>;
<a name="l01411"></a>01411 <span class="preprocessor">        #ifdef TIXML_USE_STL</span>
<a name="l01412"></a>01412 <span class="preprocessor"></span>            <span class="keyword">virtual</span> <span class="keywordtype">void</span> StreamIn( TIXML_ISTREAM * in, TIXML_STRING * tag );
<a name="l01413"></a>01413 <span class="preprocessor">        #endif</span>
<a name="l01414"></a>01414 <span class="preprocessor"></span>
<a name="l01415"></a>01415 <span class="keyword">private</span>:
<a name="l01416"></a>01416         <span class="keywordtype">void</span> CopyTo( <a class="code" href="classTelEngine_1_1TiXmlDocument.html">TiXmlDocument</a>* target ) <span class="keyword">const</span>;
<a name="l01417"></a>01417 
<a name="l01418"></a>01418         <span class="keywordtype">bool</span> error;
<a name="l01419"></a>01419         <span class="keywordtype">int</span>  errorId;
<a name="l01420"></a>01420         TIXML_STRING errorDesc;
<a name="l01421"></a>01421         <span class="keywordtype">int</span> tabsize;
<a name="l01422"></a>01422         TiXmlCursor errorLocation;
<a name="l01423"></a>01423         <span class="keywordtype">bool</span> useMicrosoftBOM;           <span class="comment">// the UTF-8 BOM were found when read. Note this, and try to write.</span>
<a name="l01424"></a>01424 };
<a name="l01425"></a>01425 
<a name="l01426"></a>01426 
<a name="l01507"></a><a class="code" href="classTelEngine_1_1TiXmlHandle.html">01507</a> <span class="keyword">class </span>YXML_API <a class="code" href="classTelEngine_1_1TiXmlHandle.html">TiXmlHandle</a>
<a name="l01508"></a>01508 {
<a name="l01509"></a>01509 <span class="keyword">public</span>:
<a name="l01511"></a><a class="code" href="classTelEngine_1_1TiXmlHandle.html#7a91f73db1ec65f60edf6c3351e9085a">01511</a>         <a class="code" href="classTelEngine_1_1TiXmlHandle.html#7a91f73db1ec65f60edf6c3351e9085a" title="Create a handle from any node (at any depth of the tree.) This can be a null pointer...">TiXmlHandle</a>( <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>* _node )                                 { this-&gt;node = _node; }
<a name="l01513"></a><a class="code" href="classTelEngine_1_1TiXmlHandle.html#c9e2921a67990ee459e075bb6f79ab6c">01513</a>         <a class="code" href="classTelEngine_1_1TiXmlHandle.html#c9e2921a67990ee459e075bb6f79ab6c" title="Copy constructor.">TiXmlHandle</a>( <span class="keyword">const</span> <a class="code" href="classTelEngine_1_1TiXmlHandle.html">TiXmlHandle</a>&amp; ref )                   { this-&gt;node = ref.<a class="code" href="classTelEngine_1_1TiXmlHandle.html#60948bcf83ce945139762e378399cc6c">node</a>; }
<a name="l01514"></a>01514         <a class="code" href="classTelEngine_1_1TiXmlHandle.html">TiXmlHandle</a> operator=( <span class="keyword">const</span> <a class="code" href="classTelEngine_1_1TiXmlHandle.html">TiXmlHandle</a>&amp; ref ) { this-&gt;node = ref.<a class="code" href="classTelEngine_1_1TiXmlHandle.html#60948bcf83ce945139762e378399cc6c">node</a>; <span class="keywordflow">return</span> *<span class="keyword">this</span>; }
<a name="l01515"></a>01515 
<a name="l01517"></a>01517         TiXmlHandle FirstChild() <span class="keyword">const</span>;
<a name="l01519"></a>01519         TiXmlHandle FirstChild( <span class="keyword">const</span> <span class="keywordtype">char</span> * value ) <span class="keyword">const</span>;
<a name="l01521"></a>01521         TiXmlHandle FirstChildElement() <span class="keyword">const</span>;
<a name="l01523"></a>01523         TiXmlHandle FirstChildElement( <span class="keyword">const</span> <span class="keywordtype">char</span> * value ) <span class="keyword">const</span>;
<a name="l01524"></a>01524 
<a name="l01528"></a>01528         TiXmlHandle Child( <span class="keyword">const</span> <span class="keywordtype">char</span>* value, <span class="keywordtype">int</span> index ) <span class="keyword">const</span>;
<a name="l01532"></a>01532         TiXmlHandle Child( <span class="keywordtype">int</span> index ) <span class="keyword">const</span>;
<a name="l01537"></a>01537         TiXmlHandle ChildElement( <span class="keyword">const</span> <span class="keywordtype">char</span>* value, <span class="keywordtype">int</span> index ) <span class="keyword">const</span>;
<a name="l01542"></a>01542         TiXmlHandle ChildElement( <span class="keywordtype">int</span> index ) <span class="keyword">const</span>;
<a name="l01543"></a>01543 
<a name="l01544"></a>01544 <span class="preprocessor">        #ifdef TIXML_USE_STL</span>
<a name="l01545"></a>01545 <span class="preprocessor"></span>        TiXmlHandle FirstChild( <span class="keyword">const</span> std::string&amp; _value )<span class="keyword"> const                               </span>{ <span class="keywordflow">return</span> FirstChild( _value.c_str() ); }
<a name="l01546"></a>01546         TiXmlHandle FirstChildElement( <span class="keyword">const</span> std::string&amp; _value )<span class="keyword"> const                </span>{ <span class="keywordflow">return</span> FirstChildElement( _value.c_str() ); }
<a name="l01547"></a>01547 
<a name="l01548"></a>01548         TiXmlHandle Child( <span class="keyword">const</span> std::string&amp; _value, <span class="keywordtype">int</span> index )<span class="keyword"> const                 </span>{ <span class="keywordflow">return</span> Child( _value.c_str(), index ); }
<a name="l01549"></a>01549         TiXmlHandle ChildElement( <span class="keyword">const</span> std::string&amp; _value, <span class="keywordtype">int</span> index )<span class="keyword"> const  </span>{ <span class="keywordflow">return</span> ChildElement( _value.c_str(), index ); }
<a name="l01550"></a>01550 <span class="preprocessor">        #endif</span>
<a name="l01551"></a>01551 <span class="preprocessor"></span>
<a name="l01553"></a><a class="code" href="classTelEngine_1_1TiXmlHandle.html#8ee8431ed0e64eff7e87071c3e104328">01553</a>         <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>* <a class="code" href="classTelEngine_1_1TiXmlHandle.html#8ee8431ed0e64eff7e87071c3e104328" title="Return the handle as a TiXmlNode. This may return null.">Node</a>()<span class="keyword"> const                 </span>{ <span class="keywordflow">return</span> node; } 
<a name="l01555"></a><a class="code" href="classTelEngine_1_1TiXmlHandle.html#7861a8552c191f4ddd9a22487126bb18">01555</a>         <a class="code" href="classTelEngine_1_1TiXmlElement.html">TiXmlElement</a>* <a class="code" href="classTelEngine_1_1TiXmlHandle.html#7861a8552c191f4ddd9a22487126bb18" title="Return the handle as a TiXmlElement. This may return null.">Element</a>()<span class="keyword"> const   </span>{ <span class="keywordflow">return</span> ( ( node &amp;&amp; node-&gt;ToElement() ) ? node-&gt;ToElement() : 0 ); }
<a name="l01557"></a><a class="code" href="classTelEngine_1_1TiXmlHandle.html#3020aa52e43b2640bc34b4d4550a4586">01557</a>         <a class="code" href="classTelEngine_1_1TiXmlText.html">TiXmlText</a>* <a class="code" href="classTelEngine_1_1TiXmlHandle.html#3020aa52e43b2640bc34b4d4550a4586" title="Return the handle as a TiXmlText. This may return null.">Text</a>()<span class="keyword"> const                 </span>{ <span class="keywordflow">return</span> ( ( node &amp;&amp; node-&gt;ToText() ) ? node-&gt;ToText() : 0 ); }
<a name="l01559"></a><a class="code" href="classTelEngine_1_1TiXmlHandle.html#8ebe774896d89376917b91a9adec1719">01559</a>         <a class="code" href="classTelEngine_1_1TiXmlUnknown.html">TiXmlUnknown</a>* <a class="code" href="classTelEngine_1_1TiXmlHandle.html#8ebe774896d89376917b91a9adec1719" title="Return the handle as a TiXmlUnknown. This may return null;.">Unknown</a>()<span class="keyword"> const                   </span>{ <span class="keywordflow">return</span> ( ( node &amp;&amp; node-&gt;ToUnknown() ) ? node-&gt;ToUnknown() : 0 ); }
<a name="l01560"></a>01560 
<a name="l01561"></a>01561 <span class="keyword">private</span>:
<a name="l01562"></a>01562         <a class="code" href="classTelEngine_1_1TiXmlNode.html">TiXmlNode</a>* node;
<a name="l01563"></a>01563 };
<a name="l01564"></a>01564 
<a name="l01565"></a>01565 <span class="keyword">class </span>YXML_API TiXmlParsingData
<a name="l01566"></a>01566 {
<a name="l01567"></a>01567         <span class="keyword">friend</span> <span class="keyword">class </span>TiXmlDocument;
<a name="l01568"></a>01568   <span class="keyword">public</span>:
<a name="l01569"></a>01569         <span class="keywordtype">void</span> Stamp( <span class="keyword">const</span> <span class="keywordtype">char</span>* now, TiXmlEncoding encoding );
<a name="l01570"></a>01570 
<a name="l01571"></a>01571         <span class="keyword">const</span> TiXmlCursor&amp; Cursor()     { <span class="keywordflow">return</span> cursor; }
<a name="l01572"></a>01572 
<a name="l01573"></a>01573   <span class="keyword">private</span>:
<a name="l01574"></a>01574         <span class="comment">// Only used by the document!</span>
<a name="l01575"></a>01575         TiXmlParsingData( <span class="keyword">const</span> <span class="keywordtype">char</span>* start, <span class="keywordtype">int</span> _tabsize, <span class="keywordtype">int</span> row, <span class="keywordtype">int</span> col )
<a name="l01576"></a>01576         {
<a name="l01577"></a>01577                 assert( start );
<a name="l01578"></a>01578                 stamp = start;
<a name="l01579"></a>01579                 tabsize = _tabsize;
<a name="l01580"></a>01580                 cursor.row = row;
<a name="l01581"></a>01581                 cursor.col = col;
<a name="l01582"></a>01582         }
<a name="l01583"></a>01583 
<a name="l01584"></a>01584         TiXmlCursor             cursor;
<a name="l01585"></a>01585         <span class="keyword">const</span> <span class="keywordtype">char</span>*             stamp;
<a name="l01586"></a>01586         <span class="keywordtype">int</span>                             tabsize;
<a name="l01587"></a>01587 };
<a name="l01588"></a>01588 
<a name="l01589"></a>01589 }; <span class="comment">// TelEngine namespace</span>
<a name="l01590"></a>01590 
<a name="l01591"></a>01591 <span class="preprocessor">#ifdef _MSC_VER</span>
<a name="l01592"></a>01592 <span class="preprocessor"></span><span class="preprocessor">#pragma warning( pop )</span>
<a name="l01593"></a>01593 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l01594"></a>01594 <span class="preprocessor"></span>
<a name="l01595"></a>01595 <span class="preprocessor">#endif</span>
<a name="l01596"></a>01596 <span class="preprocessor"></span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Dec 7 21:36:10 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>