File: classExiv2_1_1Metadatum.html

package info (click to toggle)
exiv2 0.10-1.4
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 13,124 kB
  • ctags: 5,665
  • sloc: cpp: 20,697; xml: 15,118; sh: 10,526; ansic: 1,887; makefile: 367; awk: 64; python: 36
file content (265 lines) | stat: -rw-r--r-- 22,976 bytes parent folder | download | duplicates (2)
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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Exiv2: Exiv2::Metadatum Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.4.6 -->
<div class="tabs">
  <ul>
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="namespaces.html"><span>Namespaces</span></a></li>
    <li id="current"><a href="classes.html"><span>Classes</span></a></li>
    <li><a href="files.html"><span>Files</span></a></li>
    <li><a href="examples.html"><span>Examples</span></a></li>
  </ul></div>
<div class="tabs">
  <ul>
    <li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
    <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
    <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
    <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
  </ul></div>
<div class="nav">
<a class="el" href="namespaceExiv2.html">Exiv2</a>::<a class="el" href="classExiv2_1_1Metadatum.html">Metadatum</a></div>
<h1>Exiv2::Metadatum Class Reference</h1><!-- doxytag: class="Exiv2::Metadatum" -->Abstract base class defining the interface to access information related to one metadata tag.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;metadatum.hpp&gt;</code>
<p>
Inheritance diagram for Exiv2::Metadatum:<p><center><img src="classExiv2_1_1Metadatum__inherit__graph.png" border="0" usemap="#Exiv2_1_1Metadatum__inherit__map" alt="Inheritance graph"></center>
<map name="Exiv2_1_1Metadatum__inherit__map">
<area href="classExiv2_1_1Exifdatum.html" shape="rect" coords="5,81,128,105" alt="">
<area href="classExiv2_1_1Iptcdatum.html" shape="rect" coords="152,81,272,105" alt="">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classExiv2_1_1Metadatum-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td colspan="2"><div class="groupHeader">Creators</div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1d7ef6f699dc1448ddf37c5e8938808a"></a><!-- doxytag: member="Exiv2::Metadatum::Metadatum" ref="1d7ef6f699dc1448ddf37c5e8938808a" args="()" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Metadatum.html#1d7ef6f699dc1448ddf37c5e8938808a">Metadatum</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Default Constructor. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a4b96033393a69d1382570f638d7243b"></a><!-- doxytag: member="Exiv2::Metadatum::Metadatum" ref="a4b96033393a69d1382570f638d7243b" args="(const Metadatum &amp;rhs)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Metadatum.html#a4b96033393a69d1382570f638d7243b">Metadatum</a> (const <a class="el" href="classExiv2_1_1Metadatum.html">Metadatum</a> &amp;rhs)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Copy constructor. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="707ffcc6121daf24e5b191eb55181b35"></a><!-- doxytag: member="Exiv2::Metadatum::~Metadatum" ref="707ffcc6121daf24e5b191eb55181b35" args="()" -->
virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Metadatum.html#707ffcc6121daf24e5b191eb55181b35">~Metadatum</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Destructor. <br></td></tr>
<tr><td colspan="2"><div class="groupHeader">Manipulators</div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f4dd21ad1c59ae0bbe521651951615f3"></a><!-- doxytag: member="Exiv2::Metadatum::setValue" ref="f4dd21ad1c59ae0bbe521651951615f3" args="(const Value *pValue)=0" -->
virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Metadatum.html#f4dd21ad1c59ae0bbe521651951615f3">setValue</a> (const <a class="el" href="classExiv2_1_1Value.html">Value</a> *pValue)=0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the value. This method copies (clones) the value pointed to by pValue. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6e2697a6d1564fa32022b2da3d93bcf9"></a><!-- doxytag: member="Exiv2::Metadatum::setValue" ref="6e2697a6d1564fa32022b2da3d93bcf9" args="(const std::string &amp;buf)=0" -->
virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Metadatum.html#6e2697a6d1564fa32022b2da3d93bcf9">setValue</a> (const std::string &amp;buf)=0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the value to the string buf. Uses <a class="el" href="classExiv2_1_1Value.html#2864378d7572310aa5f4cf4127365862">Value::read(const std::string&amp; buf)</a>. If the metadatum does not have a value yet, then an <a class="el" href="classExiv2_1_1AsciiValue.html">AsciiValue</a> is created. <br></td></tr>
<tr><td colspan="2"><div class="groupHeader">Accessors</div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual long&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Metadatum.html#24bda0168b0655ccbbc8b870b583f1da">copy</a> (<a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> *buf, <a class="el" href="namespaceExiv2.html#94c225faf6d6c611a3828fae1c28efa6">ByteOrder</a> byteOrder) const =0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Write value to a data buffer and return the number of bytes written.  <a href="#24bda0168b0655ccbbc8b870b583f1da"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f9d30791ac19ecd4a80cd9214f3d1495"></a><!-- doxytag: member="Exiv2::Metadatum::key" ref="f9d30791ac19ecd4a80cd9214f3d1495" args="() const =0" -->
virtual std::string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Metadatum.html#f9d30791ac19ecd4a80cd9214f3d1495">key</a> () const =0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the key of the metadatum. The key is of the form 'familyName.ifdItem.tagName'. Note however that the key is not necessarily unique, i.e., an <a class="el" href="classExiv2_1_1ExifData.html">ExifData</a> may contain multiple metadata with the same key. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="828306096c0575ffc5d02c73c3b6ff53"></a><!-- doxytag: member="Exiv2::Metadatum::tagName" ref="828306096c0575ffc5d02c73c3b6ff53" args="() const =0" -->
virtual std::string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Metadatum.html#828306096c0575ffc5d02c73c3b6ff53">tagName</a> () const =0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the name of the tag (which is also the third part of the key). <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="58cd8a22d1debd0e3f8cd2407587ed31"></a><!-- doxytag: member="Exiv2::Metadatum::tagLabel" ref="58cd8a22d1debd0e3f8cd2407587ed31" args="() const =0" -->
virtual std::string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Metadatum.html#58cd8a22d1debd0e3f8cd2407587ed31">tagLabel</a> () const =0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return a label for the tag. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="39ee5937edab29d199f3d318bb55eace"></a><!-- doxytag: member="Exiv2::Metadatum::tag" ref="39ee5937edab29d199f3d318bb55eace" args="() const =0" -->
virtual uint16_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Metadatum.html#39ee5937edab29d199f3d318bb55eace">tag</a> () const =0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the tag. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0f4c5f021786e0e7abc3ae25b984f4e8"></a><!-- doxytag: member="Exiv2::Metadatum::typeId" ref="0f4c5f021786e0e7abc3ae25b984f4e8" args="() const =0" -->
virtual <a class="el" href="namespaceExiv2.html#5153319711f35fe81cbc13f4b852450c">TypeId</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Metadatum.html#0f4c5f021786e0e7abc3ae25b984f4e8">typeId</a> () const =0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the type id of the value. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c3fc08927500d7fe227bc34583815dfe"></a><!-- doxytag: member="Exiv2::Metadatum::typeName" ref="c3fc08927500d7fe227bc34583815dfe" args="() const =0" -->
virtual const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Metadatum.html#c3fc08927500d7fe227bc34583815dfe">typeName</a> () const =0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the name of the type. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1a77c33ee0ba24127dff478e26ba8fa7"></a><!-- doxytag: member="Exiv2::Metadatum::typeSize" ref="1a77c33ee0ba24127dff478e26ba8fa7" args="() const =0" -->
virtual long&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Metadatum.html#1a77c33ee0ba24127dff478e26ba8fa7">typeSize</a> () const =0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the size in bytes of one component of this type. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="75740ff36685a69d617e0b9548fcf2b4"></a><!-- doxytag: member="Exiv2::Metadatum::count" ref="75740ff36685a69d617e0b9548fcf2b4" args="() const =0" -->
virtual long&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Metadatum.html#75740ff36685a69d617e0b9548fcf2b4">count</a> () const =0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the number of components in the value. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="05e186d6189b44ac428b7d21a8dbc762"></a><!-- doxytag: member="Exiv2::Metadatum::size" ref="05e186d6189b44ac428b7d21a8dbc762" args="() const =0" -->
virtual long&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Metadatum.html#05e186d6189b44ac428b7d21a8dbc762">size</a> () const =0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the size of the value in bytes. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8617d2efd0c1a241e96e853b7f00f077"></a><!-- doxytag: member="Exiv2::Metadatum::toString" ref="8617d2efd0c1a241e96e853b7f00f077" args="() const =0" -->
virtual std::string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Metadatum.html#8617d2efd0c1a241e96e853b7f00f077">toString</a> () const =0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the value as a string. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="66148c73f1b565885b4ee51358ae4308"></a><!-- doxytag: member="Exiv2::Metadatum::toLong" ref="66148c73f1b565885b4ee51358ae4308" args="(long n=0) const =0" -->
virtual long&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Metadatum.html#66148c73f1b565885b4ee51358ae4308">toLong</a> (long n=0) const =0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the n-th component of the value converted to long. The return value is -1 if the value of the <a class="el" href="classExiv2_1_1Metadatum.html">Metadatum</a> is not set and the behaviour of the method is undefined if there is no n-th component. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a70af228d888327badd2333020256ac2"></a><!-- doxytag: member="Exiv2::Metadatum::toFloat" ref="a70af228d888327badd2333020256ac2" args="(long n=0) const =0" -->
virtual float&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Metadatum.html#a70af228d888327badd2333020256ac2">toFloat</a> (long n=0) const =0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the n-th component of the value converted to float. The return value is -1 if the value of the <a class="el" href="classExiv2_1_1Metadatum.html">Metadatum</a> is not set and the behaviour of the method is undefined if there is no n-th component. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ea1935014f316b7a2eabc12be92ca7c9"></a><!-- doxytag: member="Exiv2::Metadatum::toRational" ref="ea1935014f316b7a2eabc12be92ca7c9" args="(long n=0) const =0" -->
virtual <a class="el" href="namespaceExiv2.html#95756f3f7fa19103f83addf5fa088a30">Rational</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Metadatum.html#ea1935014f316b7a2eabc12be92ca7c9">toRational</a> (long n=0) const =0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the n-th component of the value converted to Rational. The return value is -1/1 if the value of the <a class="el" href="classExiv2_1_1Metadatum.html">Metadatum</a> is not set and the behaviour of the method is undefined if there is no n-th component. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classExiv2_1_1Value.html#0f62e585b82c97738858b743e60dff21">Value::AutoPtr</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Metadatum.html#1f3f53ab9df8c213ade42012a7e89ab3">getValue</a> () const =0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return an auto-pointer to a copy (clone) of the value. The caller owns this copy and the auto-poiner ensures that it will be deleted.  <a href="#1f3f53ab9df8c213ade42012a7e89ab3"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const <a class="el" href="classExiv2_1_1Value.html">Value</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Metadatum.html#67ab8d2752f951b70a8188341df9c7e6">value</a> () const =0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return a constant reference to the value.  <a href="#67ab8d2752f951b70a8188341df9c7e6"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
<tr><td colspan="2"><div class="groupHeader">Manipulators</div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="cb23718131525db38ad4d94f43c73792"></a><!-- doxytag: member="Exiv2::Metadatum::operator=" ref="cb23718131525db38ad4d94f43c73792" args="(const Metadatum &amp;rhs)" -->
<a class="el" href="classExiv2_1_1Metadatum.html">Metadatum</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Metadatum.html#cb23718131525db38ad4d94f43c73792">operator=</a> (const <a class="el" href="classExiv2_1_1Metadatum.html">Metadatum</a> &amp;rhs)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Assignment operator. Protected so that it can only be used by subclasses but not directly. <br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Abstract base class defining the interface to access information related to one metadata tag. 
<p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="24bda0168b0655ccbbc8b870b583f1da"></a><!-- doxytag: member="Exiv2::Metadatum::copy" ref="24bda0168b0655ccbbc8b870b583f1da" args="(byte *buf, ByteOrder byteOrder) const =0" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">virtual long Exiv2::Metadatum::copy           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>buf</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap><a class="el" href="namespaceExiv2.html#94c225faf6d6c611a3828fae1c28efa6">ByteOrder</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>byteOrder</em></td>
        </tr>
        <tr>
          <td class="md"></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"> const<code> [pure virtual]</code></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Write value to a data buffer and return the number of bytes written. 
<p>
The user must ensure that the buffer has enough memory. Otherwise the call results in undefined behaviour.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>buf</em>&nbsp;</td><td>Data buffer to write to. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>byteOrder</em>&nbsp;</td><td>Applicable byte order (little or big endian). </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>Number of characters written. </dd></dl>

<p>
Implemented in <a class="el" href="classExiv2_1_1Exifdatum.html#28391f10f14d66cabeb8042853e311cd">Exiv2::Exifdatum</a>, and <a class="el" href="classExiv2_1_1Iptcdatum.html#fef33191871750f8b1c760d46f553c51">Exiv2::Iptcdatum</a>.    </td>
  </tr>
</table>
<a class="anchor" name="1f3f53ab9df8c213ade42012a7e89ab3"></a><!-- doxytag: member="Exiv2::Metadatum::getValue" ref="1f3f53ab9df8c213ade42012a7e89ab3" args="() const =0" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">virtual <a class="el" href="classExiv2_1_1Value.html#0f62e585b82c97738858b743e60dff21">Value::AutoPtr</a> Exiv2::Metadatum::getValue           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap> const<code> [pure virtual]</code></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Return an auto-pointer to a copy (clone) of the value. The caller owns this copy and the auto-poiner ensures that it will be deleted. 
<p>
This method is provided for users who need full control over the value. A caller may, e.g., downcast the pointer to the appropriate subclass of <a class="el" href="classExiv2_1_1Value.html">Value</a> to make use of the interface of the subclass to set or modify its contents.<p>
<dl compact><dt><b>Returns:</b></dt><dd>An auto-pointer containing a pointer to a copy (clone) of the value, 0 if the value is not set. </dd></dl>

<p>
Implemented in <a class="el" href="classExiv2_1_1Exifdatum.html#69fee053db7f4e55295f7ff1c4d34566">Exiv2::Exifdatum</a>, and <a class="el" href="classExiv2_1_1Iptcdatum.html#dde9e41e4fda8d1cd9e5947e44cbf40a">Exiv2::Iptcdatum</a>.    </td>
  </tr>
</table>
<a class="anchor" name="67ab8d2752f951b70a8188341df9c7e6"></a><!-- doxytag: member="Exiv2::Metadatum::value" ref="67ab8d2752f951b70a8188341df9c7e6" args="() const =0" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">virtual const <a class="el" href="classExiv2_1_1Value.html">Value</a>&amp; Exiv2::Metadatum::value           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap> const<code> [pure virtual]</code></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Return a constant reference to the value. 
<p>
This method is provided mostly for convenient and versatile output of the value which can (to some extent) be formatted through standard stream manipulators. Do not attempt to write to the value through this reference.<p>
<b>Example:</b> <br>
 <div class="fragment"><pre class="fragment">          <a class="code" href="classExiv2_1_1ExifData.html#2b8ac7a474d6527c0f3f6a0a9cebef77">ExifData::const_iterator</a> i = exifData.findKey(<a class="code" href="classExiv2_1_1Metadatum.html#f9d30791ac19ecd4a80cd9214f3d1495">key</a>);
          <span class="keywordflow">if</span> (i != exifData.end()) {
              std::cout &lt;&lt; i-&gt;key() &lt;&lt; <span class="stringliteral">" "</span> &lt;&lt; std::hex &lt;&lt; i-&gt;value() &lt;&lt; <span class="stringliteral">"\n"</span>;
          }
</pre></div><p>
<dl compact><dt><b>Returns:</b></dt><dd>A constant reference to the value. </dd></dl>
<dl compact><dt><b>Exceptions:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classExiv2_1_1Error.html">Error</a></em>&nbsp;</td><td>if the value is not set. </td></tr>
  </table>
</dl>

<p>
Implemented in <a class="el" href="classExiv2_1_1Exifdatum.html#44d8261179011b2f68075d805e565866">Exiv2::Exifdatum</a>, and <a class="el" href="classExiv2_1_1Iptcdatum.html#799184a3a000bda2432a0b7366c2dfb2">Exiv2::Iptcdatum</a>.    </td>
  </tr>
</table>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="metadatum_8hpp.html">metadatum.hpp</a><li>metadatum.cpp</ul>
<hr size="1"><address style="align: right;"><small>Generated on Fri Jun 2 23:55:12 2006 for Exiv2 by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address>
</body>
</html>