| 1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
| 2 |
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> |
| 3 |
<title>TiXmlAttribute class Reference</title> |
| 4 |
<link href="doxygen.css" rel="stylesheet" type="text/css"> |
| 5 |
</head><body bgcolor="#ffffff"> |
| 6 |
<!-- Generated by Doxygen 1.2.10 --> |
| 7 |
<center> |
| 8 |
<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> |
| 9 |
<hr><h1>TiXmlAttribute Class Reference</h1>An attribute is a name-value pair. |
| 10 |
<a href="#_details">More...</a> |
| 11 |
<p> |
| 12 |
<code>#include <<a class="el" href="tinyxml_8h-source.html">tinyxml.h</a>></code> |
| 13 |
<p> |
| 14 |
<p>Inheritance diagram for TiXmlAttribute:: |
| 15 |
<p><center><img src="classTiXmlAttribute.gif" usemap="#TiXmlAttribute_map" border="0"></center> |
| 16 |
<map name="TiXmlAttribute_map"> |
| 17 |
<area href="classTiXmlBase.html" alt="TiXmlBase" shape="rect" coords="0,0,90,24"> |
| 18 |
</map> |
| 19 |
<a href="classTiXmlAttribute-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0> |
| 20 |
<tr><td colspan=2><br><h2>Public Methods</h2></td></tr> |
| 21 |
<tr><td nowrap align=right valign=top><a name="a0" doxytag="TiXmlAttribute::TiXmlAttribute"></a> |
| 22 |
</td><td valign=bottom><a class="el" href="classTiXmlAttribute.html#a0">TiXmlAttribute</a> ()</td></tr> |
| 23 |
<tr><td> </td><td><font size=-1><em>Construct an empty attribute.</em></font><br><br></td></tr> |
| 24 |
<tr><td nowrap align=right valign=top><a name="a1" doxytag="TiXmlAttribute::TiXmlAttribute"></a> |
| 25 |
</td><td valign=bottom><a class="el" href="classTiXmlAttribute.html#a1">TiXmlAttribute</a> (const std::string &_name, const std::string &_value)</td></tr> |
| 26 |
<tr><td> </td><td><font size=-1><em>Construct an attribute with a name and value.</em></font><br><br></td></tr> |
| 27 |
<tr><td nowrap align=right valign=top><a name="a2" doxytag="TiXmlAttribute::Name"></a> |
| 28 |
const std::string & </td><td valign=bottom><a class="el" href="classTiXmlAttribute.html#a2">Name</a> () const</td></tr> |
| 29 |
<tr><td> </td><td><font size=-1><em>Return the name of this attribute.</em></font><br><br></td></tr> |
| 30 |
<tr><td nowrap align=right valign=top><a name="a3" doxytag="TiXmlAttribute::Value"></a> |
| 31 |
const std::string & </td><td valign=bottom><a class="el" href="classTiXmlAttribute.html#a3">Value</a> () const</td></tr> |
| 32 |
<tr><td> </td><td><font size=-1><em>Return the value of this attribute.</em></font><br><br></td></tr> |
| 33 |
<tr><td nowrap align=right valign=top><a name="a4" doxytag="TiXmlAttribute::SetName"></a> |
| 34 |
void </td><td valign=bottom><a class="el" href="classTiXmlAttribute.html#a4">SetName</a> (const std::string &_name)</td></tr> |
| 35 |
<tr><td> </td><td><font size=-1><em>Set the name of this attribute.</em></font><br><br></td></tr> |
| 36 |
<tr><td nowrap align=right valign=top><a name="a5" doxytag="TiXmlAttribute::SetValue"></a> |
| 37 |
void </td><td valign=bottom><a class="el" href="classTiXmlAttribute.html#a5">SetValue</a> (const std::string &_value)</td></tr> |
| 38 |
<tr><td> </td><td><font size=-1><em>Set the value.</em></font><br><br></td></tr> |
| 39 |
<tr><td nowrap align=right valign=top><a name="a6" doxytag="TiXmlAttribute::Next"></a> |
| 40 |
TiXmlAttribute * </td><td valign=bottom><a class="el" href="classTiXmlAttribute.html#a6">Next</a> ()</td></tr> |
| 41 |
<tr><td> </td><td><font size=-1><em>Get the next sibling attribute in the DOM. Returns null at end.</em></font><br><br></td></tr> |
| 42 |
<tr><td nowrap align=right valign=top><a name="a7" doxytag="TiXmlAttribute::Previous"></a> |
| 43 |
TiXmlAttribute * </td><td valign=bottom><a class="el" href="classTiXmlAttribute.html#a7">Previous</a> ()</td></tr> |
| 44 |
<tr><td> </td><td><font size=-1><em>Get the previous sibling attribute in the DOM. Returns null at beginning.</em></font><br><br></td></tr> |
| 45 |
</table> |
| 46 |
<hr><a name="_details"></a><h2>Detailed Description</h2> |
| 47 |
An attribute is a name-value pair. |
| 48 |
<p> |
| 49 |
Elements have an arbitrary number of attributes, each with a unique name. |
| 50 |
<p> |
| 51 |
<dl compact><dt><b> |
| 52 |
Note: </b><dd> |
| 53 |
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> |
| 54 |
Note: </b><dd> |
| 55 |
Attributes have a parent </dl> |
| 56 |
<p> |
| 57 |
<hr>The documentation for this class was generated from the following file:<ul> |
| 58 |
<li><a class="el" href="tinyxml_8h-source.html">tinyxml.h</a></ul> |
| 59 |
<hr><address><small>Generated at Sun Aug 26 20:37:31 2001 for TinyXml by |
| 60 |
<a href="http://www.doxygen.org/index.html"> |
| 61 |
<img src="doxygen.gif" alt="doxygen" align="middle" border=0 |
| 62 |
width=110 height=53></a>1.2.10 written by <a href="mailto:[email protected]">Dimitri van Heesch</a>, |
| 63 |
© 1997-2001</small></address> |
| 64 |
</body> |
| 65 |
</html> |