📄 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 bgcolor="#ffffff"><!-- Generated by Doxygen 1.2.11.1 --><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.gif" usemap="#TiXmlBase_map" border="0"></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 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">More...</a><em></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">More...</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>Friends</h2></td></tr><tr><td nowrap align=right valign=top><a name="l0" doxytag="TiXmlBase::TiXmlNode"></a>class </td><td valign=bottom><a class="el" href="classTiXmlNode.html#l0">TiXmlNode</a></td></tr><tr><td nowrap align=right valign=top><a name="l1" doxytag="TiXmlBase::TiXmlElement"></a>class </td><td valign=bottom><a class="el" href="classTiXmlElement.html#l1">TiXmlElement</a></td></tr><tr><td nowrap align=right valign=top><a name="l2" doxytag="TiXmlBase::TiXmlDocument"></a>class </td><td valign=bottom><a class="el" href="classTiXmlDocument.html#l2">TiXmlDocument</a></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>Reimplemented in <a class="el" href="classTiXmlAttribute.html#a19">TiXmlAttribute</a>, <a class="el" href="classTiXmlElement.html#a16">TiXmlElement</a>, <a class="el" href="classTiXmlComment.html#a3">TiXmlComment</a>, <a class="el" href="classTiXmlText.html#a3">TiXmlText</a>, <a class="el" href="classTiXmlDeclaration.html#a8">TiXmlDeclaration</a>, <a class="el" href="classTiXmlUnknown.html#a3">TiXmlUnknown</a>, and <a class="el" href="classTiXmlDocument.html#a17">TiXmlDocument</a>. </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 these 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><small>Generated on Fri Apr 11 23:01:21 2003 for TinyXml by<a href="http://www.doxygen.org/index.html"><img src="doxygen.gif" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.11.1 written by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>, © 1997-2001</small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -