File: classExiv2_1_1ExifData.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 (697 lines) | stat: -rw-r--r-- 50,513 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
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
<!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::ExifData 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_1ExifData.html">ExifData</a></div>
<h1>Exiv2::ExifData Class Reference</h1><!-- doxytag: class="Exiv2::ExifData" -->A container for Exif data. This is a top-level class of the Exiv2 library. The container holds <a class="el" href="classExiv2_1_1Exifdatum.html">Exifdatum</a> objects.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;exif.hpp&gt;</code>
<p>
Collaboration diagram for Exiv2::ExifData:<p><center><img src="classExiv2_1_1ExifData__coll__graph.png" border="0" usemap="#Exiv2_1_1ExifData__coll__map" alt="Collaboration graph"></center>
<map name="Exiv2_1_1ExifData__coll__map">
<area href="classExiv2_1_1MakerNote.html" shape="rect" coords="5,188,133,212" alt="">
<area href="classExiv2_1_1Ifd.html" shape="rect" coords="291,188,368,212" alt="">
<area href="classExiv2_1_1TiffHeader.html" shape="rect" coords="392,188,515,212" alt="">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classExiv2_1_1ExifData-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 Types</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="02e2a2acb4cfeb0f7755c1a45f94106f"></a><!-- doxytag: member="Exiv2::ExifData::iterator" ref="02e2a2acb4cfeb0f7755c1a45f94106f" args="" -->
typedef ExifMetadata::iterator&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ExifData.html#02e2a2acb4cfeb0f7755c1a45f94106f">iterator</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">ExifMetadata iterator type. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2b8ac7a474d6527c0f3f6a0a9cebef77"></a><!-- doxytag: member="Exiv2::ExifData::const_iterator" ref="2b8ac7a474d6527c0f3f6a0a9cebef77" args="" -->
typedef ExifMetadata::const_iterator&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ExifData.html#2b8ac7a474d6527c0f3f6a0a9cebef77">const_iterator</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">ExifMetadata const iterator type. <br></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="c90ba2bb8997acf40ee8f9dfdd9c44ad"></a><!-- doxytag: member="Exiv2::ExifData::ExifData" ref="c90ba2bb8997acf40ee8f9dfdd9c44ad" args="()" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ExifData.html#c90ba2bb8997acf40ee8f9dfdd9c44ad">ExifData</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="8634929b7ef1dd1d8a077a3726ae2e78"></a><!-- doxytag: member="Exiv2::ExifData::ExifData" ref="8634929b7ef1dd1d8a077a3726ae2e78" args="(const ExifData &amp;rhs)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ExifData.html#8634929b7ef1dd1d8a077a3726ae2e78">ExifData</a> (const <a class="el" href="classExiv2_1_1ExifData.html">ExifData</a> &amp;rhs)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Copy constructor (Todo: copy image data also). <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3cddc534c05c3d051990a42874e19730"></a><!-- doxytag: member="Exiv2::ExifData::~ExifData" ref="3cddc534c05c3d051990a42874e19730" args="()" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ExifData.html#3cddc534c05c3d051990a42874e19730">~ExifData</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="d023092a4b30bef6c77a3558ba9dc9b7"></a><!-- doxytag: member="Exiv2::ExifData::operator=" ref="d023092a4b30bef6c77a3558ba9dc9b7" args="(const ExifData &amp;rhs)" -->
<a class="el" href="classExiv2_1_1ExifData.html">ExifData</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ExifData.html#d023092a4b30bef6c77a3558ba9dc9b7">operator=</a> (const <a class="el" href="classExiv2_1_1ExifData.html">ExifData</a> &amp;rhs)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Assignment operator (Todo: assign image data also). <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ExifData.html#2f3aad57089a740ec53fb4d38fb6f7b7">load</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">Load the Exif data from a byte buffer. The data buffer must start with the TIFF header. This method is deprecated. Use <a class="el" href="classExiv2_1_1ImageFactory.html#981013bdf0d31ec7f64f0f6339fe323e">ImageFactory::open()</a> instead.  <a href="#2f3aad57089a740ec53fb4d38fb6f7b7"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classExiv2_1_1DataBuf.html">DataBuf</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ExifData.html#6e2dc3e18ddb3a8e7e82518e80e9c5c9">copy</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Write the Exif data to a data buffer, which is returned. The caller owns this copy and DataBuf ensures that it will be deleted. The copied data starts with the TIFF header.  <a href="#6e2dc3e18ddb3a8e7e82518e80e9c5c9"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classExiv2_1_1Exifdatum.html">Exifdatum</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ExifData.html#5c56fca27e6c2c3700d6138e8401f39e">operator[]</a> (const std::string &amp;key)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns a reference to the Exifdatum that is associated with a particular <em>key</em>. If ExifData does not already contain such an Exifdatum, operator[] adds object <em>Exifdatum(key)</em>.  <a href="#5c56fca27e6c2c3700d6138e8401f39e"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="841b205ae0af419c2639f86d9bf03267"></a><!-- doxytag: member="Exiv2::ExifData::add" ref="841b205ae0af419c2639f86d9bf03267" args="(Entries::const_iterator begin, Entries::const_iterator end, ByteOrder byteOrder)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ExifData.html#841b205ae0af419c2639f86d9bf03267">add</a> (Entries::const_iterator begin, Entries::const_iterator end, <a class="el" href="namespaceExiv2.html#94c225faf6d6c611a3828fae1c28efa6">ByteOrder</a> byteOrder)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Add all (IFD) entries in the range from iterator position begin to iterator position end to the Exif metadata. No duplicate checks are performed, i.e., it is possible to add multiple metadata with the same key. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="91d231cd1b9fefc311c5166e30ab66eb"></a><!-- doxytag: member="Exiv2::ExifData::add" ref="91d231cd1b9fefc311c5166e30ab66eb" args="(const ExifKey &amp;key, const Value *pValue)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ExifData.html#91d231cd1b9fefc311c5166e30ab66eb">add</a> (const <a class="el" href="classExiv2_1_1ExifKey.html">ExifKey</a> &amp;key, const <a class="el" href="classExiv2_1_1Value.html">Value</a> *pValue)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Add an <a class="el" href="classExiv2_1_1Exifdatum.html">Exifdatum</a> from the supplied key and value pair. This method copies (clones) key and value. No duplicate checks are performed, i.e., it is possible to add multiple metadata with the same key. <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_1ExifData.html#d809ad2a4689a15a899d1ddba954ae2b">add</a> (const <a class="el" href="classExiv2_1_1Exifdatum.html">Exifdatum</a> &amp;exifdatum)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Add a copy of the <em>exifdatum</em> to the Exif metadata. No duplicate checks are performed, i.e., it is possible to add multiple metadata with the same key.  <a href="#d809ad2a4689a15a899d1ddba954ae2b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="13b24f0ee2a3f585cf714b9418b75edd"></a><!-- doxytag: member="Exiv2::ExifData::erase" ref="13b24f0ee2a3f585cf714b9418b75edd" args="(iterator pos)" -->
<a class="el" href="classExiv2_1_1ExifData.html#02e2a2acb4cfeb0f7755c1a45f94106f">iterator</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ExifData.html#13b24f0ee2a3f585cf714b9418b75edd">erase</a> (<a class="el" href="classExiv2_1_1ExifData.html#02e2a2acb4cfeb0f7755c1a45f94106f">iterator</a> pos)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Delete the <a class="el" href="classExiv2_1_1Exifdatum.html">Exifdatum</a> at iterator position <em>pos</em>, return the position of the next exifdatum. Note that iterators into the metadata, including <em>pos</em>, are potentially invalidated by this call. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1d8ccafb025f9d5800686903b6250f2b"></a><!-- doxytag: member="Exiv2::ExifData::clear" ref="1d8ccafb025f9d5800686903b6250f2b" args="()" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ExifData.html#1d8ccafb025f9d5800686903b6250f2b">clear</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Delete all <a class="el" href="classExiv2_1_1Exifdatum.html">Exifdatum</a> instances resulting in an empty container. Note that this also removes thumbnails. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9a52cead52e69e79252ffd7ee5bc8818"></a><!-- doxytag: member="Exiv2::ExifData::sortByKey" ref="9a52cead52e69e79252ffd7ee5bc8818" args="()" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ExifData.html#9a52cead52e69e79252ffd7ee5bc8818">sortByKey</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sort metadata by key. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1495692d4d076247380549214cbf0cc7"></a><!-- doxytag: member="Exiv2::ExifData::sortByTag" ref="1495692d4d076247380549214cbf0cc7" args="()" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ExifData.html#1495692d4d076247380549214cbf0cc7">sortByTag</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sort metadata by tag. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="53bce2980ee060fc2da5fe6751f51db9"></a><!-- doxytag: member="Exiv2::ExifData::begin" ref="53bce2980ee060fc2da5fe6751f51db9" args="()" -->
<a class="el" href="classExiv2_1_1ExifData.html#02e2a2acb4cfeb0f7755c1a45f94106f">iterator</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ExifData.html#53bce2980ee060fc2da5fe6751f51db9">begin</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Begin of the metadata. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9c15177b03489e3d4bb81e9acc1165fe"></a><!-- doxytag: member="Exiv2::ExifData::end" ref="9c15177b03489e3d4bb81e9acc1165fe" args="()" -->
<a class="el" href="classExiv2_1_1ExifData.html#02e2a2acb4cfeb0f7755c1a45f94106f">iterator</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ExifData.html#9c15177b03489e3d4bb81e9acc1165fe">end</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">End of the metadata. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9700e579aef8fd1845dd5da59b608773"></a><!-- doxytag: member="Exiv2::ExifData::findKey" ref="9700e579aef8fd1845dd5da59b608773" args="(const ExifKey &amp;key)" -->
<a class="el" href="classExiv2_1_1ExifData.html#02e2a2acb4cfeb0f7755c1a45f94106f">iterator</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ExifData.html#9700e579aef8fd1845dd5da59b608773">findKey</a> (const <a class="el" href="classExiv2_1_1ExifKey.html">ExifKey</a> &amp;key)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Find a <a class="el" href="classExiv2_1_1Exifdatum.html">Exifdatum</a> with the given <em>key</em>, return an iterator to it. If multiple metadata with the same key exist, it is undefined which of the matching metadata is found. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classExiv2_1_1ExifData.html#02e2a2acb4cfeb0f7755c1a45f94106f">iterator</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ExifData.html#5994212de541e2828e6694ca2470dc83">findIfdIdIdx</a> (<a class="el" href="namespaceExiv2.html#1615152767a506a955c9d13443b56b62">IfdId</a> ifdId, int idx)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Find the <a class="el" href="classExiv2_1_1Exifdatum.html">Exifdatum</a> with the given <em>ifdId</em> and <em>idx</em>, return an iterator to it.  <a href="#5994212de541e2828e6694ca2470dc83"></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_1ExifData.html#2601586bd2c7f1e198bb3a9454397bd7">setJpegThumbnail</a> (const std::string &amp;path, <a class="el" href="namespaceExiv2.html#edcaa9af0563cbd00a19b040d5aa7a70">URational</a> xres, <a class="el" href="namespaceExiv2.html#edcaa9af0563cbd00a19b040d5aa7a70">URational</a> yres, uint16_t unit)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the Exif thumbnail to the Jpeg image <em>path</em>. Set XResolution, YResolution and ResolutionUnit to <em>xres</em>, <em>yres</em> and <em>unit</em>, respectively.  <a href="#2601586bd2c7f1e198bb3a9454397bd7"></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_1ExifData.html#ce60eaaa223ce90e572c74895d0c1b3b">setJpegThumbnail</a> (const <a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> *buf, long size, <a class="el" href="namespaceExiv2.html#edcaa9af0563cbd00a19b040d5aa7a70">URational</a> xres, <a class="el" href="namespaceExiv2.html#edcaa9af0563cbd00a19b040d5aa7a70">URational</a> yres, uint16_t unit)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the Exif thumbnail to the Jpeg image pointed to by <em>buf</em>, and size <em>size</em>. Set XResolution, YResolution and ResolutionUnit to <em>xres</em>, <em>yres</em> and <em>unit</em>, respectively.  <a href="#ce60eaaa223ce90e572c74895d0c1b3b"></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_1ExifData.html#f1569d57a60afa07f6822d1e98e70711">setJpegThumbnail</a> (const std::string &amp;path)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the Exif thumbnail to the Jpeg image <em>path</em>.  <a href="#f1569d57a60afa07f6822d1e98e70711"></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_1ExifData.html#44c6f74de638e60d4219061776458f6c">setJpegThumbnail</a> (const <a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> *buf, long size)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the Exif thumbnail to the Jpeg image pointed to by <em>buf</em>, and size <em>size</em>.  <a href="#44c6f74de638e60d4219061776458f6c"></a><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_1ExifData.html#7616fcab93d80fd6591ddd07b14cfc1e">eraseThumbnail</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Delete the thumbnail from the Exif data. Removes all Exif.Thumbnail.*, i.e., IFD1 metadata.  <a href="#7616fcab93d80fd6591ddd07b14cfc1e"></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="97cf11fcf9dcaf7469becac408414f63"></a><!-- doxytag: member="Exiv2::ExifData::begin" ref="97cf11fcf9dcaf7469becac408414f63" args="() const " -->
<a class="el" href="classExiv2_1_1ExifData.html#2b8ac7a474d6527c0f3f6a0a9cebef77">const_iterator</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ExifData.html#97cf11fcf9dcaf7469becac408414f63">begin</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Begin of the metadata. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c0782f9bee7ddad3cf9f74f30a961d6b"></a><!-- doxytag: member="Exiv2::ExifData::end" ref="c0782f9bee7ddad3cf9f74f30a961d6b" args="() const " -->
<a class="el" href="classExiv2_1_1ExifData.html#2b8ac7a474d6527c0f3f6a0a9cebef77">const_iterator</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ExifData.html#c0782f9bee7ddad3cf9f74f30a961d6b">end</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">End of the metadata. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="db57edad9a63385cb0be74bdfe3d01b6"></a><!-- doxytag: member="Exiv2::ExifData::findKey" ref="db57edad9a63385cb0be74bdfe3d01b6" args="(const ExifKey &amp;key) const " -->
<a class="el" href="classExiv2_1_1ExifData.html#2b8ac7a474d6527c0f3f6a0a9cebef77">const_iterator</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ExifData.html#db57edad9a63385cb0be74bdfe3d01b6">findKey</a> (const <a class="el" href="classExiv2_1_1ExifKey.html">ExifKey</a> &amp;key) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Find an exifdatum with the given <em>key</em>, return a const iterator to it. If multiple metadata with the same key exist, it is undefined which of the matching metadata is found. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classExiv2_1_1ExifData.html#2b8ac7a474d6527c0f3f6a0a9cebef77">const_iterator</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ExifData.html#c1f4b07d80d810cbe33153e1909291f6">findIfdIdIdx</a> (<a class="el" href="namespaceExiv2.html#1615152767a506a955c9d13443b56b62">IfdId</a> ifdId, int idx) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Find the exifdatum with the given <em>ifdId</em> and <em>idx</em>, return an iterator to it.  <a href="#c1f4b07d80d810cbe33153e1909291f6"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4993c68fbb50731014c307852875c731"></a><!-- doxytag: member="Exiv2::ExifData::empty" ref="4993c68fbb50731014c307852875c731" args="() const " -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ExifData.html#4993c68fbb50731014c307852875c731">empty</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return true if there is no Exif metadata. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5feeccc886934b66e1b5b1ec9128ef28"></a><!-- doxytag: member="Exiv2::ExifData::count" ref="5feeccc886934b66e1b5b1ec9128ef28" args="() const " -->
long&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ExifData.html#5feeccc886934b66e1b5b1ec9128ef28">count</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the number of metadata entries. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5e2a0986e237e4b914d72a3dd5f33342"></a><!-- doxytag: member="Exiv2::ExifData::byteOrder" ref="5e2a0986e237e4b914d72a3dd5f33342" args="() const " -->
<a class="el" href="namespaceExiv2.html#94c225faf6d6c611a3828fae1c28efa6">ByteOrder</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ExifData.html#5e2a0986e237e4b914d72a3dd5f33342">byteOrder</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the byte order. Default is little endian. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ExifData.html#1696d6fff4bcee1c25ae8927ba353238">writeThumbnail</a> (const std::string &amp;path) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Write the thumbnail image to a file. A filename extension is appended to <em>path</em> according to the image type of the thumbnail, so <em>path</em> should not include an extension. This will overwrite an existing file of the same name.  <a href="#1696d6fff4bcee1c25ae8927ba353238"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="20c413da0dbf4139dac20f17a7ea1939"></a><!-- doxytag: member="Exiv2::ExifData::copyThumbnail" ref="20c413da0dbf4139dac20f17a7ea1939" args="() const " -->
<a class="el" href="classExiv2_1_1DataBuf.html">DataBuf</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ExifData.html#20c413da0dbf4139dac20f17a7ea1939">copyThumbnail</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the thumbnail image in a DataBuf. The caller owns the data buffer and DataBuf ensures that it will be deleted. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d5b63c1c499fceaac90a0a9f0adbd4dd"></a><!-- doxytag: member="Exiv2::ExifData::thumbnailFormat" ref="d5b63c1c499fceaac90a0a9f0adbd4dd" args="() const " -->
const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ExifData.html#d5b63c1c499fceaac90a0a9f0adbd4dd">thumbnailFormat</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return a short string describing the format of the Exif thumbnail ("TIFF", "JPEG"). <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="66d1b025e365ec807a3e15f4ead12edf"></a><!-- doxytag: member="Exiv2::ExifData::thumbnailExtension" ref="66d1b025e365ec807a3e15f4ead12edf" args="() const " -->
const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ExifData.html#66d1b025e365ec807a3e15f4ead12edf">thumbnailExtension</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the file extension for the Exif thumbnail depending on the format (".tif", ".jpg"). <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f49ce35fe09a268d67e4d40a5832b313"></a><!-- doxytag: member="Exiv2::ExifData::getThumbnail" ref="f49ce35fe09a268d67e4d40a5832b313" args="() const " -->
<a class="el" href="classExiv2_1_1Thumbnail.html#cf289890ffef7268ca3d7bfdb8123676">Thumbnail::AutoPtr</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1ExifData.html#f49ce35fe09a268d67e4d40a5832b313">getThumbnail</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return a thumbnail object of the correct type, corresponding to the current Exif data. Caller owns this object and the auto pointer ensures that it will be deleted. <br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A container for Exif data. This is a top-level class of the Exiv2 library. The container holds <a class="el" href="classExiv2_1_1Exifdatum.html">Exifdatum</a> objects. 
<p>
Provide high-level access to the Exif data of an image:<ul>
<li>read Exif information from JPEG files</li><li>access metadata through keys and standard C++ iterators</li><li>add, modify and delete metadata</li><li>write Exif data to JPEG files</li><li>extract Exif metadata to files, insert from these files</li><li>extract and delete Exif thumbnail (JPEG and TIFF thumbnails) </li></ul>
<dl compact><dt><b>Examples: </b></dt><dd>

