1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
<html xmlns="http://www.w3.org/1999/xhtml">
4
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
5
<title>Ipelib: ipe::XmlAttributes Class Reference</title>
6
<link href="tabs.css" rel="stylesheet" type="text/css"/>
7
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
10
<!-- Generated by Doxygen 1.6.1 -->
11
<div class="navigation" id="top">
14
<li><a href="index.html"><span>Main Page</span></a></li>
15
<li><a href="modules.html"><span>Modules</span></a></li>
16
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
17
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
22
<li><a href="annotated.html"><span>Class List</span></a></li>
23
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
24
<li><a href="functions.html"><span>Class Members</span></a></li>
27
<div class="navpath"><a class="el" href="namespaceipe.html">ipe</a>::<a class="el" href="classipe_1_1_xml_attributes.html">XmlAttributes</a>
30
<div class="contents">
31
<h1>ipe::XmlAttributes Class Reference<br/>
33
[<a class="el" href="group__base.html">Ipe Base</a>]</small>
34
</h1><!-- doxytag: class="ipe::XmlAttributes" -->
35
<p>Stores attributes of an XML tag.
36
<a href="#_details">More...</a></p>
38
<p><code>#include <ipexml.h></code></p>
40
<p><a href="classipe_1_1_xml_attributes-members.html">List of all members.</a></p>
43
<li>typedef Map::const_iterator <a class="el" href="classipe_1_1_xml_attributes.html#a248535c26a7bf16e6328cfb6a2790af4">const_iterator</a>
45
<h2>Public Member Functions</h2>
47
<li><a class="el" href="classipe_1_1_xml_attributes.html#a248535c26a7bf16e6328cfb6a2790af4">const_iterator</a> <a class="el" href="classipe_1_1_xml_attributes.html#a3a8d73974f90f72fb73bdb31c4b9c621">begin</a> () const
48
<li><a class="el" href="classipe_1_1_xml_attributes.html#a248535c26a7bf16e6328cfb6a2790af4">const_iterator</a> <a class="el" href="classipe_1_1_xml_attributes.html#a850a9f1a0cdf233ee91761d9aa116301">end</a> () const
49
<li><a class="el" href="classipe_1_1_xml_attributes.html#ad5b923bee1233b25adb6d59fdc35f839">XmlAttributes</a> ()
50
<li>void <a class="el" href="classipe_1_1_xml_attributes.html#a5602fe7fd576bd4ddfbf58006cfd9190">clear</a> ()
51
<li><a class="el" href="classipe_1_1_string.html">String</a> <a class="el" href="classipe_1_1_xml_attributes.html#a4ef45bc78049f60e12d2d8db6052935e">operator[]</a> (<a class="el" href="classipe_1_1_string.html">String</a> str) const
52
<li>bool <a class="el" href="classipe_1_1_xml_attributes.html#ae3110184d4f5f531ef7262691a46189b">has</a> (<a class="el" href="classipe_1_1_string.html">String</a> str) const
53
<li>bool <a class="el" href="classipe_1_1_xml_attributes.html#a737a5d9887311bfd7df8b41a83fd51e0">has</a> (<a class="el" href="classipe_1_1_string.html">String</a> str, <a class="el" href="classipe_1_1_string.html">String</a> &val) const
54
<li>void <a class="el" href="classipe_1_1_xml_attributes.html#a2638b26f881719640b2c4e89efda6cb3">add</a> (<a class="el" href="classipe_1_1_string.html">String</a> key, <a class="el" href="classipe_1_1_string.html">String</a> val)
55
<li>void <a class="el" href="classipe_1_1_xml_attributes.html#a5e831e7cc1bcb5abdd6f93e90fba511d">setSlash</a> ()
56
<li>bool <a class="el" href="classipe_1_1_xml_attributes.html#a5a2b65ab05f387cffa6fd89f19469d1b">slash</a> () const
58
<hr/><a name="_details"></a><h2>Detailed Description</h2>
59
<p>Stores attributes of an XML tag. </p>
60
<hr/><h2>Member Typedef Documentation</h2>
61
<a class="anchor" id="a248535c26a7bf16e6328cfb6a2790af4"></a><!-- doxytag: member="ipe::XmlAttributes::const_iterator" ref="a248535c26a7bf16e6328cfb6a2790af4" args="" -->
63
<div class="memproto">
64
<table class="memname">
66
<td class="memname">typedef Map::const_iterator <a class="el" href="classipe_1_1_xml_attributes.html#a248535c26a7bf16e6328cfb6a2790af4">ipe::XmlAttributes::const_iterator</a></td>
72
<p>Iterator for (key, value) pairs. </p>
76
<hr/><h2>Constructor & Destructor Documentation</h2>
77
<a class="anchor" id="ad5b923bee1233b25adb6d59fdc35f839"></a><!-- doxytag: member="ipe::XmlAttributes::XmlAttributes" ref="ad5b923bee1233b25adb6d59fdc35f839" args="()" -->
79
<div class="memproto">
80
<table class="memname">
82
<td class="memname">XmlAttributes::XmlAttributes </td>
84
<td class="paramname"></td>
85
<td> ) </td>
92
<p>Constructor for an empty collection. </p>
96
<hr/><h2>Member Function Documentation</h2>
97
<a class="anchor" id="a3a8d73974f90f72fb73bdb31c4b9c621"></a><!-- doxytag: member="ipe::XmlAttributes::begin" ref="a3a8d73974f90f72fb73bdb31c4b9c621" args="() const " -->
99
<div class="memproto">
100
<table class="memname">
102
<td class="memname"><a class="el" href="classipe_1_1_xml_attributes.html#a248535c26a7bf16e6328cfb6a2790af4">const_iterator</a> ipe::XmlAttributes::begin </td>
104
<td class="paramname"></td>
105
<td> ) </td>
106
<td> const<code> [inline]</code></td>
112
<p>Return const iterator for first attribute. </p>
116
<a class="anchor" id="a850a9f1a0cdf233ee91761d9aa116301"></a><!-- doxytag: member="ipe::XmlAttributes::end" ref="a850a9f1a0cdf233ee91761d9aa116301" args="() const " -->
117
<div class="memitem">
118
<div class="memproto">
119
<table class="memname">
121
<td class="memname"><a class="el" href="classipe_1_1_xml_attributes.html#a248535c26a7bf16e6328cfb6a2790af4">const_iterator</a> ipe::XmlAttributes::end </td>
123
<td class="paramname"></td>
124
<td> ) </td>
125
<td> const<code> [inline]</code></td>
131
<p>Return const iterator for end of attributes. </p>
135
<a class="anchor" id="a5602fe7fd576bd4ddfbf58006cfd9190"></a><!-- doxytag: member="ipe::XmlAttributes::clear" ref="a5602fe7fd576bd4ddfbf58006cfd9190" args="()" -->
136
<div class="memitem">
137
<div class="memproto">
138
<table class="memname">
140
<td class="memname">void XmlAttributes::clear </td>
142
<td class="paramname"></td>
143
<td> ) </td>
150
<p>Remove all attributes. </p>
154
<a class="anchor" id="a4ef45bc78049f60e12d2d8db6052935e"></a><!-- doxytag: member="ipe::XmlAttributes::operator[]" ref="a4ef45bc78049f60e12d2d8db6052935e" args="(String str) const " -->
155
<div class="memitem">
156
<div class="memproto">
157
<table class="memname">
159
<td class="memname"><a class="el" href="classipe_1_1_string.html">String</a> XmlAttributes::operator[] </td>
161
<td class="paramtype"><a class="el" href="classipe_1_1_string.html">String</a> </td>
162
<td class="paramname"> <em>str</em></td>
163
<td> ) </td>
170
<p>Return attribute with given key. </p>
171
<p>Returns an empty string if no attribute with this key exists. </p>
175
<a class="anchor" id="ae3110184d4f5f531ef7262691a46189b"></a><!-- doxytag: member="ipe::XmlAttributes::has" ref="ae3110184d4f5f531ef7262691a46189b" args="(String str) const " -->
176
<div class="memitem">
177
<div class="memproto">
178
<table class="memname">
180
<td class="memname">bool XmlAttributes::has </td>
182
<td class="paramtype"><a class="el" href="classipe_1_1_string.html">String</a> </td>
183
<td class="paramname"> <em>str</em></td>
184
<td> ) </td>
191
<p>Check whether attribute exists. </p>
195
<a class="anchor" id="a737a5d9887311bfd7df8b41a83fd51e0"></a><!-- doxytag: member="ipe::XmlAttributes::has" ref="a737a5d9887311bfd7df8b41a83fd51e0" args="(String str, String &val) const " -->
196
<div class="memitem">
197
<div class="memproto">
198
<table class="memname">
200
<td class="memname">bool XmlAttributes::has </td>
202
<td class="paramtype"><a class="el" href="classipe_1_1_string.html">String</a> </td>
203
<td class="paramname"> <em>str</em>, </td>
206
<td class="paramkey"></td>
208
<td class="paramtype"><a class="el" href="classipe_1_1_string.html">String</a> & </td>
209
<td class="paramname"> <em>val</em></td><td> </td>
214
<td></td><td></td><td> const</td>
220
<p>Check whether attribute exists, set <code>val</code> if so. </p>
224
<a class="anchor" id="a2638b26f881719640b2c4e89efda6cb3"></a><!-- doxytag: member="ipe::XmlAttributes::add" ref="a2638b26f881719640b2c4e89efda6cb3" args="(String key, String val)" -->
225
<div class="memitem">
226
<div class="memproto">
227
<table class="memname">
229
<td class="memname">void XmlAttributes::add </td>
231
<td class="paramtype"><a class="el" href="classipe_1_1_string.html">String</a> </td>
232
<td class="paramname"> <em>key</em>, </td>
235
<td class="paramkey"></td>
237
<td class="paramtype"><a class="el" href="classipe_1_1_string.html">String</a> </td>
238
<td class="paramname"> <em>val</em></td><td> </td>
243
<td></td><td></td><td></td>
249
<p>Add a new attribute. </p>
253
<a class="anchor" id="a5e831e7cc1bcb5abdd6f93e90fba511d"></a><!-- doxytag: member="ipe::XmlAttributes::setSlash" ref="a5e831e7cc1bcb5abdd6f93e90fba511d" args="()" -->
254
<div class="memitem">
255
<div class="memproto">
256
<table class="memname">
258
<td class="memname">void ipe::XmlAttributes::setSlash </td>
260
<td class="paramname"></td>
261
<td> ) </td>
262
<td><code> [inline]</code></td>
268
<p>Set that the tag contains the final /. </p>
272
<a class="anchor" id="a5a2b65ab05f387cffa6fd89f19469d1b"></a><!-- doxytag: member="ipe::XmlAttributes::slash" ref="a5a2b65ab05f387cffa6fd89f19469d1b" args="() const " -->
273
<div class="memitem">
274
<div class="memproto">
275
<table class="memname">
277
<td class="memname">bool ipe::XmlAttributes::slash </td>
279
<td class="paramname"></td>
280
<td> ) </td>
281
<td> const<code> [inline]</code></td>
287
<p>Return whether tag contains the final /. </p>
291
<hr/>The documentation for this class was generated from the following files:<ul>