Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > media > main-release > by-pkgid > e31b59fe09ff595814e8029d984f51c5 > files > 270

lib64exiv2_2-devel-0.16-3mdv2008.1.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Exiv2: Exiv2::Entry Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.4 -->
<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 class="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>
    <li>
      <form action="search.php" method="get">
        <table cellspacing="0" cellpadding="0" border="0">
          <tr>
            <td><label>&nbsp;<u>S</u>earch&nbsp;for&nbsp;</label></td>
            <td><input type="text" name="query" value="" size="20" accesskey="s"/></td>
          </tr>
        </table>
      </form>
    </li>
  </ul>
</div>
<div class="tabs">
  <ul>
    <li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
    <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
    <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
    <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
  </ul>
</div>
<div class="nav">
<a class="el" href="namespaceExiv2.html">Exiv2</a>::<a class="el" href="classExiv2_1_1Entry.html">Entry</a></div>
<h1>Exiv2::Entry Class Reference</h1><!-- doxytag: class="Exiv2::Entry" -->Data structure for one IFD directory entry. See the description of class <a class="el" href="classExiv2_1_1Ifd.html" title="Models an IFD (Image File Directory).">Ifd</a> for an explanation of the supported modes for memory allocation.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;ifd.hpp&gt;</code>
<p>

<p>
<a href="classExiv2_1_1Entry-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td colspan="2"><div class="groupHeader">Creators</div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a6989978301bdbb60234e0f1daa50884"></a><!-- doxytag: member="Exiv2::Entry::Entry" ref="a6989978301bdbb60234e0f1daa50884" args="(bool alloc=true)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Entry.html#a6989978301bdbb60234e0f1daa50884">Entry</a> (bool alloc=true)</td></tr>

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

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

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Copy constructor. <br></td></tr>
<tr><td colspan="2"><div class="groupHeader">Manipulators</div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1f2334b075af31abea79115646278ee9"></a><!-- doxytag: member="Exiv2::Entry::operator=" ref="1f2334b075af31abea79115646278ee9" args="(const Entry &amp;rhs)" -->
<a class="el" href="classExiv2_1_1Entry.html">Entry</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Entry.html#1f2334b075af31abea79115646278ee9">operator=</a> (const <a class="el" href="classExiv2_1_1Entry.html">Entry</a> &amp;rhs)</td></tr>

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

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

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

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

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

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

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

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

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

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Update the base pointer of the <a class="el" href="classExiv2_1_1Entry.html" title="Data structure for one IFD directory entry. See the description of class Ifd for...">Entry</a> from <em>pOldBase</em> to <em>pNewBase</em>.  <a href="#c17e52874332d7a5a4a1e9853fa2a1a9"></a><br></td></tr>
<tr><td colspan="2"><div class="groupHeader">Accessors</div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="28fed8560bc7f350a3829d9d0cbdb9ad"></a><!-- doxytag: member="Exiv2::Entry::tag" ref="28fed8560bc7f350a3829d9d0cbdb9ad" args="() const " -->
uint16_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Entry.html#28fed8560bc7f350a3829d9d0cbdb9ad">tag</a> () const </td></tr>

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

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

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

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

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

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

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the number of components in the value. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">long&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1Entry.html#8e440c8c54a5ea9f38bb76d7129df768">size</a> () const </td></tr>

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

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

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

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

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

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

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

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the byte order of the entry. There should generally not be a need for this, it is only used in special cases (Minolta Makernote CameraSettings tags). <br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Data structure for one IFD directory entry. See the description of class <a class="el" href="classExiv2_1_1Ifd.html" title="Models an IFD (Image File Directory).">Ifd</a> for an explanation of the supported modes for memory allocation. <hr><h2>Member Function Documentation</h2>
<a class="anchor" name="768705d4921fddc2231f75e1fd33ca1c"></a><!-- doxytag: member="Exiv2::Entry::setValue" ref="768705d4921fddc2231f75e1fd33ca1c" args="(uint32_t data, ByteOrder byteOrder)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Exiv2::Entry::setValue           </td>
          <td>(</td>
          <td class="paramtype">uint32_t&nbsp;</td>
          <td class="paramname"> <em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceExiv2.html#94c225faf6d6c611a3828fae1c28efa6">ByteOrder</a>&nbsp;</td>
          <td class="paramname"> <em>byteOrder</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Set the value of the entry to a single unsigned long component, i.e., set the type of the entry to unsigned long, number of components to one and the value according to the data provided. 
<p>
The size of the data buffer is set to at least four bytes, but is left unchanged if it can accomodate the pointer. This method can be used to set the value of a tag which contains a pointer (offset) to a location in the Exif data (like e.g., ExifTag, 0x8769 in IFD0, which contains a pointer to the Exif IFD). <br>
This method cannot be used to set the value of a newly created Entry in non-alloc mode.<p>
<dl class="note" compact><dt><b>Note:</b></dt><dd>This method is now deprecated, use data area related methods instead. </dd></dl>

</div>
</div><p>
<a class="anchor" name="6ca426896ca88001da3f49a9d1ad7fb9"></a><!-- doxytag: member="Exiv2::Entry::setValue" ref="6ca426896ca88001da3f49a9d1ad7fb9" args="(uint16_t type, uint32_t count, const byte *data, long size, ByteOrder byteOrder=invalidByteOrder)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Exiv2::Entry::setValue           </td>
          <td>(</td>
          <td class="paramtype">uint16_t&nbsp;</td>
          <td class="paramname"> <em>type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&nbsp;</td>
          <td class="paramname"> <em>count</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> *&nbsp;</td>
          <td class="paramname"> <em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&nbsp;</td>
          <td class="paramname"> <em>size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceExiv2.html#94c225faf6d6c611a3828fae1c28efa6">ByteOrder</a>&nbsp;</td>
          <td class="paramname"> <em>byteOrder</em> = <code>invalidByteOrder</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Set type, count, the data buffer and its size. 
<p>
Copies the provided buffer when called in memory allocation mode. <br>
In non-alloc mode, use this method to initialise the data of a newly created Entry. In this case, only the pointer to the buffer is copied, i.e., the buffer must remain valid throughout the life of the Entry. Subsequent calls in non-alloc mode will overwrite the data pointed to by this pointer with the data provided, i.e., the buffer provided in subsequent calls can be deleted after the call. <br>
In either memory allocation mode, the data buffer provided must be large enough to hold count components of type. The size of the buffer will be as indicated in the size argument. I.e., it is possible to allocate (set) a data buffer larger than required to hold count components of the given type.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>type</em>&nbsp;</td><td>The type of the data. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>count</em>&nbsp;</td><td>Number of components in the buffer. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>data</em>&nbsp;</td><td>Pointer to the data buffer. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>size</em>&nbsp;</td><td>Size of the desired data buffer in bytes. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>byteOrder</em>&nbsp;</td><td>Optional byte order. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Exceptions:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classExiv2_1_1Error.html" title="Simple error class used for exceptions. An output operator is provided to print errors...">Error</a></em>&nbsp;</td><td>if no memory allocation is allowed and the size of the data buffer is larger than the existing data buffer of the entry or if size is not large enough to hold count components of the given type. </td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="c6e9425c1ee50a1b03f3504cccc1c867"></a><!-- doxytag: member="Exiv2::Entry::setDataArea" ref="c6e9425c1ee50a1b03f3504cccc1c867" args="(const byte *buf, long len)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Exiv2::Entry::setDataArea           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> *&nbsp;</td>
          <td class="paramname"> <em>buf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&nbsp;</td>
          <td class="paramname"> <em>len</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Set the data area. Memory management as for setValue(uint16_t, uint32_t, const byte*, long). 
<p>
For certain tags the regular value of an IFD entry is an offset to a data area outside of the IFD. Examples are Exif tag 0x8769 in IFD0 (Exif.Image.ExifTag) or tag 0x0201 in IFD1 (Exif.Thumbnail.JPEGInterchangeFormat). The offset of ExifTag points to a data area containing the Exif IFD. That of JPEGInterchangeFormat contains the JPEG thumbnail image. This method sets the data area of a tag in accordance with the memory allocation mode.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>buf</em>&nbsp;</td><td>Pointer to the data area. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>len</em>&nbsp;</td><td>Size of the data area.</td></tr>
  </table>
</dl>
<dl compact><dt><b>Exceptions:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classExiv2_1_1Error.html" title="Simple error class used for exceptions. An output operator is provided to print errors...">Error</a></em>&nbsp;</td><td>in non-alloc mode, if there already is a dataarea but the size of the existing dataarea is not large enough for the new buffer. </td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="205c68aa60b329e2b3e0fe0fe1816227"></a><!-- doxytag: member="Exiv2::Entry::setDataAreaOffsets" ref="205c68aa60b329e2b3e0fe0fe1816227" args="(uint32_t offset, ByteOrder byteOrder)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Exiv2::Entry::setDataAreaOffsets           </td>
          <td>(</td>
          <td class="paramtype">uint32_t&nbsp;</td>
          <td class="paramname"> <em>offset</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceExiv2.html#94c225faf6d6c611a3828fae1c28efa6">ByteOrder</a>&nbsp;</td>
          <td class="paramname"> <em>byteOrder</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Set the offset(s) to the data area of an entry. 
<p>
Add <em>offset</em> to each data component of the entry. This is used by <a class="el" href="classExiv2_1_1Ifd.html#e4111e2b5234b5dab141e4fd7194eabd" title="Copy the IFD to a data array, update the offsets of the IFD and all its entries,...">Ifd::copy</a> to convert the data components of an entry containing offsets relative to the data area to become offsets from the start of the TIFF header. Usually, entries with a data area have exactly one unsigned long data component, which is 0.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>offset</em>&nbsp;</td><td>Offset </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>byteOrder</em>&nbsp;</td><td>Byte order</td></tr>
  </table>
</dl>
<dl compact><dt><b>Exceptions:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classExiv2_1_1Error.html" title="Simple error class used for exceptions. An output operator is provided to print errors...">Error</a></em>&nbsp;</td><td>if the offset is out of range for the data type of the tag or the data type is not supported. </td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="c17e52874332d7a5a4a1e9853fa2a1a9"></a><!-- doxytag: member="Exiv2::Entry::updateBase" ref="c17e52874332d7a5a4a1e9853fa2a1a9" args="(byte *pOldBase, byte *pNewBase)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Exiv2::Entry::updateBase           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> *&nbsp;</td>
          <td class="paramname"> <em>pOldBase</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a> *&nbsp;</td>
          <td class="paramname"> <em>pNewBase</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Update the base pointer of the <a class="el" href="classExiv2_1_1Entry.html" title="Data structure for one IFD directory entry. See the description of class Ifd for...">Entry</a> from <em>pOldBase</em> to <em>pNewBase</em>. 
<p>
Allows to re-locate the underlying data buffer to a new location <em>pNewBase</em>. This method only has an effect in non-alloc mode.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pOldBase</em>&nbsp;</td><td>Base pointer of the old data buffer </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>pNewBase</em>&nbsp;</td><td>Base pointer of the new data buffer </td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="8e440c8c54a5ea9f38bb76d7129df768"></a><!-- doxytag: member="Exiv2::Entry::size" ref="8e440c8c54a5ea9f38bb76d7129df768" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">long Exiv2::Entry::size           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Return the size of the data buffer in bytes. 
<p>
<dl class="note" compact><dt><b>Note:</b></dt><dd>There is no minimum size for the data buffer, except that it must be large enough to hold the data. </dd></dl>

</div>
</div><p>
<a class="anchor" name="67ced2db16a0a231bf7ca6124506a12a"></a><!-- doxytag: member="Exiv2::Entry::dataArea" ref="67ced2db16a0a231bf7ca6124506a12a" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="namespaceExiv2.html#16f60a5bd4207fe155f6cf93a15efa72">byte</a>* Exiv2::Entry::dataArea           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Return a pointer to the data area. Do not attempt to write to this pointer. 
<p>
For certain tags the regular value of an IFD entry is an offset to a data area outside of the IFD. Examples are Exif tag 0x8769 in IFD0 (Exif.Image.ExifTag) or tag 0x0201 in IFD1 (Exif.Thumbnail.JPEGInterchangeFormat). The offset of ExifTag points to a data area containing the Exif IFD. That of JPEGInterchangeFormat contains the JPEG thumbnail image. Use this method to access (read-only) the data area of a tag. Use <a class="el" href="classExiv2_1_1Entry.html#c6e9425c1ee50a1b03f3504cccc1c867" title="Set the data area. Memory management as for setValue(uint16_t, uint32_t, const byte*...">setDataArea()</a> to write to the data area.<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Return a pointer to the data area. </dd></dl>

</div>
</div><p>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="ifd_8hpp.html">ifd.hpp</a></ul>
<hr size="1"><address style="text-align: right;"><small>Generated on Tue Feb 5 11:51:04 2008 for Exiv2 by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.4 </small></address>
</body>
</html>