41
51
<tr><td class="mdescLeft"> </td><td class="mdescRight">Entries iterator type <br></td></tr>
42
52
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
43
<tr><td colspan="2"><div class="groupHeader">Creators</div></td></tr>
44
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="35ca0bcd5456f652da470abc6796252b"></a><!-- doxytag: member="Exiv2::Ifd::Ifd" ref="35ca0bcd5456f652da470abc6796252b" args="(IfdId ifdId=ifdIdNotSet)" -->
45
</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Ifd.html#35ca0bcd5456f652da470abc6796252b">Ifd</a> (<a class="el" href="namespaceExiv2.html#1615152767a506a955c9d13443b56b62">IfdId</a> ifdId=ifdIdNotSet)</td></tr>
47
<tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor. Allows to set the IFD identifier. Memory management is enabled, offset is set to 0. Serves as default constructor. <br></td></tr>
48
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4152ff215d6ef0af0f25a4399f47e766"></a><!-- doxytag: member="Exiv2::Ifd::Ifd" ref="4152ff215d6ef0af0f25a4399f47e766" args="(IfdId ifdId, long offset)" -->
49
</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Ifd.html#4152ff215d6ef0af0f25a4399f47e766">Ifd</a> (<a class="el" href="namespaceExiv2.html#1615152767a506a955c9d13443b56b62">IfdId</a> ifdId, long offset)</td></tr>
51
<tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor. Allows to set the IFD identifier and the offset of the IFD from the start of TIFF header. Memory management is enabled. <br></td></tr>
52
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c2742ff3480abd123bec2a169bb9ab6a"></a><!-- doxytag: member="Exiv2::Ifd::Ifd" ref="c2742ff3480abd123bec2a169bb9ab6a" args="(IfdId ifdId, long offset, bool alloc, bool hasNext=true)" -->
53
</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Ifd.html#c2742ff3480abd123bec2a169bb9ab6a">Ifd</a> (<a class="el" href="namespaceExiv2.html#1615152767a506a955c9d13443b56b62">IfdId</a> ifdId, long offset, bool alloc, bool hasNext=true)</td></tr>
55
<tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor. Allows to set the IFD identifier, offset of the IFD from the start of TIFF header, choose whether or not memory management is required for the Entries, and decide whether this IFD has a next pointer. <br></td></tr>
56
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="868c86a9a804070023bfb81836d0a358"></a><!-- doxytag: member="Exiv2::Ifd::Ifd" ref="868c86a9a804070023bfb81836d0a358" args="(const Ifd &rhs)" -->
57
</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Ifd.html#868c86a9a804070023bfb81836d0a358">Ifd</a> (const <a class="el" href="classExiv2_1_1Ifd.html">Ifd</a> &rhs)</td></tr>
59
<tr><td class="mdescLeft"> </td><td class="mdescRight">Copy constructor. <br></td></tr>
60
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="42a28a311e121156bf024e5554d30519"></a><!-- doxytag: member="Exiv2::Ifd::~Ifd" ref="42a28a311e121156bf024e5554d30519" args="()" -->
61
</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Ifd.html#42a28a311e121156bf024e5554d30519">~Ifd</a> ()</td></tr>
63
<tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <br></td></tr>
64
53
<tr><td colspan="2"><div class="groupHeader">Manipulators</div></td></tr>
65
54
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Ifd.html#8d86b9dfa71fb413978822ed388d5f78">read</a> (const <a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> *buf, long len, long start, <a class="el" href="namespaceExiv2.html#94c225faf6d6c611a3828fae1c28efa6">ByteOrder</a> byteOrder, long shift=0)</td></tr>
100
89
<a class="el" href="classExiv2_1_1Ifd.html#9c93a8ce8a9645aa66c152641a91fb56">iterator</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Ifd.html#ea062007f866b97a9ce6867fb1e52fe1">end</a> ()</td></tr>
102
91
<tr><td class="mdescLeft"> </td><td class="mdescRight">End of the entries. <br></td></tr>
103
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="eea8815df5c4d997aabeca6c433e5419"></a><!-- doxytag: member="Exiv2::Ifd::findIdx" ref="eea8815df5c4d997aabeca6c433e5419" args="(int idx)" -->
104
<a class="el" href="classExiv2_1_1Ifd.html#9c93a8ce8a9645aa66c152641a91fb56">iterator</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Ifd.html#eea8815df5c4d997aabeca6c433e5419">findIdx</a> (int idx)</td></tr>
92
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7d69be6d51afd457322ffa055fcfc568"></a><!-- doxytag: member="Exiv2::Ifd::findIdx" ref="7d69be6d51afd457322ffa055fcfc568" args="(int idx)" -->
93
<a class="el" href="classExiv2_1_1Ifd.html#9c93a8ce8a9645aa66c152641a91fb56">iterator</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Ifd.html#7d69be6d51afd457322ffa055fcfc568">findIdx</a> (int idx)</td></tr>
106
95
<tr><td class="mdescLeft"> </td><td class="mdescRight">Find an IFD entry by idx, return an iterator into the entries list. <br></td></tr>
107
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ed5cbf1618df16baf196b8751784ce90"></a><!-- doxytag: member="Exiv2::Ifd::findTag" ref="ed5cbf1618df16baf196b8751784ce90" args="(uint16_t tag)" -->
108
<a class="el" href="classExiv2_1_1Ifd.html#9c93a8ce8a9645aa66c152641a91fb56">iterator</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Ifd.html#ed5cbf1618df16baf196b8751784ce90">findTag</a> (uint16_t tag)</td></tr>
96
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9f2ed8194ec2f2a92d400807102cce43"></a><!-- doxytag: member="Exiv2::Ifd::findTag" ref="9f2ed8194ec2f2a92d400807102cce43" args="(uint16_t tag)" -->
97
<a class="el" href="classExiv2_1_1Ifd.html#9c93a8ce8a9645aa66c152641a91fb56">iterator</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Ifd.html#9f2ed8194ec2f2a92d400807102cce43">findTag</a> (uint16_t tag)</td></tr>
110
99
<tr><td class="mdescLeft"> </td><td class="mdescRight">Find an IFD entry by tag, return an iterator into the entries list. <br></td></tr>
111
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Ifd.html#5f6bb37fc8c82ca5e584f7353fc77ce9">updateBase</a> (<a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> *pNewBase)</td></tr>
100
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Ifd.html#fdc96f99d251a70a77e16d24cde6aaf2">updateBase</a> (<a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> *pNewBase)</td></tr>
113
<tr><td class="mdescLeft"> </td><td class="mdescRight">Update the base pointer of the <a class="el" href="classExiv2_1_1Ifd.html">Ifd</a> and all entries to <em>pNewBase</em>. <a href="#5f6bb37fc8c82ca5e584f7353fc77ce9"></a><br></td></tr>
102
<tr><td class="mdescLeft"> </td><td class="mdescRight">Update the base pointer of the <a class="el" href="classExiv2_1_1Ifd.html">Ifd</a> and all entries to <em>pNewBase</em>. <a href="#fdc96f99d251a70a77e16d24cde6aaf2"></a><br></td></tr>
114
103
<tr><td colspan="2"><div class="groupHeader">Accessors</div></td></tr>
115
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Ifd.html#bff72dd26220e5f6d30288f45af42e0a">readSubIfd</a> (<a class="el" href="classExiv2_1_1Ifd.html">Ifd</a> &dest, const <a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> *buf, long len, <a class="el" href="namespaceExiv2.html#94c225faf6d6c611a3828fae1c28efa6">ByteOrder</a> byteOrder, uint16_t tag) const </td></tr>
104
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Ifd.html#dec4cd1817a3542422ca488b0a3bd58d">readSubIfd</a> (<a class="el" href="classExiv2_1_1Ifd.html">Ifd</a> &dest, const <a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> *buf, long len, <a class="el" href="namespaceExiv2.html#94c225faf6d6c611a3828fae1c28efa6">ByteOrder</a> byteOrder, uint16_t tag) const</td></tr>
117
<tr><td class="mdescLeft"> </td><td class="mdescRight">Read a sub-IFD from the location pointed to by the directory entry with the given tag. <a href="#bff72dd26220e5f6d30288f45af42e0a"></a><br></td></tr>
118
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c8a8b5eeaf0437c846b160f58347b68f"></a><!-- doxytag: member="Exiv2::Ifd::alloc" ref="c8a8b5eeaf0437c846b160f58347b68f" args="() const " -->
119
bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Ifd.html#c8a8b5eeaf0437c846b160f58347b68f">alloc</a> () const </td></tr>
106
<tr><td class="mdescLeft"> </td><td class="mdescRight">Read a sub-IFD from the location pointed to by the directory entry with the given tag. <a href="#dec4cd1817a3542422ca488b0a3bd58d"></a><br></td></tr>
107
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4fb5d983a3ced0622f987441f8851583"></a><!-- doxytag: member="Exiv2::Ifd::alloc" ref="4fb5d983a3ced0622f987441f8851583" args="() const" -->
108
bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Ifd.html#4fb5d983a3ced0622f987441f8851583">alloc</a> () const</td></tr>
121
110
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the memory allocation mode, see the <a class="el" href="classExiv2_1_1Ifd.html">Ifd</a> class description for details. <br></td></tr>
122
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3f3c2d53d5e2a46b8de4219a062981b6"></a><!-- doxytag: member="Exiv2::Ifd::begin" ref="3f3c2d53d5e2a46b8de4219a062981b6" args="() const " -->
123
<a class="el" href="classExiv2_1_1Ifd.html#e1a940634eeaaf03e3635b666ee8ab06">const_iterator</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Ifd.html#3f3c2d53d5e2a46b8de4219a062981b6">begin</a> () const </td></tr>
111
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2d14160653c91512fe884b9c5f65c107"></a><!-- doxytag: member="Exiv2::Ifd::begin" ref="2d14160653c91512fe884b9c5f65c107" args="() const" -->
112
<a class="el" href="classExiv2_1_1Ifd.html#e1a940634eeaaf03e3635b666ee8ab06">const_iterator</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Ifd.html#2d14160653c91512fe884b9c5f65c107">begin</a> () const</td></tr>
125
114
<tr><td class="mdescLeft"> </td><td class="mdescRight">The first entry. <br></td></tr>
126
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8b9d389689153948e6a55a5bed90596d"></a><!-- doxytag: member="Exiv2::Ifd::end" ref="8b9d389689153948e6a55a5bed90596d" args="() const " -->
127
<a class="el" href="classExiv2_1_1Ifd.html#e1a940634eeaaf03e3635b666ee8ab06">const_iterator</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Ifd.html#8b9d389689153948e6a55a5bed90596d">end</a> () const </td></tr>
115
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="fd334a8108bd6ffb92cfe20e4d8d7aa7"></a><!-- doxytag: member="Exiv2::Ifd::end" ref="fd334a8108bd6ffb92cfe20e4d8d7aa7" args="() const" -->
116
<a class="el" href="classExiv2_1_1Ifd.html#e1a940634eeaaf03e3635b666ee8ab06">const_iterator</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Ifd.html#fd334a8108bd6ffb92cfe20e4d8d7aa7">end</a> () const</td></tr>
129
118
<tr><td class="mdescLeft"> </td><td class="mdescRight">End of the entries. <br></td></tr>
130
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="871232ca77c3eddbddac46b7fdf86a40"></a><!-- doxytag: member="Exiv2::Ifd::findIdx" ref="871232ca77c3eddbddac46b7fdf86a40" args="(int idx) const " -->
131
<a class="el" href="classExiv2_1_1Ifd.html#e1a940634eeaaf03e3635b666ee8ab06">const_iterator</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Ifd.html#871232ca77c3eddbddac46b7fdf86a40">findIdx</a> (int idx) const </td></tr>
119
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b021a2dd8e6d0e47cf2dcc163daeadec"></a><!-- doxytag: member="Exiv2::Ifd::findIdx" ref="b021a2dd8e6d0e47cf2dcc163daeadec" args="(int idx) const" -->
120
<a class="el" href="classExiv2_1_1Ifd.html#e1a940634eeaaf03e3635b666ee8ab06">const_iterator</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Ifd.html#b021a2dd8e6d0e47cf2dcc163daeadec">findIdx</a> (int idx) const</td></tr>
133
122
<tr><td class="mdescLeft"> </td><td class="mdescRight">Find an IFD entry by idx, return a const iterator into the entries list. <br></td></tr>
134
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6cadb943ad9abad002d118cb10f259fa"></a><!-- doxytag: member="Exiv2::Ifd::findTag" ref="6cadb943ad9abad002d118cb10f259fa" args="(uint16_t tag) const " -->
135
<a class="el" href="classExiv2_1_1Ifd.html#e1a940634eeaaf03e3635b666ee8ab06">const_iterator</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Ifd.html#6cadb943ad9abad002d118cb10f259fa">findTag</a> (uint16_t tag) const </td></tr>
123
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8cbcba35cb4ab1ffd589aa8864cc1ebd"></a><!-- doxytag: member="Exiv2::Ifd::findTag" ref="8cbcba35cb4ab1ffd589aa8864cc1ebd" args="(uint16_t tag) const " -->
124
<a class="el" href="classExiv2_1_1Ifd.html#e1a940634eeaaf03e3635b666ee8ab06">const_iterator</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Ifd.html#8cbcba35cb4ab1ffd589aa8864cc1ebd">findTag</a> (uint16_t tag) const </td></tr>
137
126
<tr><td class="mdescLeft"> </td><td class="mdescRight">Find an IFD entry by tag, return a const iterator into the entries list. <br></td></tr>
138
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="00a4292e936211c946594be03bad055e"></a><!-- doxytag: member="Exiv2::Ifd::ifdId" ref="00a4292e936211c946594be03bad055e" args="() const " -->
139
<a class="el" href="namespaceExiv2.html#1615152767a506a955c9d13443b56b62">IfdId</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Ifd.html#00a4292e936211c946594be03bad055e">ifdId</a> () const </td></tr>
127
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f97e03103e07096504fed576b5ad5844"></a><!-- doxytag: member="Exiv2::Ifd::ifdId" ref="f97e03103e07096504fed576b5ad5844" args="() const" -->
128
<a class="el" href="namespaceExiv2.html#1615152767a506a955c9d13443b56b62">IfdId</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Ifd.html#f97e03103e07096504fed576b5ad5844">ifdId</a> () const</td></tr>
141
130
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the IfdId of the IFD. <br></td></tr>
142
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="fb2195a0b29a87cfff6aa35437b47a9e"></a><!-- doxytag: member="Exiv2::Ifd::offset" ref="fb2195a0b29a87cfff6aa35437b47a9e" args="() const " -->
143
long </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Ifd.html#fb2195a0b29a87cfff6aa35437b47a9e">offset</a> () const </td></tr>
131
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d6fb38f21a199b2c0150014947c58993"></a><!-- doxytag: member="Exiv2::Ifd::offset" ref="d6fb38f21a199b2c0150014947c58993" args="() const" -->
132
long </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Ifd.html#d6fb38f21a199b2c0150014947c58993">offset</a> () const</td></tr>
145
134
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the offset of the IFD from the start of the TIFF header. <br></td></tr>
146
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ff751d7b774be46c37235951212321cc"></a><!-- doxytag: member="Exiv2::Ifd::dataOffset" ref="ff751d7b774be46c37235951212321cc" args="() const " -->
147
long </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Ifd.html#ff751d7b774be46c37235951212321cc">dataOffset</a> () const </td></tr>
135
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="189ffc30d3a02b91c9b4664c0de44e02"></a><!-- doxytag: member="Exiv2::Ifd::dataOffset" ref="189ffc30d3a02b91c9b4664c0de44e02" args="() const" -->
136
long </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Ifd.html#189ffc30d3a02b91c9b4664c0de44e02">dataOffset</a> () const</td></tr>
149
138
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the offset of the first data entry outside of the IFD from the start of the TIFF header, return 0 if there is none. The data offset is determined when the IFD is read. <br></td></tr>
150
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5c7a475416b7d03f5467c2b0a3f8a297"></a><!-- doxytag: member="Exiv2::Ifd::next" ref="5c7a475416b7d03f5467c2b0a3f8a297" args="() const " -->
151
uint32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Ifd.html#5c7a475416b7d03f5467c2b0a3f8a297">next</a> () const </td></tr>
139
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="65d8b6f36000c583a13838555c606d28"></a><!-- doxytag: member="Exiv2::Ifd::next" ref="65d8b6f36000c583a13838555c606d28" args="() const" -->
140
uint32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Ifd.html#65d8b6f36000c583a13838555c606d28">next</a> () const</td></tr>
153
142
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the offset to the next IFD from the start of the TIFF header. <br></td></tr>
154
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0d2baaaa5da6e435134c688faa435b24"></a><!-- doxytag: member="Exiv2::Ifd::count" ref="0d2baaaa5da6e435134c688faa435b24" args="() const " -->
155
long </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Ifd.html#0d2baaaa5da6e435134c688faa435b24">count</a> () const </td></tr>
143
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6364b41562c029cd3c5c9b7a074f2dcd"></a><!-- doxytag: member="Exiv2::Ifd::count" ref="6364b41562c029cd3c5c9b7a074f2dcd" args="() const" -->
144
long </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Ifd.html#6364b41562c029cd3c5c9b7a074f2dcd">count</a> () const</td></tr>
157
146
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the number of directory entries in the IFD. <br></td></tr>
158
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a12417574ede7fc602ec2bd4c8bedfe9"></a><!-- doxytag: member="Exiv2::Ifd::size" ref="a12417574ede7fc602ec2bd4c8bedfe9" args="() const " -->
159
long </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Ifd.html#a12417574ede7fc602ec2bd4c8bedfe9">size</a> () const </td></tr>
147
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6f61f6fb8cf5bdb6f1a7c2d30d246fd3"></a><!-- doxytag: member="Exiv2::Ifd::size" ref="6f61f6fb8cf5bdb6f1a7c2d30d246fd3" args="() const" -->
148
long </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Ifd.html#6f61f6fb8cf5bdb6f1a7c2d30d246fd3">size</a> () const</td></tr>
161
150
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the size of this IFD in bytes (IFD only, without data). <br></td></tr>
162
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ed3dbf3d4dbf003df41acbd4587df8a3"></a><!-- doxytag: member="Exiv2::Ifd::dataSize" ref="ed3dbf3d4dbf003df41acbd4587df8a3" args="() const " -->
163
long </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Ifd.html#ed3dbf3d4dbf003df41acbd4587df8a3">dataSize</a> () const </td></tr>
151
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4abb2f0fd65bedcba7948308ac0edd36"></a><!-- doxytag: member="Exiv2::Ifd::dataSize" ref="4abb2f0fd65bedcba7948308ac0edd36" args="() const" -->
152
long </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Ifd.html#4abb2f0fd65bedcba7948308ac0edd36">dataSize</a> () const</td></tr>
165
154
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return the total size of the data of this IFD in bytes; sums the size of all directory entries where size is greater than four plus the size of all data areas, i.e., all data that requires memory outside the IFD directory entries is counted. <br></td></tr>
166
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ac4f19f3ee6eccbfd2fce067d03efb1f"></a><!-- doxytag: member="Exiv2::Ifd::print" ref="ac4f19f3ee6eccbfd2fce067d03efb1f" args="(std::ostream &os, const std::string &prefix="") const " -->
167
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Ifd.html#ac4f19f3ee6eccbfd2fce067d03efb1f">print</a> (std::ostream &os, const std::string &prefix="") const </td></tr>
155
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d500fa8d35637934499cee74502737c1"></a><!-- doxytag: member="Exiv2::Ifd::print" ref="d500fa8d35637934499cee74502737c1" args="(std::ostream &os, const std::string &prefix="") const" -->
156
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Ifd.html#d500fa8d35637934499cee74502737c1">print</a> (std::ostream &os, const std::string &prefix="") const</td></tr>
169
158
<tr><td class="mdescLeft"> </td><td class="mdescRight">Print the IFD in human readable format to the given stream; begin each line with prefix. <br></td></tr>
170
159
<tr><td colspan="2"><br><h2>Friends</h2></td></tr>
184
173
An instance of class Ifd can operate in two modes, one that allocates and deallocates the memory required to store data, and one that doesn't perform such memory management. <br>
185
174
An external data buffer (not managed by Ifd) is needed for an instance of Ifd which operates in no memory management mode. The Ifd will maintain only pointers into this buffer. <br>
186
175
The mode without memory management is used to make "non-intrusive write support" possible. This allows writing to Exif data of an image without changing the data layout of the Exif data, to maximize chances that tag data, which the Exif reader may not understand (e.g., the Makernote) remains valid. A "non-intrusive write operation" is the modification of tag data without increasing the data size.<p>
187
<dl compact><dt><b>Note:</b></dt><dd>Use the mode with memory management (the default) if you are unsure or if these memory management considerations are of no concern to you.<p>
176
<dl class="note" compact><dt><b>Note:</b></dt><dd>Use the mode with memory management (the default) if you are unsure or if these memory management considerations are of no concern to you.<p>
188
177
The two different modes imply completely different copy and assignment behaviours, with the first resulting in entirely separate classes and the second mode resulting in multiple classes using one and the same data buffer. </dd></dl>
191
180
<hr><h2>Member Function Documentation</h2>
192
<a class="anchor" name="e4111e2b5234b5dab141e4fd7194eabd"></a><!-- doxytag: member="Exiv2::Ifd::copy" ref="e4111e2b5234b5dab141e4fd7194eabd" args="(byte *buf, ByteOrder byteOrder, long offset=0)" --><p>
193
<table class="mdTable" cellpadding="2" cellspacing="0">
196
<table cellpadding="0" cellspacing="0" border="0">
198
<td class="md" nowrap valign="top">long Exiv2::Ifd::copy </td>
199
<td class="md" valign="top">( </td>
200
<td class="md" nowrap valign="top"><a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> * </td>
201
<td class="mdname" nowrap> <em>buf</em>, </td>
204
<td class="md" nowrap align="right"></td>
206
<td class="md" nowrap><a class="el" href="namespaceExiv2.html#94c225faf6d6c611a3828fae1c28efa6">ByteOrder</a> </td>
207
<td class="mdname" nowrap> <em>byteOrder</em>, </td>
210
<td class="md" nowrap align="right"></td>
212
<td class="md" nowrap>long </td>
213
<td class="mdname" nowrap> <em>offset</em> = <code>0</code></td>
217
<td class="md">) </td>
218
<td class="md" colspan="2"></td>
224
<table cellspacing="5" cellpadding="0" border="0">
232
Copy the IFD to a data array, update the offsets of the IFD and all its entries, return the number of bytes written.
234
First the number of IFD entries is written (2 bytes), followed by all directory entries: tag (2), type (2), number of data components (4) and offset to the data or the data, if it occupies not more than four bytes (4). The directory entries are followed by the offset of the next IFD (4). All these fields are encoded according to the byte order argument. Data that doesn't fit into the offset fields follows immediately after the IFD entries. The offsets in the IFD are set to correctly point to the data fields, using the offset parameter or the offset of the IFD.<p>
235
<dl compact><dt><b>Parameters:</b></dt><dd>
236
<table border="0" cellspacing="2" cellpadding="0">
237
<tr><td valign="top"></td><td valign="top"><em>buf</em> </td><td>Pointer to the data buffer. The user must ensure that the buffer has enough memory. Otherwise the call results in undefined behaviour. </td></tr>
238
<tr><td valign="top"></td><td valign="top"><em>byteOrder</em> </td><td>Applicable byte order (little or big endian). </td></tr>
239
<tr><td valign="top"></td><td valign="top"><em>offset</em> </td><td>Target offset from the start of the TIFF header of the data array. The IFD offsets will be adjusted as necessary. If not given, then it is assumed that the IFD will remain at its original position, i.e., the offset of the IFD will be used. </td></tr>
242
<dl compact><dt><b>Returns:</b></dt><dd>Returns the number of characters written. </dd></dl>
246
<a class="anchor" name="8d86b9dfa71fb413978822ed388d5f78"></a><!-- doxytag: member="Exiv2::Ifd::read" ref="8d86b9dfa71fb413978822ed388d5f78" args="(const byte *buf, long len, long start, ByteOrder byteOrder, long shift=0)" --><p>
247
<table class="mdTable" cellpadding="2" cellspacing="0">
250
<table cellpadding="0" cellspacing="0" border="0">
252
<td class="md" nowrap valign="top">int Exiv2::Ifd::read </td>
253
<td class="md" valign="top">( </td>
254
<td class="md" nowrap valign="top">const <a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> * </td>
255
<td class="mdname" nowrap> <em>buf</em>, </td>
258
<td class="md" nowrap align="right"></td>
260
<td class="md" nowrap>long </td>
261
<td class="mdname" nowrap> <em>len</em>, </td>
264
<td class="md" nowrap align="right"></td>
266
<td class="md" nowrap>long </td>
267
<td class="mdname" nowrap> <em>start</em>, </td>
270
<td class="md" nowrap align="right"></td>
272
<td class="md" nowrap><a class="el" href="namespaceExiv2.html#94c225faf6d6c611a3828fae1c28efa6">ByteOrder</a> </td>
273
<td class="mdname" nowrap> <em>byteOrder</em>, </td>
276
<td class="md" nowrap align="right"></td>
278
<td class="md" nowrap>long </td>
279
<td class="mdname" nowrap> <em>shift</em> = <code>0</code></td>
283
<td class="md">) </td>
284
<td class="md" colspan="2"></td>
290
<table cellspacing="5" cellpadding="0" border="0">
181
<a class="anchor" name="8d86b9dfa71fb413978822ed388d5f78"></a><!-- doxytag: member="Exiv2::Ifd::read" ref="8d86b9dfa71fb413978822ed388d5f78" args="(const byte *buf, long len, long start, ByteOrder byteOrder, long shift=0)" -->
182
<div class="memitem">
183
<div class="memproto">
184
<table class="memname">
186
<td class="memname">int Exiv2::Ifd::read </td>
188
<td class="paramtype">const <a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> * </td>
189
<td class="paramname"> <em>buf</em>, </td>
192
<td class="paramkey"></td>
194
<td class="paramtype">long </td>
195
<td class="paramname"> <em>len</em>, </td>
198
<td class="paramkey"></td>
200
<td class="paramtype">long </td>
201
<td class="paramname"> <em>start</em>, </td>
204
<td class="paramkey"></td>
206
<td class="paramtype"><a class="el" href="namespaceExiv2.html#94c225faf6d6c611a3828fae1c28efa6">ByteOrder</a> </td>
207
<td class="paramname"> <em>byteOrder</em>, </td>
210
<td class="paramkey"></td>
212
<td class="paramtype">long </td>
213
<td class="paramname"> <em>shift</em> = <code>0</code></td><td> </td>
218
<td></td><td></td><td width="100%"></td>
298
225
Read a complete IFD and its data from a data buffer.
306
233
<tr><td valign="top"></td><td valign="top"><em>shift</em> </td><td>IFD offsets are relative to buf + shift.</td></tr>
309
<dl compact><dt><b>Returns:</b></dt><dd>0 if successful;<br>
236
<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 if successful;<br>
310
237
6 if the data buffer is too small, e.g., if an offset points beyond the provided buffer. The IFD is cleared in this case. </dd></dl>
314
<a class="anchor" name="bff72dd26220e5f6d30288f45af42e0a"></a><!-- doxytag: member="Exiv2::Ifd::readSubIfd" ref="bff72dd26220e5f6d30288f45af42e0a" args="(Ifd &dest, const byte *buf, long len, ByteOrder byteOrder, uint16_t tag) const " --><p>
315
<table class="mdTable" cellpadding="2" cellspacing="0">
318
<table cellpadding="0" cellspacing="0" border="0">
320
<td class="md" nowrap valign="top">int Exiv2::Ifd::readSubIfd </td>
321
<td class="md" valign="top">( </td>
322
<td class="md" nowrap valign="top"><a class="el" href="classExiv2_1_1Ifd.html">Ifd</a> & </td>
323
<td class="mdname" nowrap> <em>dest</em>, </td>
326
<td class="md" nowrap align="right"></td>
328
<td class="md" nowrap>const <a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> * </td>
329
<td class="mdname" nowrap> <em>buf</em>, </td>
332
<td class="md" nowrap align="right"></td>
334
<td class="md" nowrap>long </td>
335
<td class="mdname" nowrap> <em>len</em>, </td>
338
<td class="md" nowrap align="right"></td>
340
<td class="md" nowrap><a class="el" href="namespaceExiv2.html#94c225faf6d6c611a3828fae1c28efa6">ByteOrder</a> </td>
341
<td class="mdname" nowrap> <em>byteOrder</em>, </td>
344
<td class="md" nowrap align="right"></td>
346
<td class="md" nowrap>uint16_t </td>
347
<td class="mdname" nowrap> <em>tag</em></td>
351
<td class="md">) </td>
352
<td class="md" colspan="2"> const</td>
358
<table cellspacing="5" cellpadding="0" border="0">
241
<a class="anchor" name="e4111e2b5234b5dab141e4fd7194eabd"></a><!-- doxytag: member="Exiv2::Ifd::copy" ref="e4111e2b5234b5dab141e4fd7194eabd" args="(byte *buf, ByteOrder byteOrder, long offset=0)" -->
242
<div class="memitem">
243
<div class="memproto">
244
<table class="memname">
246
<td class="memname">long Exiv2::Ifd::copy </td>
248
<td class="paramtype"><a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> * </td>
249
<td class="paramname"> <em>buf</em>, </td>
252
<td class="paramkey"></td>
254
<td class="paramtype"><a class="el" href="namespaceExiv2.html#94c225faf6d6c611a3828fae1c28efa6">ByteOrder</a> </td>
255
<td class="paramname"> <em>byteOrder</em>, </td>
258
<td class="paramkey"></td>
260
<td class="paramtype">long </td>
261
<td class="paramname"> <em>offset</em> = <code>0</code></td><td> </td>
266
<td></td><td></td><td width="100%"></td>
273
Copy the IFD to a data array, update the offsets of the IFD and all its entries, return the number of bytes written.
275
First the number of IFD entries is written (2 bytes), followed by all directory entries: tag (2), type (2), number of data components (4) and offset to the data or the data, if it occupies not more than four bytes (4). The directory entries are followed by the offset of the next IFD (4). All these fields are encoded according to the byte order argument. Data that doesn't fit into the offset fields follows immediately after the IFD entries. The offsets in the IFD are set to correctly point to the data fields, using the offset parameter or the offset of the IFD.<p>
276
<dl compact><dt><b>Parameters:</b></dt><dd>
277
<table border="0" cellspacing="2" cellpadding="0">
278
<tr><td valign="top"></td><td valign="top"><em>buf</em> </td><td>Pointer to the data buffer. The user must ensure that the buffer has enough memory. Otherwise the call results in undefined behaviour. </td></tr>
279
<tr><td valign="top"></td><td valign="top"><em>byteOrder</em> </td><td>Applicable byte order (little or big endian). </td></tr>
280
<tr><td valign="top"></td><td valign="top"><em>offset</em> </td><td>Target offset from the start of the TIFF header of the data array. The IFD offsets will be adjusted as necessary. If not given, then it is assumed that the IFD will remain at its original position, i.e., the offset of the IFD will be used. </td></tr>
283
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Returns the number of characters written. </dd></dl>
287
<a class="anchor" name="fdc96f99d251a70a77e16d24cde6aaf2"></a><!-- doxytag: member="Exiv2::Ifd::updateBase" ref="fdc96f99d251a70a77e16d24cde6aaf2" args="(byte *pNewBase)" -->
288
<div class="memitem">
289
<div class="memproto">
290
<table class="memname">
292
<td class="memname"><a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a>* Exiv2::Ifd::updateBase </td>
294
<td class="paramtype"><a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> * </td>
295
<td class="paramname"> <em>pNewBase</em> </td>
296
<td> ) </td>
297
<td width="100%"></td>
304
Update the base pointer of the <a class="el" href="classExiv2_1_1Ifd.html">Ifd</a> and all entries to <em>pNewBase</em>.
306
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>
307
<dl compact><dt><b>Parameters:</b></dt><dd>
308
<table border="0" cellspacing="2" cellpadding="0">
309
<tr><td valign="top"></td><td valign="top"><em>pNewBase</em> </td><td>Pointer to the new data buffer</td></tr>
312
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Old base pointer or 0 if called in alloc mode </dd></dl>
316
<a class="anchor" name="dec4cd1817a3542422ca488b0a3bd58d"></a><!-- doxytag: member="Exiv2::Ifd::readSubIfd" ref="dec4cd1817a3542422ca488b0a3bd58d" args="(Ifd &dest, const byte *buf, long len, ByteOrder byteOrder, uint16_t tag) const" -->
317
<div class="memitem">
318
<div class="memproto">
319
<table class="memname">
321
<td class="memname">int Exiv2::Ifd::readSubIfd </td>
323
<td class="paramtype"><a class="el" href="classExiv2_1_1Ifd.html">Ifd</a> & </td>
324
<td class="paramname"> <em>dest</em>, </td>
327
<td class="paramkey"></td>
329
<td class="paramtype">const <a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> * </td>
330
<td class="paramname"> <em>buf</em>, </td>
333
<td class="paramkey"></td>
335
<td class="paramtype">long </td>
336
<td class="paramname"> <em>len</em>, </td>
339
<td class="paramkey"></td>
341
<td class="paramtype"><a class="el" href="namespaceExiv2.html#94c225faf6d6c611a3828fae1c28efa6">ByteOrder</a> </td>
342
<td class="paramname"> <em>byteOrder</em>, </td>
345
<td class="paramkey"></td>
347
<td class="paramtype">uint16_t </td>
348
<td class="paramname"> <em>tag</em></td><td> </td>
353
<td></td><td></td><td width="100%"> const</td>
366
360
Read a sub-IFD from the location pointed to by the directory entry with the given tag.
374
368
<tr><td valign="top"></td><td valign="top"><em>tag</em> </td><td><a class="el" href="namespaceExiv2_1_1Tag.html">Tag</a> to look for.</td></tr>
377
<dl compact><dt><b>Returns:</b></dt><dd>0 if successful;<br>
371
<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 if successful;<br>
378
372
6 if reading the sub-IFD failed (see <a class="el" href="classExiv2_1_1Ifd.html#8d86b9dfa71fb413978822ed388d5f78">read()</a> above) or the location pointed to by the directory entry with the given tag is outside of the data buffer.</dd></dl>
379
<dl compact><dt><b>Note:</b></dt><dd>It is not considered an error if the tag cannot be found in the IFD. 0 is returned and no action is taken in this case. </dd></dl>
383
<a class="anchor" name="5f6bb37fc8c82ca5e584f7353fc77ce9"></a><!-- doxytag: member="Exiv2::Ifd::updateBase" ref="5f6bb37fc8c82ca5e584f7353fc77ce9" args="(byte *pNewBase)" --><p>
384
<table class="mdTable" cellpadding="2" cellspacing="0">
387
<table cellpadding="0" cellspacing="0" border="0">
389
<td class="md" nowrap valign="top"><a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> * Exiv2::Ifd::updateBase </td>
390
<td class="md" valign="top">( </td>
391
<td class="md" nowrap valign="top"><a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> * </td>
392
<td class="mdname1" valign="top" nowrap> <em>pNewBase</em> </td>
393
<td class="md" valign="top"> ) </td>
394
<td class="md" nowrap></td>
400
<table cellspacing="5" cellpadding="0" border="0">
373
<dl class="note" compact><dt><b>Note:</b></dt><dd>It is not considered an error if the tag cannot be found in the IFD. 0 is returned and no action is taken in this case. </dd></dl>
408
Update the base pointer of the <a class="el" href="classExiv2_1_1Ifd.html">Ifd</a> and all entries to <em>pNewBase</em>.
410
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>
411
<dl compact><dt><b>Parameters:</b></dt><dd>
412
<table border="0" cellspacing="2" cellpadding="0">
413
<tr><td valign="top"></td><td valign="top"><em>pNewBase</em> </td><td>Pointer to the new data buffer</td></tr>
416
<dl compact><dt><b>Returns:</b></dt><dd>Old base pointer or 0 if called in alloc mode </dd></dl>
420
<hr>The documentation for this class was generated from the following files:<ul>
421
<li><a class="el" href="ifd_8hpp.html">ifd.hpp</a><li>ifd.cpp</ul>
422
<hr size="1"><address style="align: right;"><small>Generated on Fri Jun 2 23:54:58 2006 for Exiv2 by
377
<hr>The documentation for this class was generated from the following file:<ul>
378
<li><a class="el" href="ifd_8hpp.html">ifd.hpp</a></ul>
379
<hr size="1"><address style="align: right;"><small>Generated on Mon Nov 27 20:16:27 2006 for Exiv2 by
423
380
<a href="http://www.doxygen.org/index.html">
424
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address>
381
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address>