Sophie

Sophie

distrib > * > 2010.0 > * > by-pkgid > b36c97ff723e66f0f38bce83645c99dc > files > 605

exiv2-doc-0.18.2-1mdv2010.0.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::IptcData Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.9 -->
<div class="navigation" id="top">
  <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="annotated.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="annotated.html"><span>Class&nbsp;List</span></a></li>
      <li><a href="classes.html"><span>Class&nbsp;Index</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="navpath"><a class="el" href="namespaceExiv2.html">Exiv2</a>::<a class="el" href="classExiv2_1_1IptcData.html">IptcData</a>
  </div>
</div>
<div class="contents">
<h1>Exiv2::IptcData Class Reference</h1><!-- doxytag: class="Exiv2::IptcData" -->A container for IPTC data. This is a top-level class of the Exiv2 library.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;iptc.hpp&gt;</code>
<p>
<div class="dynheader">
Collaboration diagram for Exiv2::IptcData:</div>
<div class="dynsection">
<p><center><img src="classExiv2_1_1IptcData__coll__graph.png" border="0" usemap="#Exiv2_1_1IptcData__coll__map" alt="Collaboration graph"></center>
<map name="Exiv2_1_1IptcData__coll__map">
<area shape="rect" id="node4" href="classExiv2_1_1Iptcdatum.html" title="An IPTC metadatum (&quot;dataset&quot;), consisting of an IptcKey and a Value and..." alt="" coords="461,365,643,392"><area shape="rect" id="node6" href="classExiv2_1_1Metadatum.html" title="Abstract base class defining the interface to access information related to one metadata..." alt="" coords="555,275,736,301"><area shape="rect" id="node10" href="classExiv2_1_1IptcKey.html" title="Concrete keys for IPTC metadata." alt="" coords="56,173,216,200"><area shape="rect" id="node12" href="classExiv2_1_1Key.html" title="Abstract base class defining the Key of a metadatum. Keys are used to identify and..." alt="" coords="72,83,192,109"><area shape="rect" id="node14" title="STL class." alt="" coords="216,83,347,109"><area shape="rect" id="node16" title="STL class." alt="" coords="156,5,407,32"><area shape="rect" id="node18" title="STL class." alt="" coords="248,173,448,200"><area shape="rect" id="node27" title="STL class." alt="" coords="635,224,816,251"><area shape="rect" id="node24" href="classExiv2_1_1Value.html" title="Common interface for all types of values used with metadata." alt="" coords="472,173,613,200"></map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>

<p>
<a href="classExiv2_1_1IptcData-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="0d53776cd2f36e63fff78c8f142a7caf"></a><!-- doxytag: member="Exiv2::IptcData::iterator" ref="0d53776cd2f36e63fff78c8f142a7caf" args="" -->
typedef IptcMetadata::iterator&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1IptcData.html#0d53776cd2f36e63fff78c8f142a7caf">iterator</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">IptcMetadata iterator type. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="683257be46a446865ca5f4e81b8e88d9"></a><!-- doxytag: member="Exiv2::IptcData::const_iterator" ref="683257be46a446865ca5f4e81b8e88d9" args="" -->
typedef <br class="typebreak">
IptcMetadata::const_iterator&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1IptcData.html#683257be46a446865ca5f4e81b8e88d9">const_iterator</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">IptcMetadata 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">Manipulators</div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classExiv2_1_1Iptcdatum.html">Iptcdatum</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1IptcData.html#b2b58c6eda595eee09ac5f61e93070f7">operator[]</a> (const std::string &amp;key)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns a reference to the Iptcdatum that is associated with a particular <em>key</em>. If IptcData does not already contain such an Iptcdatum, operator[] adds object <em>Iptcdatum(key)</em>.  <a href="#b2b58c6eda595eee09ac5f61e93070f7"></a><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_1IptcData.html#6c209bd981fc5073ae5effaa56d07310">add</a> (const <a class="el" href="classExiv2_1_1IptcKey.html">IptcKey</a> &amp;key, <a class="el" href="classExiv2_1_1Value.html">Value</a> *value)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Add an Iptcdatum from the supplied key and value pair. This method copies (clones) the value. A check for non-repeatable datasets is performed.  <a href="#6c209bd981fc5073ae5effaa56d07310"></a><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_1IptcData.html#2d843afb1f9c0978b8845c741148ed27">add</a> (const <a class="el" href="classExiv2_1_1Iptcdatum.html">Iptcdatum</a> &amp;iptcdatum)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Add a copy of the <a class="el" href="classExiv2_1_1Iptcdatum.html" title="An IPTC metadatum (&quot;dataset&quot;), consisting of an IptcKey and a Value and...">Iptcdatum</a> to the IPTC metadata. A check for non-repeatable datasets is performed.  <a href="#2d843afb1f9c0978b8845c741148ed27"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="56782cedd228be37bf5d1c3df77b6435"></a><!-- doxytag: member="Exiv2::IptcData::erase" ref="56782cedd228be37bf5d1c3df77b6435" args="(iterator pos)" -->
<a class="el" href="classExiv2_1_1IptcData.html#0d53776cd2f36e63fff78c8f142a7caf">iterator</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1IptcData.html#56782cedd228be37bf5d1c3df77b6435">erase</a> (<a class="el" href="classExiv2_1_1IptcData.html#0d53776cd2f36e63fff78c8f142a7caf">iterator</a> pos)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Delete the <a class="el" href="classExiv2_1_1Iptcdatum.html" title="An IPTC metadatum (&quot;dataset&quot;), consisting of an IptcKey and a Value and...">Iptcdatum</a> at iterator position pos, return the position of the next <a class="el" href="classExiv2_1_1Iptcdatum.html" title="An IPTC metadatum (&quot;dataset&quot;), consisting of an IptcKey and a Value and...">Iptcdatum</a>. Note that iterators into the metadata, including pos, are potentially invalidated by this call. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ee7392b0585be4916c56f08e3c9e7be5"></a><!-- doxytag: member="Exiv2::IptcData::clear" ref="ee7392b0585be4916c56f08e3c9e7be5" args="()" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1IptcData.html#ee7392b0585be4916c56f08e3c9e7be5">clear</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Delete all <a class="el" href="classExiv2_1_1Iptcdatum.html" title="An IPTC metadatum (&quot;dataset&quot;), consisting of an IptcKey and a Value and...">Iptcdatum</a> instances resulting in an empty container. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3db828436ee87c6d4d1d4a450b0c3c10"></a><!-- doxytag: member="Exiv2::IptcData::sortByKey" ref="3db828436ee87c6d4d1d4a450b0c3c10" args="()" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1IptcData.html#3db828436ee87c6d4d1d4a450b0c3c10">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="622ff967f192b898e05920dfbc63aabe"></a><!-- doxytag: member="Exiv2::IptcData::sortByTag" ref="622ff967f192b898e05920dfbc63aabe" args="()" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1IptcData.html#622ff967f192b898e05920dfbc63aabe">sortByTag</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sort metadata by tag (aka dataset). <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="03385c128b29d262ade837093fddc0d2"></a><!-- doxytag: member="Exiv2::IptcData::begin" ref="03385c128b29d262ade837093fddc0d2" args="()" -->
<a class="el" href="classExiv2_1_1IptcData.html#0d53776cd2f36e63fff78c8f142a7caf">iterator</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1IptcData.html#03385c128b29d262ade837093fddc0d2">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="6753e8a713ab2b42a3bdc7b3d9eab401"></a><!-- doxytag: member="Exiv2::IptcData::end" ref="6753e8a713ab2b42a3bdc7b3d9eab401" args="()" -->
<a class="el" href="classExiv2_1_1IptcData.html#0d53776cd2f36e63fff78c8f142a7caf">iterator</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1IptcData.html#6753e8a713ab2b42a3bdc7b3d9eab401">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="e53fdfabd295de29b971e51cd1fa9347"></a><!-- doxytag: member="Exiv2::IptcData::findKey" ref="e53fdfabd295de29b971e51cd1fa9347" args="(const IptcKey &amp;key)" -->
<a class="el" href="classExiv2_1_1IptcData.html#0d53776cd2f36e63fff78c8f142a7caf">iterator</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1IptcData.html#e53fdfabd295de29b971e51cd1fa9347">findKey</a> (const <a class="el" href="classExiv2_1_1IptcKey.html">IptcKey</a> &amp;key)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Find the first <a class="el" href="classExiv2_1_1Iptcdatum.html" title="An IPTC metadatum (&quot;dataset&quot;), consisting of an IptcKey and a Value and...">Iptcdatum</a> with the given key, return an iterator to it. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3218fa1e8cc6a8f6c75982f3fd554507"></a><!-- doxytag: member="Exiv2::IptcData::findId" ref="3218fa1e8cc6a8f6c75982f3fd554507" args="(uint16_t dataset, uint16_t record=IptcDataSets::application2)" -->
<a class="el" href="classExiv2_1_1IptcData.html#0d53776cd2f36e63fff78c8f142a7caf">iterator</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1IptcData.html#3218fa1e8cc6a8f6c75982f3fd554507">findId</a> (uint16_t dataset, uint16_t record=IptcDataSets::application2)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Find the first <a class="el" href="classExiv2_1_1Iptcdatum.html" title="An IPTC metadatum (&quot;dataset&quot;), consisting of an IptcKey and a Value and...">Iptcdatum</a> with the given record and dataset it, return a const iterator to it. <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="eee89e2ea157cb1e3739ccbbf239cce5"></a><!-- doxytag: member="Exiv2::IptcData::begin" ref="eee89e2ea157cb1e3739ccbbf239cce5" args="() const " -->
<a class="el" href="classExiv2_1_1IptcData.html#683257be46a446865ca5f4e81b8e88d9">const_iterator</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1IptcData.html#eee89e2ea157cb1e3739ccbbf239cce5">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="c209f133796a4811776e3fe85b432506"></a><!-- doxytag: member="Exiv2::IptcData::end" ref="c209f133796a4811776e3fe85b432506" args="() const " -->
<a class="el" href="classExiv2_1_1IptcData.html#683257be46a446865ca5f4e81b8e88d9">const_iterator</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1IptcData.html#c209f133796a4811776e3fe85b432506">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="cf7cb48fe542d615efaedd3175d5e541"></a><!-- doxytag: member="Exiv2::IptcData::findKey" ref="cf7cb48fe542d615efaedd3175d5e541" args="(const IptcKey &amp;key) const " -->
<a class="el" href="classExiv2_1_1IptcData.html#683257be46a446865ca5f4e81b8e88d9">const_iterator</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1IptcData.html#cf7cb48fe542d615efaedd3175d5e541">findKey</a> (const <a class="el" href="classExiv2_1_1IptcKey.html">IptcKey</a> &amp;key) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Find the first <a class="el" href="classExiv2_1_1Iptcdatum.html" title="An IPTC metadatum (&quot;dataset&quot;), consisting of an IptcKey and a Value and...">Iptcdatum</a> with the given key, return a const iterator to it. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f56ada8ee4ab77c6f5a1b0924ee85be6"></a><!-- doxytag: member="Exiv2::IptcData::findId" ref="f56ada8ee4ab77c6f5a1b0924ee85be6" args="(uint16_t dataset, uint16_t record=IptcDataSets::application2) const " -->
<a class="el" href="classExiv2_1_1IptcData.html#683257be46a446865ca5f4e81b8e88d9">const_iterator</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1IptcData.html#f56ada8ee4ab77c6f5a1b0924ee85be6">findId</a> (uint16_t dataset, uint16_t record=IptcDataSets::application2) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Find the first <a class="el" href="classExiv2_1_1Iptcdatum.html" title="An IPTC metadatum (&quot;dataset&quot;), consisting of an IptcKey and a Value and...">Iptcdatum</a> with the given record and dataset number, return a const iterator to it. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="fda626e27ebecd599005c68022db9c1c"></a><!-- doxytag: member="Exiv2::IptcData::empty" ref="fda626e27ebecd599005c68022db9c1c" args="() const " -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1IptcData.html#fda626e27ebecd599005c68022db9c1c">empty</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return true if there is no IPTC metadata. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b0b73759b3483b94deec4dac32e1a591"></a><!-- doxytag: member="Exiv2::IptcData::count" ref="b0b73759b3483b94deec4dac32e1a591" args="() const " -->
long&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1IptcData.html#b0b73759b3483b94deec4dac32e1a591">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="96def22b723dfabe9ec5decfdae8574e"></a><!-- doxytag: member="Exiv2::IptcData::size" ref="96def22b723dfabe9ec5decfdae8574e" args="() const " -->
long&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1IptcData.html#96def22b723dfabe9ec5decfdae8574e">size</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the exact size of all contained IPTC metadata. <br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A container for IPTC data. This is a top-level class of the Exiv2 library. 
<p>
Provide high-level access to the IPTC data of an image:<ul>
<li>read IPTC information from JPEG files</li><li>access metadata through keys and standard C++ iterators</li><li>add, modify and delete metadata</li><li>write IPTC data to JPEG files</li><li>extract IPTC metadata to files, insert from these files </li></ul>
<dl compact><dt><b>Examples: </b></dt><dd>

<p>
<a class="el" href="iptceasy_8cpp-example.html#_a1">iptceasy.cpp</a>, and <a class="el" href="iptcprint_8cpp-example.html#_a1">iptcprint.cpp</a>.</dl><hr><h2>Member Function Documentation</h2>
<a class="anchor" name="2d843afb1f9c0978b8845c741148ed27"></a><!-- doxytag: member="Exiv2::IptcData::add" ref="2d843afb1f9c0978b8845c741148ed27" args="(const Iptcdatum &amp;iptcdatum)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Exiv2::IptcData::add           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classExiv2_1_1Iptcdatum.html">Iptcdatum</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>iptcdatum</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Add a copy of the <a class="el" href="classExiv2_1_1Iptcdatum.html" title="An IPTC metadatum (&quot;dataset&quot;), consisting of an IptcKey and a Value and...">Iptcdatum</a> to the IPTC metadata. A check for non-repeatable datasets is performed. 
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 if successful;<br>
 6 if the dataset already exists and is not repeatable;<br>
 </dd></dl>

<p>References <a class="el" href="classExiv2_1_1IptcDataSets.html#c8d30717ec39431b83da4c34ff79a8e3">Exiv2::IptcDataSets::dataSetRepeatable()</a>, <a class="el" href="iptc_8hpp_source.html#l00268">end()</a>, <a class="el" href="iptc_8cpp_source.html#l00211">findId()</a>, <a class="el" href="iptc_8hpp_source.html#l00136">Exiv2::Iptcdatum::record()</a>, and <a class="el" href="iptc_8hpp_source.html#l00151">Exiv2::Iptcdatum::tag()</a>.</p>