<p>
<a class="el" href="addmoddel_8cpp-example.html#_a0">addmoddel.cpp</a>, <a class="el" href="exifcomment_8cpp-example.html#_a19">exifcomment.cpp</a>, and <a class="el" href="exifprint_8cpp-example.html#_a22">exifprint.cpp</a>.</dl>
<p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="d809ad2a4689a15a899d1ddba954ae2b"></a><!-- doxytag: member="Exiv2::ExifData::add" ref="d809ad2a4689a15a899d1ddba954ae2b" args="(const Exifdatum &amp;exifdatum)" --><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::ExifData::add           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <a class="el" href="classExiv2_1_1Exifdatum.html">Exifdatum</a> &amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>exifdatum</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Add a copy of the <em>exifdatum</em> to the Exif metadata. No duplicate checks are performed, i.e., it is possible to add multiple metadata with the same key. 
<p>
<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 makernote cannot be created </td></tr>
  </table>
</dl>
    </td>
  </tr>
</table>
<a class="anchor" name="6e2dc3e18ddb3a8e7e82518e80e9c5c9"></a><!-- doxytag: member="Exiv2::ExifData::copy" ref="6e2dc3e18ddb3a8e7e82518e80e9c5c9" args="()" --><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"><a class="el" href="classExiv2_1_1DataBuf.html">DataBuf</a> Exiv2::ExifData::copy           </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></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Write the Exif data to a data buffer, which is returned. The caller owns this copy and DataBuf ensures that it will be deleted. The copied data starts with the TIFF header. 
<p>
Tries to update the original data buffer and write it back with minimal changes, in a 'non-intrusive' fashion, if possible. In this case, tag data that <a class="el" href="classExiv2_1_1ExifData.html">ExifData</a> does not understand stand a good chance to remain valid. (In particular, if the Exif data contains a Makernote in IFD format, the offsets in its IFD will remain valid.) <br>
 If 'non-intrusive' writing is not possible, the Exif data will be re-built from scratch, in which case the absolute position of the metadata entries within the data buffer may (and in most cases will) be different from their original position. Furthermore, in this case, the Exif data is updated with the metadata from the actual thumbnail image (overriding existing metadata).<p>
<dl compact><dt><b>Returns:</b></dt><dd>A DataBuf containing the Exif data. </dd></dl>
    </td>
  </tr>
</table>
<a class="anchor" name="7616fcab93d80fd6591ddd07b14cfc1e"></a><!-- doxytag: member="Exiv2::ExifData::eraseThumbnail" ref="7616fcab93d80fd6591ddd07b14cfc1e" args="()" --><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::ExifData::eraseThumbnail           </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></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Delete the thumbnail from the Exif data. Removes all Exif.Thumbnail.*, i.e., IFD1 metadata. 
<p>
<dl compact><dt><b>Returns:</b></dt><dd>The number of bytes of thumbnail data erased from the original Exif data. Note that the original image size may differ from the size of the image after deleting the thumbnail by more than this number. This is the case if the Exif data contains extra bytes (often at the end of the Exif block) or gaps and the thumbnail is not located at the end of the Exif block so that non-intrusive writing of a truncated Exif block is not possible. Instead it is in this case necessary to write the Exif data, without the thumbnail, from the metadata and all extra bytes and gaps are lost, resulting in a smaller image. </dd></dl>
    </td>
  </tr>
</table>
<a class="anchor" name="c1f4b07d80d810cbe33153e1909291f6"></a><!-- doxytag: member="Exiv2::ExifData::findIfdIdIdx" ref="c1f4b07d80d810cbe33153e1909291f6" args="(IfdId ifdId, int idx) 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"><a class="el" href="classExiv2_1_1ExifData.html#2b8ac7a474d6527c0f3f6a0a9cebef77">ExifData::const_iterator</a> Exiv2::ExifData::findIfdIdIdx           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="namespaceExiv2.html#1615152767a506a955c9d13443b56b62">IfdId</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>ifdId</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>int&nbsp;</td>
          <td class="mdname" nowrap> <em>idx</em></td>
        </tr>
        <tr>
          <td class="md"></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"> const</td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Find the exifdatum with the given <em>ifdId</em> and <em>idx</em>, return an iterator to it. 
