1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
3
<title>Ipelib: IpeXmlAttributes class Reference</title>
4
<link href="doxygen.css" rel="stylesheet" type="text/css">
6
<!-- Generated by Doxygen 1.3.4 -->
7
<div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="functions.html">Class Members</a></div>
8
<h1>IpeXmlAttributes Class Reference<br>
10
[<a class="el" href="group__base.html">Ipe Base</a>]</small>
11
</h1>Stores attributes of an XML tag.
12
<a href="#_details">More...</a>
14
<a href="class_ipe_xml_attributes-members.html">List of all members.</a><h2>Public Types</h2>
16
<li>typedef Map::const_iterator <a class="el" href="class_ipe_xml_attributes.html#w0">const_iterator</a>
18
<h2>Public Member Functions</h2>
20
<li><a class="el" href="class_ipe_xml_attributes.html#w0">const_iterator</a> <a class="el" href="class_ipe_xml_attributes.html#a0">begin</a> () const
21
<li><a class="el" href="class_ipe_xml_attributes.html#w0">const_iterator</a> <a class="el" href="class_ipe_xml_attributes.html#a1">end</a> () const
22
<li><a class="el" href="class_ipe_xml_attributes.html#a2">IpeXmlAttributes</a> ()
23
<li>void <a class="el" href="class_ipe_xml_attributes.html#a3">Clear</a> ()
24
<li><a class="el" href="class_ipe_string.html">IpeString</a> <a class="el" href="class_ipe_xml_attributes.html#a4">operator[]</a> (<a class="el" href="class_ipe_string.html">IpeString</a> str) const
25
<li>bool <a class="el" href="class_ipe_xml_attributes.html#a5">Has</a> (<a class="el" href="class_ipe_string.html">IpeString</a> str, <a class="el" href="class_ipe_string.html">IpeString</a> &val) const
26
<li>void <a class="el" href="class_ipe_xml_attributes.html#a6">Add</a> (<a class="el" href="class_ipe_string.html">IpeString</a> key, <a class="el" href="class_ipe_string.html">IpeString</a> val)
27
<li>void <a class="el" href="class_ipe_xml_attributes.html#a7">SetSlash</a> ()
28
<li>bool <a class="el" href="class_ipe_xml_attributes.html#a8">Slash</a> () const
30
<hr><a name="_details"></a><h2>Detailed Description</h2>
31
Stores attributes of an XML tag.
33
<hr><h2>Member Typedef Documentation</h2>
34
<a class="anchor" name="w0" doxytag="IpeXmlAttributes::const_iterator" ></a><p>
35
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
38
<table cellpadding="0" cellspacing="0" border="0">
40
<td class="md" nowrap valign="top"> typedef Map::const_iterator <a class="el" href="class_ipe_xml_attributes.html#w0">IpeXmlAttributes::const_iterator</a>
45
<table cellspacing=5 cellpadding=0 border=0>
53
Iterator for (key, value) pairs.
58
<hr><h2>Constructor & Destructor Documentation</h2>
59
<a class="anchor" name="a2" doxytag="IpeXmlAttributes::IpeXmlAttributes" ></a><p>
60
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
63
<table cellpadding="0" cellspacing="0" border="0">
65
<td class="md" nowrap valign="top"> IpeXmlAttributes::IpeXmlAttributes </td>
66
<td class="md" valign="top">( </td>
67
<td class="mdname1" valign="top" nowrap> </td>
68
<td class="md" valign="top"> ) </td>
69
<td class="md" nowrap></td>
76
<table cellspacing=5 cellpadding=0 border=0>
84
Constructor for an empty collection.
89
<hr><h2>Member Function Documentation</h2>
90
<a class="anchor" name="a0" doxytag="IpeXmlAttributes::begin" ></a><p>
91
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
94
<table cellpadding="0" cellspacing="0" border="0">
96
<td class="md" nowrap valign="top"> <a class="el" href="class_ipe_xml_attributes.html#w0">const_iterator</a> IpeXmlAttributes::begin </td>
97
<td class="md" valign="top">( </td>
98
<td class="mdname1" valign="top" nowrap> </td>
99
<td class="md" valign="top"> ) </td>
100
<td class="md" nowrap> const<code> [inline]</code></td>
107
<table cellspacing=5 cellpadding=0 border=0>
115
Return const iterator for first attribute.
120
<a class="anchor" name="a1" doxytag="IpeXmlAttributes::end" ></a><p>
121
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
124
<table cellpadding="0" cellspacing="0" border="0">
126
<td class="md" nowrap valign="top"> <a class="el" href="class_ipe_xml_attributes.html#w0">const_iterator</a> IpeXmlAttributes::end </td>
127
<td class="md" valign="top">( </td>
128
<td class="mdname1" valign="top" nowrap> </td>
129
<td class="md" valign="top"> ) </td>
130
<td class="md" nowrap> const<code> [inline]</code></td>
137
<table cellspacing=5 cellpadding=0 border=0>
145
Return const iterator for end of attributes.
150
<a class="anchor" name="a3" doxytag="IpeXmlAttributes::Clear" ></a><p>
151
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
154
<table cellpadding="0" cellspacing="0" border="0">
156
<td class="md" nowrap valign="top"> void IpeXmlAttributes::Clear </td>
157
<td class="md" valign="top">( </td>
158
<td class="mdname1" valign="top" nowrap> </td>
159
<td class="md" valign="top"> ) </td>
160
<td class="md" nowrap></td>
167
<table cellspacing=5 cellpadding=0 border=0>
175
Remove all attributes.
180
<a class="anchor" name="a4" doxytag="IpeXmlAttributes::operator[]" ></a><p>
181
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
184
<table cellpadding="0" cellspacing="0" border="0">
186
<td class="md" nowrap valign="top"> <a class="el" href="class_ipe_string.html">IpeString</a> IpeXmlAttributes::operator[] </td>
187
<td class="md" valign="top">( </td>
188
<td class="md" nowrap valign="top"><a class="el" href="class_ipe_string.html">IpeString</a> </td>
189
<td class="mdname1" valign="top" nowrap> <em>str</em> </td>
190
<td class="md" valign="top"> ) </td>
191
<td class="md" nowrap> const</td>
198
<table cellspacing=5 cellpadding=0 border=0>
206
Return attribute with given key.
208
Returns an empty string if no attribute with this key exists. </td>
211
<a class="anchor" name="a5" doxytag="IpeXmlAttributes::Has" ></a><p>
212
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
215
<table cellpadding="0" cellspacing="0" border="0">
217
<td class="md" nowrap valign="top"> bool IpeXmlAttributes::Has </td>
218
<td class="md" valign="top">( </td>
219
<td class="md" nowrap valign="top"><a class="el" href="class_ipe_string.html">IpeString</a> </td>
220
<td class="mdname" nowrap> <em>str</em>, </td>
225
<td class="md" nowrap><a class="el" href="class_ipe_string.html">IpeString</a> & </td>
226
<td class="mdname" nowrap> <em>val</em></td>
230
<td class="md">) </td>
231
<td class="md" colspan="2"> const</td>
238
<table cellspacing=5 cellpadding=0 border=0>
246
Check whether attribute exists, set <code>val</code> if so.
251
<a class="anchor" name="a6" doxytag="IpeXmlAttributes::Add" ></a><p>
252
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
255
<table cellpadding="0" cellspacing="0" border="0">
257
<td class="md" nowrap valign="top"> void IpeXmlAttributes::Add </td>
258
<td class="md" valign="top">( </td>
259
<td class="md" nowrap valign="top"><a class="el" href="class_ipe_string.html">IpeString</a> </td>
260
<td class="mdname" nowrap> <em>key</em>, </td>
265
<td class="md" nowrap><a class="el" href="class_ipe_string.html">IpeString</a> </td>
266
<td class="mdname" nowrap> <em>val</em></td>
270
<td class="md">) </td>
271
<td class="md" colspan="2"></td>
278
<table cellspacing=5 cellpadding=0 border=0>
291
<a class="anchor" name="a7" doxytag="IpeXmlAttributes::SetSlash" ></a><p>
292
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
295
<table cellpadding="0" cellspacing="0" border="0">
297
<td class="md" nowrap valign="top"> void IpeXmlAttributes::SetSlash </td>
298
<td class="md" valign="top">( </td>
299
<td class="mdname1" valign="top" nowrap> </td>
300
<td class="md" valign="top"> ) </td>
301
<td class="md" nowrap><code> [inline]</code></td>
308
<table cellspacing=5 cellpadding=0 border=0>
316
Set that the tag contains the final /.
321
<a class="anchor" name="a8" doxytag="IpeXmlAttributes::Slash" ></a><p>
322
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
325
<table cellpadding="0" cellspacing="0" border="0">
327
<td class="md" nowrap valign="top"> bool IpeXmlAttributes::Slash </td>
328
<td class="md" valign="top">( </td>
329
<td class="mdname1" valign="top" nowrap> </td>
330
<td class="md" valign="top"> ) </td>
331
<td class="md" nowrap> const<code> [inline]</code></td>
338
<table cellspacing=5 cellpadding=0 border=0>
346
Return whether tag contains the final /.
351
<hr>The documentation for this class was generated from the following files:<ul>
352
<li>ipexml.h<li>ipexml.cpp</ul>