| 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>TiXmlElement 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>TiXmlElement Class Reference</h1>The element is a container class. |
| 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 TiXmlElement:: |
| 15 |
<p><center><img src="classTiXmlElement.gif" usemap="#TiXmlElement_map" border="0"></center> |
| 16 |
<map name="TiXmlElement_map"> |
| 17 |
<area href="classTiXmlNode.html" alt="TiXmlNode" shape="rect" coords="0,56,87,80"> |
| 18 |
<area href="classTiXmlBase.html" alt="TiXmlBase" shape="rect" coords="0,0,87,24"> |
| 19 |
</map> |
| 20 |
<a href="classTiXmlElement-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0> |
| 21 |
<tr><td colspan=2><br><h2>Public Methods</h2></td></tr> |
| 22 |
<tr><td nowrap align=right valign=top><a name="a0" doxytag="TiXmlElement::TiXmlElement"></a> |
| 23 |
</td><td valign=bottom><a class="el" href="classTiXmlElement.html#a0">TiXmlElement</a> (const std::string &value)</td></tr> |
| 24 |
<tr><td> </td><td><font size=-1><em>Construct an element.</em></font><br><br></td></tr> |
| 25 |
<tr><td nowrap align=right valign=top><a name="a2" doxytag="TiXmlElement::Attribute"></a> |
| 26 |
const std::string * </td><td valign=bottom><a class="el" href="classTiXmlElement.html#a2">Attribute</a> (const std::string &name) const</td></tr> |
| 27 |
<tr><td> </td><td><font size=-1><em>Given an attribute name, attribute returns the value for the attribute of that name, or null if none exists.</em></font><br><br></td></tr> |
| 28 |
<tr><td nowrap align=right valign=top><a name="a3" doxytag="TiXmlElement::Attribute"></a> |
| 29 |
const std::string * </td><td valign=bottom><a class="el" href="classTiXmlElement.html#a3">Attribute</a> (const std::string &name, int *i) const</td></tr> |
| 30 |
<tr><td> </td><td><font size=-1><em>Given an attribute name, attribute returns the value for the attribute of that name, or null if none exists.</em></font><br><br></td></tr> |
| 31 |
<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classTiXmlElement.html#a4">SetAttribute</a> (const std::string &name, const std::string &value)</td></tr> |
| 32 |
<tr><td> </td><td><font size=-1><em>Sets an attribute of name to a given value.</em> <a href="#a4">More...</a><em></em></font><br><br></td></tr> |
| 33 |
<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classTiXmlElement.html#a5">SetAttribute</a> (const std::string &name, int value)</td></tr> |
| 34 |
<tr><td> </td><td><font size=-1><em>Sets an attribute of name to a given value.</em> <a href="#a5">More...</a><em></em></font><br><br></td></tr> |
| 35 |
<tr><td nowrap align=right valign=top><a name="a6" doxytag="TiXmlElement::RemoveAttribute"></a> |
| 36 |
void </td><td valign=bottom><a class="el" href="classTiXmlElement.html#a6">RemoveAttribute</a> (const std::string &name)</td></tr> |
| 37 |
<tr><td> </td><td><font size=-1><em>Deletes an attribute with the given name.</em></font><br><br></td></tr> |
| 38 |
<tr><td nowrap align=right valign=top><a name="a7" doxytag="TiXmlElement::FirstAttribute"></a> |
| 39 |
<a class="el" href="classTiXmlAttribute.html">TiXmlAttribute</a> * </td><td valign=bottom><a class="el" href="classTiXmlElement.html#a7">FirstAttribute</a> ()</td></tr> |
| 40 |
<tr><td> </td><td><font size=-1><em>Access the first attribute in this element.</em></font><br><br></td></tr> |
| 41 |
<tr><td nowrap align=right valign=top><a name="a8" doxytag="TiXmlElement::LastAttribute"></a> |
| 42 |
<a class="el" href="classTiXmlAttribute.html">TiXmlAttribute</a> * </td><td valign=bottom><a class="el" href="classTiXmlElement.html#a8">LastAttribute</a> ()</td></tr> |
| 43 |
<tr><td> </td><td><font size=-1><em>Access the last attribute in this element.</em></font><br><br></td></tr> |
| 44 |
</table> |
| 45 |
<hr><a name="_details"></a><h2>Detailed Description</h2> |
| 46 |
The element is a container class. |
| 47 |
<p> |
| 48 |
It has a value, the element name, and can contain other elements, text, comments, and unknowns. Elements also contain an arbitrary number of attributes. |
| 49 |
<p> |
| 50 |
<hr><h2>Member Function Documentation</h2> |
| 51 |
<a name="a5" doxytag="TiXmlElement::SetAttribute"></a><p> |
| 52 |
<table width="100%" cellpadding="2" cellspacing="0" border="0"> |
| 53 |
<tr> |
| 54 |
<td class="md"> |
| 55 |
<table cellpadding="0" cellspacing="0" border="0"> |
| 56 |
<tr> |
| 57 |
<td class="md" nowrap valign="top"> void TiXmlElement::SetAttribute </td> |
| 58 |
<td class="md">( </td> |
| 59 |
<td class="md">const std::string &</td> |
| 60 |
<td class="mdname"> <em>name</em>, </td> |
| 61 |
</tr> |
| 62 |
<tr> |
| 63 |
<td></td> |
| 64 |
<td></td> |
| 65 |
<td class="md">int</td> |
| 66 |
<td class="mdname"> <em>value</em></td> |
| 67 |
</tr> |
| 68 |
<tr> |
| 69 |
<td></td> |
| 70 |
<td class="md">) </td> |
| 71 |
<td class="md" colspan="2"></td> |
| 72 |
</tr> |
| 73 |
|
| 74 |
</table> |
| 75 |
</td> |
| 76 |
</tr> |
| 77 |
</table> |
| 78 |
<table cellspacing=5 cellpadding=0 border=0> |
| 79 |
<tr> |
| 80 |
<td> |
| 81 |
|
| 82 |
</td> |
| 83 |
<td> |
| 84 |
|
| 85 |
<p> |
| 86 |
Sets an attribute of name to a given value. |
| 87 |
<p> |
| 88 |
The attribute will be created if it does not exist, or changed if it does. </td> |
| 89 |
</tr> |
| 90 |
</table> |
| 91 |
<a name="a4" doxytag="TiXmlElement::SetAttribute"></a><p> |
| 92 |
<table width="100%" cellpadding="2" cellspacing="0" border="0"> |
| 93 |
<tr> |
| 94 |
<td class="md"> |
| 95 |
<table cellpadding="0" cellspacing="0" border="0"> |
| 96 |
<tr> |
| 97 |
<td class="md" nowrap valign="top"> void TiXmlElement::SetAttribute </td> |
| 98 |
<td class="md">( </td> |
| 99 |
<td class="md">const std::string &</td> |
| 100 |
<td class="mdname"> <em>name</em>, </td> |
| 101 |
</tr> |
| 102 |
<tr> |
| 103 |
<td></td> |
| 104 |
<td></td> |
| 105 |
<td class="md">const std::string &</td> |
| 106 |
<td class="mdname"> <em>value</em></td> |
| 107 |
</tr> |
| 108 |
<tr> |
| 109 |
<td></td> |
| 110 |
<td class="md">) </td> |
| 111 |
<td class="md" colspan="2"></td> |
| 112 |
</tr> |
| 113 |
|
| 114 |
</table> |
| 115 |
</td> |
| 116 |
</tr> |
| 117 |
</table> |
| 118 |
<table cellspacing=5 cellpadding=0 border=0> |
| 119 |
<tr> |
| 120 |
<td> |
| 121 |
|
| 122 |
</td> |
| 123 |
<td> |
| 124 |
|
| 125 |
<p> |
| 126 |
Sets an attribute of name to a given value. |
| 127 |
<p> |
| 128 |
The attribute will be created if it does not exist, or changed if it does. </td> |
| 129 |
</tr> |
| 130 |
</table> |
| 131 |
<hr>The documentation for this class was generated from the following file:<ul> |
| 132 |
<li><a class="el" href="tinyxml_8h-source.html">tinyxml.h</a></ul> |
| 133 |
<hr><address><small>Generated at Sun Aug 26 20:37:31 2001 for TinyXml by |
| 134 |
<a href="http://www.doxygen.org/index.html"> |
| 135 |
<img src="doxygen.gif" alt="doxygen" align="middle" border=0 |
| 136 |
width=110 height=53></a>1.2.10 written by <a href="mailto:[email protected]">Dimitri van Heesch</a>, |
| 137 |
© 1997-2001</small></address> |
| 138 |
</body> |
| 139 |
</html> |