<p>
This method can be used to uniquely identify a <a class="el" href="classExiv2_1_1Exifdatum.html">Exifdatum</a> that was created from an IFD or from the makernote (with idx greater than 0). Metadata created by an application (not read from an IFD or a makernote) all have their idx field set to 0, i.e., they cannot be uniquely identified with this method. If multiple metadata with the same key exist, it is undefined which of the matching metadata is found.     </td>
  </tr>
</table>
<a class="anchor" name="5994212de541e2828e6694ca2470dc83"></a><!-- doxytag: member="Exiv2::ExifData::findIfdIdIdx" ref="5994212de541e2828e6694ca2470dc83" args="(IfdId ifdId, int idx)" --><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"><a class="el" href="classExiv2_1_1ExifData.html#02e2a2acb4cfeb0f7755c1a45f94106f">ExifData::iterator</a> Exiv2::ExifData::findIfdIdIdx           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="namespaceExiv2.html#1615152767a506a955c9d13443b56b62">IfdId</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>ifdId</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>int&nbsp;</td>
          <td class="mdname" nowrap> <em>idx</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>
Find the <a class="el" href="classExiv2_1_1Exifdatum.html">Exifdatum</a> with the given <em>ifdId</em> and <em>idx</em>, return an iterator to it. 
<p>
This method can be used to uniquely identify an exifdatum that was created from an IFD or from the makernote (with idx greater than 0). Metadata created by an application (not read from an IFD or a makernote) all have their idx field set to 0, i.e., they cannot be uniquely identified with this method. If multiple metadata with the same key exist, it is undefined which of the matching metadata is found.     </td>
  </tr>
</table>
<a class="anchor" name="2f3aad57089a740ec53fb4d38fb6f7b7"></a><!-- doxytag: member="Exiv2::ExifData::load" ref="2f3aad57089a740ec53fb4d38fb6f7b7" 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">int Exiv2::ExifData::load           </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>
Load the Exif data from a byte buffer. The data buffer must start with the TIFF header. This method is deprecated. Use <a class="el" href="classExiv2_1_1ImageFactory.html#981013bdf0d31ec7f64f0f6339fe323e">ImageFactory::open()</a> instead. 
<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 buffer to read from </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>len</em>&nbsp;</td><td>Number of bytes in the data buffer </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>0 if successful. </dd></dl>
    </td>
  </tr>
</table>
<a class="anchor" name="5c56fca27e6c2c3700d6138e8401f39e"></a><!-- doxytag: member="Exiv2::ExifData::operator[]" ref="5c56fca27e6c2c3700d6138e8401f39e" args="(const std::string &amp;key)" --><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"><a class="el" href="classExiv2_1_1Exifdatum.html">Exifdatum</a> &amp; Exiv2::ExifData::operator[]           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const std::string &amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>key</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Returns a reference to the Exifdatum that is associated with a particular <em>key</em>. If ExifData does not already contain such an Exifdatum, operator[] adds object <em>Exifdatum(key)</em>. 
<p>
<dl compact><dt><b>Note:</b></dt><dd>Since operator[] might insert a new element, it can't be a const member function. </dd></dl>
    </td>
  </tr>
</table>
<a class="anchor" name="44c6f74de638e60d4219061776458f6c"></a><!-- doxytag: member="Exiv2::ExifData::setJpegThumbnail" ref="44c6f74de638e60d4219061776458f6c" args="(const byte *buf, long size)" --><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::ExifData::setJpegThumbnail           </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>size</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 Exif thumbnail to the Jpeg image pointed to by <em>buf</em>, and size <em>size</em>. 
<p>
This sets only the Compression, JPEGInterchangeFormat and JPEGInterchangeFormatLength tags, which is not all the thumbnail Exif information mandatory according to the Exif standard. (But it's enough to work with the thumbnail.)<p>
<dl compact><dt><b>Note:</b></dt><dd>No checks on the image format or size are performed. <p>
Additional existing Exif thumbnail tags are not modified. </dd></dl>
    </td>
  </tr>
</table>
<a class="anchor" name="f1569d57a60afa07f6822d1e98e70711"></a><!-- doxytag: member="Exiv2::ExifData::setJpegThumbnail" ref="f1569d57a60afa07f6822d1e98e70711" args="(const std::string &amp;path)" --><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::ExifData::setJpegThumbnail           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const std::string &amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>path</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Set the Exif thumbnail to the Jpeg image <em>path</em>. 
<p>
This sets only the Compression, JPEGInterchangeFormat and JPEGInterchangeFormatLength tags, which is not all the thumbnail Exif information mandatory according to the Exif standard. (But it's enough to work with the thumbnail.)<p>
<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 reading the file fails.</td></tr>
  </table>
</dl>
<dl compact><dt><b>Note:</b></dt><dd>No checks on the file format or size are performed. <p>
Additional existing Exif thumbnail tags are not modified. </dd></dl>
    </td>
  </tr>
</table>
<a class="anchor" name="ce60eaaa223ce90e572c74895d0c1b3b"></a><!-- doxytag: member="Exiv2::ExifData::setJpegThumbnail" ref="ce60eaaa223ce90e572c74895d0c1b3b" args="(const byte *buf, long size, URational xres, URational yres, uint16_t unit)" --><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::ExifData::setJpegThumbnail           </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>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#edcaa9af0563cbd00a19b040d5aa7a70">URational</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>xres</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#edcaa9af0563cbd00a19b040d5aa7a70">URational</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>yres</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>uint16_t&nbsp;</td>
          <td class="mdname" nowrap> <em>unit</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 Exif thumbnail to the Jpeg image pointed to by <em>buf</em>, and size <em>size</em>. Set XResolution, YResolution and ResolutionUnit to <em>xres</em>, <em>yres</em> and <em>unit</em>, respectively. 
<p>
This results in the minimal thumbnail tags being set for a Jpeg thumbnail, as mandated by the Exif standard.<p>
<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 reading the file fails.</td></tr>
  </table>
</dl>
<dl compact><dt><b>Note:</b></dt><dd>No checks on the image format or size are performed. <p>
Additional existing Exif thumbnail tags are not modified. <p>
The Jpeg image inserted as thumbnail image should not itself contain Exif data (or other metadata), as existing applications may have problems with that. (The preview application that comes with OS X for one.) - David Harvey. </dd></dl>
    </td>
  </tr>
</table>
<a class="anchor" name="2601586bd2c7f1e198bb3a9454397bd7"></a><!-- doxytag: member="Exiv2::ExifData::setJpegThumbnail" ref="2601586bd2c7f1e198bb3a9454397bd7" args="(const std::string &amp;path, URational xres, URational yres, uint16_t unit)" --><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::ExifData::setJpegThumbnail           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const std::string &amp;&nbsp;</td>
          <td class="mdname" nowrap> <em>path</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#edcaa9af0563cbd00a19b040d5aa7a70">URational</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>xres</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#edcaa9af0563cbd00a19b040d5aa7a70">URational</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>yres</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap>uint16_t&nbsp;</td>
          <td class="mdname" nowrap> <em>unit</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 Exif thumbnail to the Jpeg image <em>path</em>. Set XResolution, YResolution and ResolutionUnit to <em>xres</em>, <em>yres</em> and <em>unit</em>, respectively. 
<p>
This results in the minimal thumbnail tags being set for a Jpeg thumbnail, as mandated by the Exif standard.<p>
<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 reading the file fails.</td></tr>
  </table>
</dl>
<dl compact><dt><b>Note:</b></dt><dd>No checks on the file format or size are performed. <p>
Additional existing Exif thumbnail tags are not modified. <p>
The Jpeg image inserted as thumbnail image should not itself contain Exif data (or other metadata), as existing applications may have problems with that. (The preview application that comes with OS X for one.) - David Harvey. </dd></dl>
    </td>
  </tr>
</table>
<a class="anchor" name="1696d6fff4bcee1c25ae8927ba353238"></a><!-- doxytag: member="Exiv2::ExifData::writeThumbnail" ref="1696d6fff4bcee1c25ae8927ba353238" args="(const std::string &amp;path) 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">int Exiv2::ExifData::writeThumbnail           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const std::string &amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>path</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Write the thumbnail image to a file. A filename extension is appended to <em>path</em> according to the image type of the thumbnail, so <em>path</em> should not include an extension. This will overwrite an existing file of the same name. 
<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>path</em>&nbsp;</td><td>Path of the filename without image type extension</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 writing to the file fails.</td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>0 if successful;<br>
 8 if the Exif data does not contain a thumbnail. </dd></dl>
    </td>
  </tr>
</table>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="exif_8hpp.html">exif.hpp</a><li>exif.cpp</ul>
<hr size="1"><address style="align: right;"><small>Generated on Fri Jun 2 23:54:57 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>