<!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::Insert 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_1Insert.html">Insert</a> </div> </div> <div class="contents"> <h1>Action::Insert Class Reference</h1><!-- doxytag: class="Action::Insert" --><!-- doxytag: inherits="Action::Task" -->Insert the Exif data from corresponding *.exv files. <a href="#_details">More...</a> <p> <code>#include <actions.hpp></code> <p> <div class="dynheader"> Inheritance diagram for Action::Insert:</div> <div class="dynsection"> <p><center><img src="classAction_1_1Insert__inherit__graph.png" border="0" usemap="#Action_1_1Insert__inherit__map" alt="Inheritance graph"></center> <map name="Action_1_1Insert__inherit__map"> <area shape="rect" id="node2" href="classAction_1_1Task.html" title="Abstract base class for all concrete actions." alt="" coords="15,5,156,32"></map> <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> <div class="dynheader"> Collaboration diagram for Action::Insert:</div> <div class="dynsection"> <p><center><img src="classAction_1_1Insert__coll__graph.png" border="0" usemap="#Action_1_1Insert__coll__map" alt="Collaboration graph"></center> <map name="Action_1_1Insert__coll__map"> <area shape="rect" id="node2" href="classAction_1_1Task.html" title="Abstract base class for all concrete actions." alt="" coords="15,5,156,32"></map> <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> <p> <a href="classAction_1_1Insert-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="e0bc73f411bb80916ef98a6942b39ac3"></a><!-- doxytag: member="Action::Insert::AutoPtr" ref="e0bc73f411bb80916ef98a6942b39ac3" args="" --> typedef std::auto_ptr< <a class="el" href="classAction_1_1Insert.html">Insert</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classAction_1_1Insert.html#e0bc73f411bb80916ef98a6942b39ac3">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_1Insert.html#19b222d0125abbcaef71a9797940f40f">run</a> (const std::string &path)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Application interface to perform a task. <a href="#19b222d0125abbcaef71a9797940f40f"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d4e3e5c50578a2d8a64aa06e2223a5b6"></a><!-- doxytag: member="Action::Insert::clone" ref="d4e3e5c50578a2d8a64aa06e2223a5b6" 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_1Insert.html#d4e3e5c50578a2d8a64aa06e2223a5b6">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="f7540acf510da9bddf1fda7481efadb7"></a><!-- doxytag: member="Action::Insert::insertThumbnail" ref="f7540acf510da9bddf1fda7481efadb7" args="(const std::string &path) const " --> int </td><td class="memItemRight" valign="bottom"><a class="el" href="classAction_1_1Insert.html#f7540acf510da9bddf1fda7481efadb7">insertThumbnail</a> (const std::string &path) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classAction_1_1Insert.html" title="Insert the Exif data from corresponding *.exv files.">Insert</a> a Jpeg thumbnail image from a file into file <em>path</em>. The filename of the thumbnail is expected to be the image filename (<em>path</em>) minus its suffix plus "-thumb.jpg". <br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a11ea4476cec1a900e86ee63111ec919"></a><!-- doxytag: member="Action::Insert::insertXmpPacket" ref="a11ea4476cec1a900e86ee63111ec919" args="(const std::string &path) const " --> int </td><td class="memItemRight" valign="bottom"><a class="el" href="classAction_1_1Insert.html#a11ea4476cec1a900e86ee63111ec919">insertXmpPacket</a> (const std::string &path) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classAction_1_1Insert.html" title="Insert the Exif data from corresponding *.exv files.">Insert</a> an XMP packet from a file into file <em>path</em>. The filename of the XMP packet is expected to be the image filename (<em>path</em>) minus its suffix plus ".xmp". <br></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> Insert the Exif data from corresponding *.exv files. <hr><h2>Member Function Documentation</h2> <a class="anchor" name="19b222d0125abbcaef71a9797940f40f"></a><!-- doxytag: member="Action::Insert::run" ref="19b222d0125abbcaef71a9797940f40f" args="(const std::string &path)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int Action::Insert::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="namespaceExiv2.html#0432df7d3995fa4d2fbc0b3f90265c59">Exiv2::fileExists()</a>, <a class="el" href="actions_8cpp_source.html#l01107">insertThumbnail()</a>, <a class="el" href="actions_8cpp_source.html#l01082">insertXmpPacket()</a>, <a class="el" href="exiv2_8cpp_source.html#l00186">Params::instance()</a>, <a class="el" href="image_8hpp_source.html#l00058">Exiv2::ImageType::none</a>, <a class="el" href="types_8hpp_source.html#l00122">Exiv2::string</a>, <a class="el" href="namespaceUtil.html#a61f770944bfdb930ec8241c529887b8">Util::suffix()</a>, <a class="el" href="exiv2_8hpp_source.html#l00202">Params::suffix_</a>, and <a class="el" href="exiv2_8hpp_source.html#l00191">Params::target_</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>