📄 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><!-- 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>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.png" usemap="#TiXmlDeclaration_map" border="0" alt=""></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></td></tr><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"></a> </td><td valign=bottom><a class="el" href="classTiXmlDeclaration.html#a2">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="a6" doxytag="TiXmlDeclaration::Version"></a>const char * </td><td valign=bottom><a class="el" href="classTiXmlDeclaration.html#a6">Version</a> () const</td></tr><tr><td> </td><td><font size=-1><em>Version. Will return an empty string if none was found.</em></font><br><br></td></tr><tr><td nowrap align=right valign=top><a name="a7" doxytag="TiXmlDeclaration::Encoding"></a>const char * </td><td valign=bottom><a class="el" href="classTiXmlDeclaration.html#a7">Encoding</a> () const</td></tr><tr><td> </td><td><font size=-1><em>Encoding. Will return an empty string if none was found.</em></font><br><br></td></tr><tr><td nowrap align=right valign=top><a name="a8" doxytag="TiXmlDeclaration::Standalone"></a>const char * </td><td valign=bottom><a class="el" href="classTiXmlDeclaration.html#a8">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><a name="a9" doxytag="TiXmlDeclaration::Clone"></a>virtual <a class="el" href="classTiXmlNode.html">TiXmlNode</a> * </td><td valign=bottom><a class="el" href="classTiXmlDeclaration.html#a9">Clone</a> () const</td></tr><tr><td> </td><td><font size=-1><em>Creates a copy of this Declaration and returns it.</em></font><br><br></td></tr><tr><td nowrap align=right valign=top><a name="a10" doxytag="TiXmlDeclaration::Print"></a>virtual void </td><td valign=bottom><a class="el" href="classTiXmlDeclaration.html#a10">Print</a> (FILE *cfile, int depth) const</td></tr><tr><td> </td><td><font size=-1><em>Print this declaration to a FILE stream.</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>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 + -