</div>
</div><p>
<a class="anchor" name="6c209bd981fc5073ae5effaa56d07310"></a><!-- doxytag: member="Exiv2::IptcData::add" ref="6c209bd981fc5073ae5effaa56d07310" args="(const IptcKey &amp;key, Value *value)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Exiv2::IptcData::add           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classExiv2_1_1IptcKey.html">IptcKey</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>key</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classExiv2_1_1Value.html">Value</a> *&nbsp;</td>
          <td class="paramname"> <em>value</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Add an Iptcdatum from the supplied key and value pair. This method copies (clones) the value. A check for non-repeatable datasets is performed. 
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 if successful;<br>
 6 if the dataset already exists and is not repeatable </dd></dl>

<p>Referenced by <a class="el" href="convert_8cpp_source.html#l01069">Exiv2::Converter::cnvXmpValueToIptc()</a>, and <a class="el" href="iptc_8cpp_source.html#l00147">operator[]()</a>.</p>

</div>
</div><p>
<a class="anchor" name="b2b58c6eda595eee09ac5f61e93070f7"></a><!-- doxytag: member="Exiv2::IptcData::operator[]" ref="b2b58c6eda595eee09ac5f61e93070f7" args="(const std::string &amp;key)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classExiv2_1_1Iptcdatum.html">Iptcdatum</a> &amp; Exiv2::IptcData::operator[]           </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>key</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns a reference to the Iptcdatum that is associated with a particular <em>key</em>. If IptcData does not already contain such an Iptcdatum, operator[] adds object <em>Iptcdatum(key)</em>. 
<p>
<dl class="note" compact><dt><b>Note:</b></dt><dd>Since operator[] might insert a new element, it can't be a const member function. </dd></dl>

<p>References <a class="el" href="iptc_8cpp_source.html#l00176">add()</a>, <a class="el" href="iptc_8hpp_source.html#l00268">end()</a>, and <a class="el" href="iptc_8cpp_source.html#l00199">findKey()</a>.</p>

</div>
</div><p>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="iptc_8hpp.html">iptc.hpp</a><li>iptc.cpp</ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Thu Jun 25 15:17:58 2009 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.9 </small></address>
</body>
</html>