File: classTiXmlElement.html

package info (click to toggle)
criticalmass 1%3A1.0.2-4
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 17,188 kB
  • sloc: ansic: 47,628; cpp: 25,201; sh: 11,834; xml: 3,532; perl: 3,271; makefile: 610; python: 72; awk: 40; lisp: 33
file content (139 lines) | stat: -rw-r--r-- 7,235 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<!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>TiXmlElement class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body bgcolor="#ffffff">
<!-- Generated by Doxygen 1.2.10 -->
<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>TiXmlElement  Class Reference</h1>The element is a container class. 
<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 TiXmlElement::
<p><center><img src="classTiXmlElement.gif" usemap="#TiXmlElement_map" border="0"></center>
<map name="TiXmlElement_map">
<area href="classTiXmlNode.html" alt="TiXmlNode" shape="rect" coords="0,56,87,80">
<area href="classTiXmlBase.html" alt="TiXmlBase" shape="rect" coords="0,0,87,24">
</map>
<a href="classTiXmlElement-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="TiXmlElement::TiXmlElement"></a>
&nbsp;</td><td valign=bottom><a class="el" href="classTiXmlElement.html#a0">TiXmlElement</a> (const std::string &amp;value)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Construct an element.</em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a name="a2" doxytag="TiXmlElement::Attribute"></a>
const std::string *&nbsp;</td><td valign=bottom><a class="el" href="classTiXmlElement.html#a2">Attribute</a> (const std::string &amp;name) const</td></tr>
<tr><td>&nbsp;</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>
<tr><td nowrap align=right valign=top><a name="a3" doxytag="TiXmlElement::Attribute"></a>
const std::string *&nbsp;</td><td valign=bottom><a class="el" href="classTiXmlElement.html#a3">Attribute</a> (const std::string &amp;name, int *i) const</td></tr>
<tr><td>&nbsp;</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>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classTiXmlElement.html#a4">SetAttribute</a> (const std::string &amp;name, const std::string &amp;value)</td></tr>
<tr><td>&nbsp;</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>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classTiXmlElement.html#a5">SetAttribute</a> (const std::string &amp;name, int value)</td></tr>
<tr><td>&nbsp;</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>
<tr><td nowrap align=right valign=top><a name="a6" doxytag="TiXmlElement::RemoveAttribute"></a>
void&nbsp;</td><td valign=bottom><a class="el" href="classTiXmlElement.html#a6">RemoveAttribute</a> (const std::string &amp;name)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Deletes an attribute with the given name.</em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a name="a7" doxytag="TiXmlElement::FirstAttribute"></a>
<a class="el" href="classTiXmlAttribute.html">TiXmlAttribute</a> *&nbsp;</td><td valign=bottom><a class="el" href="classTiXmlElement.html#a7">FirstAttribute</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Access the first attribute in this element.</em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a name="a8" doxytag="TiXmlElement::LastAttribute"></a>
<a class="el" href="classTiXmlAttribute.html">TiXmlAttribute</a> *&nbsp;</td><td valign=bottom><a class="el" href="classTiXmlElement.html#a8">LastAttribute</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Access the last attribute in this element.</em></font><br><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
The element is a container class.
<p>
It has a value, the element name, and can contain other elements, text, comments, and unknowns. Elements also contain an arbitrary number of attributes. 
<p>
<hr><h2>Member Function Documentation</h2>
<a name="a5" doxytag="TiXmlElement::SetAttribute"></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"> void TiXmlElement::SetAttribute </td>
          <td class="md">(&nbsp;</td>
          <td class="md">const std::string &amp;</td>
          <td class="mdname">&nbsp; <em>name</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md">int</td>
          <td class="mdname">&nbsp; <em>value</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sets an attribute of name to a given value.
<p>
The attribute will be created if it does not exist, or changed if it does.     </td>
  </tr>
</table>
<a name="a4" doxytag="TiXmlElement::SetAttribute"></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"> void TiXmlElement::SetAttribute </td>
          <td class="md">(&nbsp;</td>
          <td class="md">const std::string &amp;</td>
          <td class="mdname">&nbsp; <em>name</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md">const std::string &amp;</td>
          <td class="mdname">&nbsp; <em>value</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sets an attribute of name to a given value.
<p>
The attribute will be created if it does not exist, or changed if it does.     </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 at Sun Aug 26 20:37:31 2001 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.10 written by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>,
 &copy;&nbsp;1997-2001</small></address>
</body>
</html>