⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 classtixmlattribute.html

📁 XML解析器
💻 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>TiXmlAttribute 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> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; </center><hr><h1>TiXmlAttribute  Class Reference</h1>An attribute is a name-value pair. <a href="#_details">More...</a><p><code>#include &lt;<a class="el" href="tinyxml_8h-source.html">tinyxml.h</a>&gt;</code><p><p>Inheritance diagram for TiXmlAttribute::<p><center><img src="classTiXmlAttribute.gif" usemap="#TiXmlAttribute_map" border="0"></center><map name="TiXmlAttribute_map"><area href="classTiXmlBase.html" alt="TiXmlBase" shape="rect" coords="0,0,90,24"></map><a href="classTiXmlAttribute-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="TiXmlAttribute::TiXmlAttribute"></a>&nbsp;</td><td valign=bottom><a class="el" href="classTiXmlAttribute.html#a0">TiXmlAttribute</a> ()</td></tr><tr><td>&nbsp;</td><td><font size=-1><em>Construct an empty attribute.</em></font><br><br></td></tr><tr><td nowrap align=right valign=top><a name="a1" doxytag="TiXmlAttribute::TiXmlAttribute"></a>&nbsp;</td><td valign=bottom><a class="el" href="classTiXmlAttribute.html#a1">TiXmlAttribute</a> (const std::string &amp;_name, const std::string &amp;_value)</td></tr><tr><td>&nbsp;</td><td><font size=-1><em>std::string constructor.</em></font><br><br></td></tr><tr><td nowrap align=right valign=top><a name="a2" doxytag="TiXmlAttribute::TiXmlAttribute"></a>&nbsp;</td><td valign=bottom><a class="el" href="classTiXmlAttribute.html#a2">TiXmlAttribute</a> (const char *_name, const char *_value)</td></tr><tr><td>&nbsp;</td><td><font size=-1><em>Construct an attribute with a name and value.</em></font><br><br></td></tr><tr><td nowrap align=right valign=top><a name="a3" doxytag="TiXmlAttribute::Name"></a>const char *&nbsp;</td><td valign=bottom><a class="el" href="classTiXmlAttribute.html#a3">Name</a> () const</td></tr><tr><td>&nbsp;</td><td><font size=-1><em>Return the name of this attribute.</em></font><br><br></td></tr><tr><td nowrap align=right valign=top><a name="a4" doxytag="TiXmlAttribute::Value"></a>const char *&nbsp;</td><td valign=bottom><a class="el" href="classTiXmlAttribute.html#a4">Value</a> () const</td></tr><tr><td>&nbsp;</td><td><font size=-1><em>Return the value of this attribute.</em></font><br><br></td></tr><tr><td nowrap align=right valign=top><a name="a5" doxytag="TiXmlAttribute::IntValue"></a>const int&nbsp;</td><td valign=bottom><a class="el" href="classTiXmlAttribute.html#a5">IntValue</a> () const</td></tr><tr><td>&nbsp;</td><td><font size=-1><em>Return the value of this attribute, converted to an integer.</em></font><br><br></td></tr><tr><td nowrap align=right valign=top><a name="a6" doxytag="TiXmlAttribute::DoubleValue"></a>const double&nbsp;</td><td valign=bottom><a class="el" href="classTiXmlAttribute.html#a6">DoubleValue</a> () const</td></tr><tr><td>&nbsp;</td><td><font size=-1><em>Return the value of this attribute, converted to a double.</em></font><br><br></td></tr><tr><td nowrap align=right valign=top><a name="a7" doxytag="TiXmlAttribute::SetName"></a>void&nbsp;</td><td valign=bottom><a class="el" href="classTiXmlAttribute.html#a7">SetName</a> (const char *_name)</td></tr><tr><td>&nbsp;</td><td><font size=-1><em>Set the name of this attribute.</em></font><br><br></td></tr><tr><td nowrap align=right valign=top><a name="a8" doxytag="TiXmlAttribute::SetValue"></a>void&nbsp;</td><td valign=bottom><a class="el" href="classTiXmlAttribute.html#a8">SetValue</a> (const char *_value)</td></tr><tr><td>&nbsp;</td><td><font size=-1><em>Set the value.</em></font><br><br></td></tr><tr><td nowrap align=right valign=top><a name="a9" doxytag="TiXmlAttribute::SetIntValue"></a>void&nbsp;</td><td valign=bottom><a class="el" href="classTiXmlAttribute.html#a9">SetIntValue</a> (int value)</td></tr><tr><td>&nbsp;</td><td><font size=-1><em>Set the value from an integer.</em></font><br><br></td></tr><tr><td nowrap align=right valign=top><a name="a10" doxytag="TiXmlAttribute::SetDoubleValue"></a>void&nbsp;</td><td valign=bottom><a class="el" href="classTiXmlAttribute.html#a10">SetDoubleValue</a> (double value)</td></tr><tr><td>&nbsp;</td><td><font size=-1><em>Set the value from a double.</em></font><br><br></td></tr><tr><td nowrap align=right valign=top><a name="a11" doxytag="TiXmlAttribute::SetName"></a>void&nbsp;</td><td valign=bottom><a class="el" href="classTiXmlAttribute.html#a11">SetName</a> (const std::string &amp;_name)</td></tr><tr><td>&nbsp;</td><td><font size=-1><em>STL std::string form.</em></font><br><br></td></tr><tr><td nowrap align=right valign=top><a name="a12" doxytag="TiXmlAttribute::SetValue"></a>void&nbsp;</td><td valign=bottom><a class="el" href="classTiXmlAttribute.html#a12">SetValue</a> (const std::string &amp;_value)</td></tr><tr><td>&nbsp;</td><td><font size=-1><em>STL std::string form.</em></font><br><br></td></tr><tr><td nowrap align=right valign=top><a name="a13" doxytag="TiXmlAttribute::Next"></a>TiXmlAttribute *&nbsp;</td><td valign=bottom><a class="el" href="classTiXmlAttribute.html#a13">Next</a> () const</td></tr><tr><td>&nbsp;</td><td><font size=-1><em>Get the next sibling attribute in the DOM. Returns null at end.</em></font><br><br></td></tr><tr><td nowrap align=right valign=top><a name="a14" doxytag="TiXmlAttribute::Previous"></a>TiXmlAttribute *&nbsp;</td><td valign=bottom><a class="el" href="classTiXmlAttribute.html#a14">Previous</a> () const</td></tr><tr><td>&nbsp;</td><td><font size=-1><em>Get the previous sibling attribute in the DOM. Returns null at beginning.</em></font><br><br></td></tr><tr><td nowrap align=right valign=top>virtual void&nbsp;</td><td valign=bottom><a class="el" href="classTiXmlAttribute.html#a19">Print</a> (FILE *cfile, int depth) const</td></tr><tr><td>&nbsp;</td><td><font size=-1><em>All TinyXml classes can print themselves to a filestream.</em> <a href="#a19">More...</a><em></em></font><br><br></td></tr></table><hr><a name="_details"></a><h2>Detailed Description</h2>An attribute is a name-value pair.<p>Elements have an arbitrary number of attributes, each with a unique name.<p><dl compact><dt><b>Note: </b><dd>The attributes are not TiXmlNodes, since they are not part of the tinyXML document object model. There are other suggested ways to look at this problem.</dl><dl compact><dt><b>Note: </b><dd>Attributes have a parent </dl><p><hr><h2>Member Function Documentation</h2><a name="a19" doxytag="TiXmlAttribute::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 TiXmlAttribute::Print </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">FILE *&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>cfile</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>int&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>depth</em></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</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>      &nbsp;    </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 &lt;&lt; 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>, &copy;&nbsp;1997-2001</small></address></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -