📄 classtixmldeclaration.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>TiXmlDeclaration 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>TiXmlDeclaration Class Reference</h1>In correct XML the declaration is the first entry in the file. <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 TiXmlDeclaration::<p><center><img src="classTiXmlDeclaration.gif" usemap="#TiXmlDeclaration_map" border="0"></center><map name="TiXmlDeclaration_map"><area href="classTiXmlNode.html" alt="TiXmlNode" shape="rect" coords="0,56,108,80"><area href="classTiXmlBase.html" alt="TiXmlBase" shape="rect" coords="0,0,108,24"></map><a href="classTiXmlDeclaration-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><a name="a0" doxytag="TiXmlDeclaration::TiXmlDeclaration"></a> </td><td valign=bottom><a class="el" href="classTiXmlDeclaration.html#a0">TiXmlDeclaration</a> ()</td></tr><tr><td> </td><td><font size=-1><em>Construct an empty declaration.</em></font><br><br></td></tr><tr><td nowrap align=right valign=top><a name="a1" doxytag="TiXmlDeclaration::TiXmlDeclaration"></a> </td><td valign=bottom><a class="el" href="classTiXmlDeclaration.html#a1">TiXmlDeclaration</a> (const std::string &_version, const std::string &_encoding, const std::string &_standalone)</td></tr><tr><td> </td><td><font size=-1><em>Constructor.</em></font><br><br></td></tr><tr><td nowrap align=right valign=top><a name="a2" doxytag="TiXmlDeclaration::TiXmlDeclaration::TiXmlDeclaration"></a> </td><td valign=bottom><a class="el" href="classTiXmlDeclaration.html#a2">TiXmlDeclaration::TiXmlDeclaration</a> (const char *_version, const char *_encoding, const char *_standalone)</td></tr><tr><td> </td><td><font size=-1><em>Construct.</em></font><br><br></td></tr><tr><td nowrap align=right valign=top><a name="a4" doxytag="TiXmlDeclaration::Version"></a>const char * </td><td valign=bottom><a class="el" href="classTiXmlDeclaration.html#a4">Version</a> () const</td></tr><tr><td> </td><td><font size=-1><em>Version. Will return empty if none was found.</em></font><br><br></td></tr><tr><td nowrap align=right valign=top><a name="a5" doxytag="TiXmlDeclaration::Encoding"></a>const char * </td><td valign=bottom><a class="el" href="classTiXmlDeclaration.html#a5">Encoding</a> () const</td></tr><tr><td> </td><td><font size=-1><em>Encoding. Will return empty if none was found.</em></font><br><br></td></tr><tr><td nowrap align=right valign=top><a name="a6" doxytag="TiXmlDeclaration::Standalone"></a>const char * </td><td valign=bottom><a class="el" href="classTiXmlDeclaration.html#a6">Standalone</a> () const</td></tr><tr><td> </td><td><font size=-1><em>Is this a standalone document?</em></font><br><br></td></tr><tr><td nowrap align=right valign=top>virtual void </td><td valign=bottom><a class="el" href="classTiXmlDeclaration.html#a8">Print</a> (FILE *cfile, int depth) const</td></tr><tr><td> </td><td><font size=-1><em>All TinyXml classes can print themselves to a filestream.</em> <a href="#a8">More...</a><em></em></font><br><br></td></tr></table><hr><a name="_details"></a><h2>Detailed Description</h2>In correct XML the declaration is the first entry in the file.<p><div class="fragment"><pre> <?xml version="1.0" standalone="yes"?> </pre></div><p>TinyXml will happily read or write files without a declaration, however. There are 3 possible attributes to the declaration: version, encoding, and standalone.<p>Note: In this version of the code, the attributes are handled as special cases, not generic attributes, simply because there can only be at most 3 and they are always the same. <p><hr><h2>Member Function Documentation</h2><a name="a8" doxytag="TiXmlDeclaration::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 TiXmlDeclaration::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> [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 from <a class="el" href="classTiXmlBase.html#a2">TiXmlBase</a>. </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 + -