<!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: Action::Extract 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 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> <u>S</u>earch for </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 List</span></a></li> <li><a href="classes.html"><span>Class Index</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div class="navpath"><a class="el" href="namespaceAction.html">Action</a>::<a class="el" href="classAction_1_1Extract.html">Extract</a> </div> </div> <div class="contents"> <h1>Action::Extract Class Reference</h1><!-- doxytag: class="Action::Extract" --><!-- doxytag: inherits="Action::Task" -->Extract the entire exif data or only the thumbnail section. <a href="#_details">More...</a> <p> <code>#include <actions.hpp></code> <p> <div class="dynheader"> Inheritance diagram for Action::Extract:</div> <div class="dynsection"> <p><center><img src="classAction_1_1Extract__inherit__graph.png" border="0" usemap="#Action_1_1Extract__inherit__map" alt="Inheritance graph"></center> <map name="Action_1_1Extract__inherit__map"> <area shape="rect" id="node2" href="classAction_1_1Task.html" title="Abstract base class for all concrete actions." alt="" coords="20,5,161,32"></map> <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> <div class="dynheader"> Collaboration diagram for Action::Extract:</div> <div class="dynsection"> <p><center><img src="classAction_1_1Extract__coll__graph.png" border="0" usemap="#Action_1_1Extract__coll__map" alt="Collaboration graph"></center> <map name="Action_1_1Extract__coll__map"> <area shape="rect" id="node2" href="classAction_1_1Task.html" title="Abstract base class for all concrete actions." alt="" coords="5,83,147,109"><area shape="rect" id="node4" title="STL class." alt="" coords="171,83,301,109"><area shape="rect" id="node6" title="STL class." alt="" coords="111,5,361,32"></map> <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> <p> <a href="classAction_1_1Extract-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="99c451f6653c5e9f16e8eabf1c53db19"></a><!-- doxytag: member="Action::Extract::AutoPtr" ref="99c451f6653c5e9f16e8eabf1c53db19" args="" --> typedef std::auto_ptr< <a class="el" href="classAction_1_1Extract.html">Extract</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classAction_1_1Extract.html#99c451f6653c5e9f16e8eabf1c53db19">AutoPtr</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Shortcut for an auto pointer. <br></td></tr> <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="classAction_1_1Extract.html#e44bbae8df585733ae162ff978fb0454">run</a> (const std::string &path)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Application interface to perform a task. <a href="#e44bbae8df585733ae162ff978fb0454"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a6b7057fa432b70bc8b911add2ed5532"></a><!-- doxytag: member="Action::Extract::clone" ref="a6b7057fa432b70bc8b911add2ed5532" args="() const " --> <a class="el" href="classAction_1_1Task.html#76329f48810f8e555b233d9f699faadd">AutoPtr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classAction_1_1Extract.html#a6b7057fa432b70bc8b911add2ed5532">clone</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Virtual copy construction. <br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="db8ff97d1933f2dcab9fd6457cca6d03"></a><!-- doxytag: member="Action::Extract::writeThumbnail" ref="db8ff97d1933f2dcab9fd6457cca6d03" args="() const " --> int </td><td class="memItemRight" valign="bottom"><a class="el" href="classAction_1_1Extract.html#db8ff97d1933f2dcab9fd6457cca6d03">writeThumbnail</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Write the thumbnail image to a file. The filename is composed by removing the suffix from the image filename and appending "-thumb" and the appropriate suffix (".jpg" or ".tif"), depending on the format of the Exif thumbnail image. <br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="aad8e01ae2d18aa6d67eb68b201f7321"></a><!-- doxytag: member="Action::Extract::writePreviews" ref="aad8e01ae2d18aa6d67eb68b201f7321" args="() const " --> int </td><td class="memItemRight" valign="bottom"><a class="el" href="classAction_1_1Extract.html#aad8e01ae2d18aa6d67eb68b201f7321">writePreviews</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Write preview images to files. <br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8d2822debb35ba23dacdd6c2835c2ce9"></a><!-- doxytag: member="Action::Extract::writePreviewFile" ref="8d2822debb35ba23dacdd6c2835c2ce9" args="(const Exiv2::PreviewImage &pvImg, int num) const " --> void </td><td class="memItemRight" valign="bottom"><a class="el" href="classAction_1_1Extract.html#8d2822debb35ba23dacdd6c2835c2ce9">writePreviewFile</a> (const <a class="el" href="classExiv2_1_1PreviewImage.html">Exiv2::PreviewImage</a> &pvImg, int num) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Write one preview image to a file. The filename is composed by removing the suffix from the image filename and appending "-preview<num>" and the appropriate suffix (".jpg" or ".tif"), depending on the format of the Exif thumbnail image. <br></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> Extract the entire exif data or only the thumbnail section. <hr><h2>Member Function Documentation</h2> <a class="anchor" name="e44bbae8df585733ae162ff978fb0454"></a><!-- doxytag: member="Action::Extract::run" ref="e44bbae8df585733ae162ff978fb0454" args="(const std::string &path)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int Action::Extract::run </td> <td>(</td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>path</em> </td> <td> ) </td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Application interface to perform a task. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>path</em> </td><td>Path of the file to process. </td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>0 if successful. </dd></dl> <p>Implements <a class="el" href="classAction_1_1Task.html#a10ce979cdedb8470d36413ec3a57bf2">Action::Task</a>.</p> <p>References <a class="el" href="jpgimage_8hpp_source.html#l00053">Exiv2::ImageType::exv</a>, <a class="el" href="exiv2_8cpp_source.html#l00186">Params::instance()</a>, <a class="el" href="types_8hpp_source.html#l00122">Exiv2::string</a>, <a class="el" href="actions_8cpp_source.html#l00976">writePreviews()</a>, <a class="el" href="actions_8cpp_source.html#l00934">writeThumbnail()</a>, and <a class="el" href="xmpsidecar_8hpp_source.html#l00050">Exiv2::ImageType::xmp</a>.</p> </div> </div><p> <hr>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="actions_8hpp.html">actions.hpp</a><li>actions.cpp</ul> </div> <hr size="1"><address style="text-align: right;"><small>Generated on Thu Jun 25 15:17:49 2009 for Exiv2 by <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>