📄 classtixmlbase.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>TiXmlBase class Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.2.18 --><center><a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Compound Members</a> </center><hr><h1>TiXmlBase Class Reference</h1>TiXmlBase is a base class for every class in TinyXml. <a href="#_details">More...</a><p><code>#include <<a class="el" href="tinyxml_8h-source.html">tinyxml.h</a>></code><p><p>Inheritance diagram for TiXmlBase:<p><center><img src="classTiXmlBase.png" usemap="#TiXmlBase_map" border="0" alt=""></center><map name="TiXmlBase_map"><area href="classTiXmlAttribute.html" alt="TiXmlAttribute" shape="rect" coords="0,56,108,80"><area href="classTiXmlNode.html" alt="TiXmlNode" shape="rect" coords="295,56,403,80"><area href="classTiXmlComment.html" alt="TiXmlComment" shape="rect" coords="0,112,108,136"><area href="classTiXmlDeclaration.html" alt="TiXmlDeclaration" shape="rect" coords="118,112,226,136"><area href="classTiXmlDocument.html" alt="TiXmlDocument" shape="rect" coords="236,112,344,136"><area href="classTiXmlElement.html" alt="TiXmlElement" shape="rect" coords="354,112,462,136"><area href="classTiXmlText.html" alt="TiXmlText" shape="rect" coords="472,112,580,136"><area href="classTiXmlUnknown.html" alt="TiXmlUnknown" shape="rect" coords="590,112,698,136"></map><a href="classTiXmlBase-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0><tr><td></td></tr><tr><td colspan=2><br><h2>Public Methods</h2></td></tr><tr><td nowrap align=right valign=top>virtual void </td><td valign=bottom><a class="el" href="classTiXmlBase.html#a2">Print</a> (FILE *cfile, int depth) const=0</td></tr><tr><td> </td><td><font size=-1><em>All TinyXml classes can print themselves to a filestream.</em> <a href="#a2"></a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top>int </td><td valign=bottom><a class="el" href="classTiXmlBase.html#a3">Row</a> () const</td></tr><tr><td> </td><td><font size=-1><em>Return the position, in the original source file, of this node or attribute.</em> <a href="#a3"></a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top><a name="a4" doxytag="TiXmlBase::Column"></a>int </td><td valign=bottom><a class="el" href="classTiXmlBase.html#a4">Column</a> () const</td></tr><tr><td> </td><td><font size=-1><em>See <a class="el" href="classTiXmlBase.html#a3">Row()</a>.</em></font><br><br></td></tr><tr><td colspan=2><br><h2>Static Public Methods</h2></td></tr><tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classTiXmlBase.html#d0">SetCondenseWhiteSpace</a> (bool condense)</td></tr><tr><td> </td><td><font size=-1><em>The world does not agree on whether white space should be kept or not.</em> <a href="#d0"></a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top><a name="d1" doxytag="TiXmlBase::IsWhiteSpaceCondensed"></a>bool </td><td valign=bottom><a class="el" href="classTiXmlBase.html#d1">IsWhiteSpaceCondensed</a> ()</td></tr><tr><td> </td><td><font size=-1><em>Return the current white space setting.</em></font><br><br></td></tr><tr><td colspan=2><br><h2>Protected Attributes</h2></td></tr><tr><td nowrap align=right valign=top><a name="n1" doxytag="TiXmlBase::userData"></a>void * </td><td valign=bottom><a class="el" href="classTiXmlBase.html#n1">userData</a></td></tr><tr><td> </td><td><font size=-1><em>Field containing a generic user pointer.</em></font><br><br></td></tr></table><hr><a name="_details"></a><h2>Detailed Description</h2>TiXmlBase is a base class for every class in TinyXml.<p>It does little except to establish that TinyXml classes can be printed and provide some utility functions.<p>In XML, the document and elements can contain other elements and other types of nodes.<p><div class="fragment"><pre> A Document can contain: Element (container or leaf) Comment (leaf) Unknown (leaf) Declaration( leaf ) An Element can contain: Element (container or leaf) Text (leaf) Attributes (not on tree) Comment (leaf) Unknown (leaf) A Decleration contains: Attributes (not on tree) </pre></div> <p><hr><h2>Member Function Documentation</h2><a name="a2" doxytag="TiXmlBase::Print"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> virtual void TiXmlBase::Print </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">FILE * </td> <td class="mdname" nowrap> <em>cfile</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>depth</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"> const<code> [pure virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>All TinyXml classes can print themselves to a filestream.<p>This is a formatted print, and will insert tabs and newlines.<p>(For an unformatted stream, use the << operator.) <p>Implemented in <a class="el" href="classTiXmlAttribute.html#a21">TiXmlAttribute</a>, <a class="el" href="classTiXmlElement.html#a25">TiXmlElement</a>, <a class="el" href="classTiXmlComment.html#a5">TiXmlComment</a>, <a class="el" href="classTiXmlText.html#a5">TiXmlText</a>, <a class="el" href="classTiXmlDeclaration.html#a10">TiXmlDeclaration</a>, <a class="el" href="classTiXmlUnknown.html#a5">TiXmlUnknown</a>, and <a class="el" href="classTiXmlDocument.html#a23">TiXmlDocument</a>. </td> </tr></table><a name="a3" doxytag="TiXmlBase::Row"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> int TiXmlBase::Row </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const<code> [inline]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Return the position, in the original source file, of this node or attribute.<p>The row and column are 1-based. (That is the first row and first column is 1,1). If the returns values are 0 or less, then the parser does not have a row and column value.<p>Generally, the row and column value will be set when the TiXmlDocument::Load(), <a class="el" href="classTiXmlDocument.html#a6">TiXmlDocument::LoadFile()</a>, or any TiXmlNode::Parse() is called. It will NOT be set when the DOM was created from operator>>.<p>The values reflect the initial load. Once the DOM is modified programmatically (by adding or changing nodes and attributes) the new values will NOT update to reflect changes in the document.<p>There is a minor performance cost to computing the row and column. Computation can be disabled if <a class="el" href="classTiXmlDocument.html#a19">TiXmlDocument::SetTabSize()</a> is called with 0 as the value.<p><dl compact><dt><b>See also: </b></dt><dd><a class="el" href="classTiXmlDocument.html#a19">TiXmlDocument::SetTabSize()</a> </dl> </td> </tr></table><a name="d0" doxytag="TiXmlBase::SetCondenseWhiteSpace"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void TiXmlBase::SetCondenseWhiteSpace </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">bool </td> <td class="mdname1" valign="top" nowrap> <em>condense</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [inline, static]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>The world does not agree on whether white space should be kept or not.<p>In order to make everyone happy, these global, static functions are provided to set whether or not TinyXml will condense all white space into a single space or not. The default is to condense. Note changing this values is not thread safe. </td> </tr></table><hr>The documentation for this class was generated from the following file:<ul><li><a class="el" href="tinyxml_8h-source.html">tinyxml.h</a></ul><hr><address style="align: right;"><small>Generated on Sun Aug 1 12:06:34 2004 for TinyXml by<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.18 </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -