File: classExiv2_1_1Entry.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 (477 lines) | stat: -rw-r--r-- 33,845 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
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
<!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::Entry 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_1Entry.html">Entry</a></div>
<h1>Exiv2::Entry Class Reference</h1><!-- doxytag: class="Exiv2::Entry" -->Data structure for one IFD directory entry. See the description of class <a class="el" href="classExiv2_1_1Ifd.html">Ifd</a> for an explanation of the supported modes for memory allocation.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;ifd.hpp&gt;</code>
<p>
<a href="classExiv2_1_1Entry-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="a6989978301bdbb60234e0f1daa50884"></a><!-- doxytag: member="Exiv2::Entry::Entry" ref="a6989978301bdbb60234e0f1daa50884" args="(bool alloc=true)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Entry.html#a6989978301bdbb60234e0f1daa50884">Entry</a> (bool alloc=true)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Default constructor. The entry allocates memory for its data if alloc is true (the default), otherwise it remembers just the pointers into a read and writeable data buffer which it doesn't allocate or delete. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="edf68bc6b0e8970a1f01c9037a025ca0"></a><!-- doxytag: member="Exiv2::Entry::~Entry" ref="edf68bc6b0e8970a1f01c9037a025ca0" args="()" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Entry.html#edf68bc6b0e8970a1f01c9037a025ca0">~Entry</a> ()</td></tr>

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

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Copy constructor. <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="5c22b14221e22bc7a0a931762fd346d8"></a><!-- doxytag: member="Exiv2::Entry::operator=" ref="5c22b14221e22bc7a0a931762fd346d8" args="(const Entry &amp;rhs)" -->
<a class="el" href="classExiv2_1_1Entry.html">Entry</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Entry.html#5c22b14221e22bc7a0a931762fd346d8">operator=</a> (const <a class="el" href="classExiv2_1_1Entry.html">Entry</a> &amp;rhs)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Assignment operator. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="80f746dacaf765d1d2fa08621313a3bb"></a><!-- doxytag: member="Exiv2::Entry::setTag" ref="80f746dacaf765d1d2fa08621313a3bb" args="(uint16_t tag)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Entry.html#80f746dacaf765d1d2fa08621313a3bb">setTag</a> (uint16_t tag)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the tag. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="80a1ec2e17fa5314b250593b63371a52"></a><!-- doxytag: member="Exiv2::Entry::setIfdId" ref="80a1ec2e17fa5314b250593b63371a52" args="(IfdId ifdId)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Entry.html#80a1ec2e17fa5314b250593b63371a52">setIfdId</a> (<a class="el" href="namespaceExiv2.html#1615152767a506a955c9d13443b56b62">IfdId</a> ifdId)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the IFD id. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f1829f548913bfeb5879d07a0fa319f7"></a><!-- doxytag: member="Exiv2::Entry::setIdx" ref="f1829f548913bfeb5879d07a0fa319f7" args="(int idx)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Entry.html#f1829f548913bfeb5879d07a0fa319f7">setIdx</a> (int idx)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the index (unique id of an entry within one IFD). <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1a4f40c28f15aa214697b5c73a74ec29"></a><!-- doxytag: member="Exiv2::Entry::setOffset" ref="1a4f40c28f15aa214697b5c73a74ec29" args="(long offset)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Entry.html#1a4f40c28f15aa214697b5c73a74ec29">setOffset</a> (long offset)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the offset. The offset is relative to the start of the IFD. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Entry.html#768705d4921fddc2231f75e1fd33ca1c">setValue</a> (uint32_t data, <a class="el" href="namespaceExiv2.html#94c225faf6d6c611a3828fae1c28efa6">ByteOrder</a> byteOrder)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the value of the entry to a single unsigned long component, i.e., set the type of the entry to unsigned long, number of components to one and the value according to the data provided.  <a href="#768705d4921fddc2231f75e1fd33ca1c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Entry.html#6ca426896ca88001da3f49a9d1ad7fb9">setValue</a> (uint16_t type, uint32_t count, const <a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> *data, long size, <a class="el" href="namespaceExiv2.html#94c225faf6d6c611a3828fae1c28efa6">ByteOrder</a> byteOrder=invalidByteOrder)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set type, count, the data buffer and its size.  <a href="#6ca426896ca88001da3f49a9d1ad7fb9"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Entry.html#c6e9425c1ee50a1b03f3504cccc1c867">setDataArea</a> (const <a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> *buf, long len)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the data area. Memory management as for setValue(uint16_t, uint32_t, const byte*, long).  <a href="#c6e9425c1ee50a1b03f3504cccc1c867"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Entry.html#205c68aa60b329e2b3e0fe0fe1816227">setDataAreaOffsets</a> (uint32_t offset, <a class="el" href="namespaceExiv2.html#94c225faf6d6c611a3828fae1c28efa6">ByteOrder</a> byteOrder)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the offset(s) to the data area of an entry.  <a href="#205c68aa60b329e2b3e0fe0fe1816227"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Entry.html#c17e52874332d7a5a4a1e9853fa2a1a9">updateBase</a> (<a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> *pOldBase, <a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> *pNewBase)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Update the base pointer of the <a class="el" href="classExiv2_1_1Entry.html">Entry</a> from <em>pOldBase</em> to <em>pNewBase</em>.  <a href="#c17e52874332d7a5a4a1e9853fa2a1a9"></a><br></td></tr>
<tr><td colspan="2"><div class="groupHeader">Accessors</div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="28fed8560bc7f350a3829d9d0cbdb9ad"></a><!-- doxytag: member="Exiv2::Entry::tag" ref="28fed8560bc7f350a3829d9d0cbdb9ad" args="() const " -->
uint16_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Entry.html#28fed8560bc7f350a3829d9d0cbdb9ad">tag</a> () const </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="2201f7532c265f224b4f15e6b6f35b6d"></a><!-- doxytag: member="Exiv2::Entry::type" ref="2201f7532c265f224b4f15e6b6f35b6d" args="() const " -->
uint16_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Entry.html#2201f7532c265f224b4f15e6b6f35b6d">type</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the type id. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9f32e189834734f8de1e73a225b7239e"></a><!-- doxytag: member="Exiv2::Entry::typeName" ref="9f32e189834734f8de1e73a225b7239e" args="() const " -->
const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Entry.html#9f32e189834734f8de1e73a225b7239e">typeName</a> () const </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="fb3367134b020e5d9ec1975085c711ba"></a><!-- doxytag: member="Exiv2::Entry::typeSize" ref="fb3367134b020e5d9ec1975085c711ba" args="() const " -->
long&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Entry.html#fb3367134b020e5d9ec1975085c711ba">typeSize</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the size in bytes of one element of this type. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="35ef851b6909dbd20402cd1076d0d2f0"></a><!-- doxytag: member="Exiv2::Entry::ifdId" ref="35ef851b6909dbd20402cd1076d0d2f0" args="() const " -->
<a class="el" href="namespaceExiv2.html#1615152767a506a955c9d13443b56b62">IfdId</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Entry.html#35ef851b6909dbd20402cd1076d0d2f0">ifdId</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the IFD id. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f8880d472893b8ec4187f9de414d9fa1"></a><!-- doxytag: member="Exiv2::Entry::idx" ref="f8880d472893b8ec4187f9de414d9fa1" args="() const " -->
int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Entry.html#f8880d472893b8ec4187f9de414d9fa1">idx</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the index (unique id &gt;0 of an entry within an IFD, 0 if not set). <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="fd0c619901d5b94eebf77fd6998e5673"></a><!-- doxytag: member="Exiv2::Entry::count" ref="fd0c619901d5b94eebf77fd6998e5673" args="() const " -->
uint32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Entry.html#fd0c619901d5b94eebf77fd6998e5673">count</a> () const </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">long&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Entry.html#8e440c8c54a5ea9f38bb76d7129df768">size</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the size of the data buffer in bytes.  <a href="#8e440c8c54a5ea9f38bb76d7129df768"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="eb600623d173056f7a726b57970f8e14"></a><!-- doxytag: member="Exiv2::Entry::offset" ref="eb600623d173056f7a726b57970f8e14" args="() const " -->
long&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Entry.html#eb600623d173056f7a726b57970f8e14">offset</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the offset from the start of the IFD to the data of the entry. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7764dec85b53e8e8beb6d44ab00e4cc3"></a><!-- doxytag: member="Exiv2::Entry::data" ref="7764dec85b53e8e8beb6d44ab00e4cc3" args="() const " -->
const <a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Entry.html#7764dec85b53e8e8beb6d44ab00e4cc3">data</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return a pointer to the data buffer. Do not attempt to write to this pointer. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="02d7cfa4492f4cac87f0ea40d9a74d1d"></a><!-- doxytag: member="Exiv2::Entry::component" ref="02d7cfa4492f4cac87f0ea40d9a74d1d" args="(uint32_t n) const " -->
const <a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Entry.html#02d7cfa4492f4cac87f0ea40d9a74d1d">component</a> (uint32_t n) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return a pointer to the n-th component, 0 if there is no n-th component. Do not attempt to write to this pointer. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3f034d29aa06273437410af891bfe046"></a><!-- doxytag: member="Exiv2::Entry::alloc" ref="3f034d29aa06273437410af891bfe046" args="() const " -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Entry.html#3f034d29aa06273437410af891bfe046">alloc</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the memory allocation mode. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="725aa2c870b87af8590a8bb64d23a616"></a><!-- doxytag: member="Exiv2::Entry::sizeDataArea" ref="725aa2c870b87af8590a8bb64d23a616" args="() const " -->
long&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Entry.html#725aa2c870b87af8590a8bb64d23a616">sizeDataArea</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the size of the data area. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Entry.html#67ced2db16a0a231bf7ca6124506a12a">dataArea</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return a pointer to the data area. Do not attempt to write to this pointer.  <a href="#67ced2db16a0a231bf7ca6124506a12a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="91b1cb93c92dfcf6b191419f3ab34505"></a><!-- doxytag: member="Exiv2::Entry::byteOrder" ref="91b1cb93c92dfcf6b191419f3ab34505" args="() const " -->
<a class="el" href="namespaceExiv2.html#94c225faf6d6c611a3828fae1c28efa6">ByteOrder</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Entry.html#91b1cb93c92dfcf6b191419f3ab34505">byteOrder</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the byte order of the entry. There should generally not be a need for this, it is only used in special cases (Minolta Makernote CameraSettings tags). <br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Data structure for one IFD directory entry. See the description of class <a class="el" href="classExiv2_1_1Ifd.html">Ifd</a> for an explanation of the supported modes for memory allocation. 
<p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="67ced2db16a0a231bf7ca6124506a12a"></a><!-- doxytag: member="Exiv2::Entry::dataArea" ref="67ced2db16a0a231bf7ca6124506a12a" args="() const " --><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">const <a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a>* Exiv2::Entry::dataArea           </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> [inline]</code></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Return a pointer to the data area. Do not attempt to write to this pointer. 
<p>
For certain tags the regular value of an IFD entry is an offset to a data area outside of the IFD. Examples are Exif tag 0x8769 in IFD0 (Exif.Image.ExifTag) or tag 0x0201 in IFD1 (Exif.Thumbnail.JPEGInterchangeFormat). The offset of ExifTag points to a data area containing the Exif IFD. That of JPEGInterchangeFormat contains the JPEG thumbnail image. Use this method to access (read-only) the data area of a tag. Use <a class="el" href="classExiv2_1_1Entry.html#c6e9425c1ee50a1b03f3504cccc1c867">setDataArea()</a> to write to the data area.<p>
<dl compact><dt><b>Returns:</b></dt><dd>Return a pointer to the data area. </dd></dl>
    </td>
  </tr>
</table>
<a class="anchor" name="c6e9425c1ee50a1b03f3504cccc1c867"></a><!-- doxytag: member="Exiv2::Entry::setDataArea" ref="c6e9425c1ee50a1b03f3504cccc1c867" args="(const byte *buf, long len)" --><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">void Exiv2::Entry::setDataArea           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <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>long&nbsp;</td>
          <td class="mdname" nowrap> <em>len</em></td>
        </tr>
        <tr>
          <td class="md"></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>
Set the data area. Memory management as for setValue(uint16_t, uint32_t, const byte*, long). 
<p>
For certain tags the regular value of an IFD entry is an offset to a data area outside of the IFD. Examples are Exif tag 0x8769 in IFD0 (Exif.Image.ExifTag) or tag 0x0201 in IFD1 (Exif.Thumbnail.JPEGInterchangeFormat). The offset of ExifTag points to a data area containing the Exif IFD. That of JPEGInterchangeFormat contains the JPEG thumbnail image. This method sets the data area of a tag in accordance with the memory allocation mode.<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>Pointer to the data area. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>len</em>&nbsp;</td><td>Size of the data area.</td></tr>
  </table>
</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>in non-alloc mode, if there already is a dataarea but the size of the existing dataarea is not large enough for the new buffer. </td></tr>
  </table>
</dl>
    </td>
  </tr>
</table>
<a class="anchor" name="205c68aa60b329e2b3e0fe0fe1816227"></a><!-- doxytag: member="Exiv2::Entry::setDataAreaOffsets" ref="205c68aa60b329e2b3e0fe0fe1816227" args="(uint32_t offset, ByteOrder byteOrder)" --><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">void Exiv2::Entry::setDataAreaOffsets           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">uint32_t&nbsp;</td>
          <td class="mdname" nowrap> <em>offset</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"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Set the offset(s) to the data area of an entry. 
<p>
Add <em>offset</em> to each data component of the entry. This is used by <a class="el" href="classExiv2_1_1Ifd.html#e4111e2b5234b5dab141e4fd7194eabd">Ifd::copy</a> to convert the data components of an entry containing offsets relative to the data area to become offsets from the start of the TIFF header. Usually, entries with a data area have exactly one unsigned long data component, which is 0.<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>offset</em>&nbsp;</td><td>Offset </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>byteOrder</em>&nbsp;</td><td>Byte order</td></tr>
  </table>
</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 offset is out of range for the data type of the tag or the data type is not supported. </td></tr>
  </table>
</dl>
    </td>
  </tr>
</table>
<a class="anchor" name="6ca426896ca88001da3f49a9d1ad7fb9"></a><!-- doxytag: member="Exiv2::Entry::setValue" ref="6ca426896ca88001da3f49a9d1ad7fb9" args="(uint16_t type, uint32_t count, const byte *data, long size, ByteOrder byteOrder=invalidByteOrder)" --><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">void Exiv2::Entry::setValue           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">uint16_t&nbsp;</td>
          <td class="mdname" nowrap> <em>type</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>uint32_t&nbsp;</td>
          <td class="mdname" nowrap> <em>count</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>const <a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>data</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>long&nbsp;</td>
          <td class="mdname" nowrap> <em>size</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> = <code>invalidByteOrder</code></td>
        </tr>
        <tr>
          <td class="md"></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>
Set type, count, the data buffer and its size. 
<p>
Copies the provided buffer when called in memory allocation mode. <br>
In non-alloc mode, use this method to initialise the data of a newly created Entry. In this case, only the pointer to the buffer is copied, i.e., the buffer must remain valid throughout the life of the Entry. Subsequent calls in non-alloc mode will overwrite the data pointed to by this pointer with the data provided, i.e., the buffer provided in subsequent calls can be deleted after the call. <br>
In either memory allocation mode, the data buffer provided must be large enough to hold count components of type. The size of the buffer will be as indicated in the size argument. I.e., it is possible to allocate (set) a data buffer larger than required to hold count components of the given type.<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>type</em>&nbsp;</td><td>The type of the data. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>count</em>&nbsp;</td><td>Number of components in the buffer. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>data</em>&nbsp;</td><td>Pointer to the data buffer. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>size</em>&nbsp;</td><td>Size of the desired data buffer in bytes. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>byteOrder</em>&nbsp;</td><td>Optional byte order. </td></tr>
  </table>
</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 no memory allocation is allowed and the size of the data buffer is larger than the existing data buffer of the entry or if size is not large enough to hold count components of the given type. </td></tr>
  </table>
</dl>
    </td>
  </tr>
</table>
<a class="anchor" name="768705d4921fddc2231f75e1fd33ca1c"></a><!-- doxytag: member="Exiv2::Entry::setValue" ref="768705d4921fddc2231f75e1fd33ca1c" args="(uint32_t data, ByteOrder byteOrder)" --><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">void Exiv2::Entry::setValue           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">uint32_t&nbsp;</td>
          <td class="mdname" nowrap> <em>data</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"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Set the value of the entry to a single unsigned long component, i.e., set the type of the entry to unsigned long, number of components to one and the value according to the data provided. 
<p>
The size of the data buffer is set to at least four bytes, but is left unchanged if it can accomodate the pointer. This method can be used to set the value of a tag which contains a pointer (offset) to a location in the Exif data (like e.g., ExifTag, 0x8769 in IFD0, which contains a pointer to the Exif IFD). <br>
This method cannot be used to set the value of a newly created Entry in non-alloc mode.<p>
<dl compact><dt><b>Note:</b></dt><dd>This method is now deprecated, use data area related methods instead. </dd></dl>
    </td>
  </tr>
</table>
<a class="anchor" name="8e440c8c54a5ea9f38bb76d7129df768"></a><!-- doxytag: member="Exiv2::Entry::size" ref="8e440c8c54a5ea9f38bb76d7129df768" args="() const " --><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">long Exiv2::Entry::size           </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> [inline]</code></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Return the size of the data buffer in bytes. 
<p>
<dl compact><dt><b>Note:</b></dt><dd>There is no minimum size for the data buffer, except that it must be large enough to hold the data. </dd></dl>
    </td>
  </tr>
</table>
<a class="anchor" name="c17e52874332d7a5a4a1e9853fa2a1a9"></a><!-- doxytag: member="Exiv2::Entry::updateBase" ref="c17e52874332d7a5a4a1e9853fa2a1a9" args="(byte *pOldBase, byte *pNewBase)" --><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">void Exiv2::Entry::updateBase           </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>pOldBase</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#16f60a5bd4207fe155f6cf93a15efa72">byte</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>pNewBase</em></td>
        </tr>
        <tr>
          <td class="md"></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>
Update the base pointer of the <a class="el" href="classExiv2_1_1Entry.html">Entry</a> from <em>pOldBase</em> to <em>pNewBase</em>. 
<p>
Allows to re-locate the underlying data buffer to a new location <em>pNewBase</em>. This method only has an effect in non-alloc mode.<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>pOldBase</em>&nbsp;</td><td>Base pointer of the old data buffer </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>pNewBase</em>&nbsp;</td><td>Base pointer of the new data buffer </td></tr>
  </table>
</dl>
    </td>
  </tr>
</table>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="ifd_8hpp.html">ifd.hpp</a><li>ifd.cpp</ul>
<hr size="1"><address style="align: right;"><small>Generated on Fri Jun 2 23:54:58 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>