<!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::Rename 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_1Rename.html">Rename</a> </div> </div> <div class="contents"> <h1>Action::Rename Class Reference</h1><!-- doxytag: class="Action::Rename" --><!-- doxytag: inherits="Action::Task" -->Rename a file to its metadate creation timestamp, in the specified format. <a href="#_details">More...</a> <p> <code>#include <actions.hpp></code> <p> <div class="dynheader"> Inheritance diagram for Action::Rename:</div> <div class="dynsection"> <p><center><img src="classAction_1_1Rename__inherit__graph.png" border="0" usemap="#Action_1_1Rename__inherit__map" alt="Inheritance graph"></center> <map name="Action_1_1Rename__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::Rename:</div> <div class="dynsection"> <p><center><img src="classAction_1_1Rename__coll__graph.png" border="0" usemap="#Action_1_1Rename__coll__map" alt="Collaboration graph"></center> <map name="Action_1_1Rename__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_1Rename-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="8effee0e0fb631fa882a8217142e8dae"></a><!-- doxytag: member="Action::Rename::AutoPtr" ref="8effee0e0fb631fa882a8217142e8dae" args="" --> typedef std::auto_ptr< <a class="el" href="classAction_1_1Rename.html">Rename</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classAction_1_1Rename.html#8effee0e0fb631fa882a8217142e8dae">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_1Rename.html#b2b811ad1f5ae80e882b9b2b903dbfbb">run</a> (const std::string &path)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Application interface to perform a task. <a href="#b2b811ad1f5ae80e882b9b2b903dbfbb"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="943211df4f4e7c9e9a9825d16495569f"></a><!-- doxytag: member="Action::Rename::clone" ref="943211df4f4e7c9e9a9825d16495569f" 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_1Rename.html#943211df4f4e7c9e9a9825d16495569f">clone</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Virtual copy construction. <br></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> Rename a file to its metadate creation timestamp, in the specified format. <hr><h2>Member Function Documentation</h2> <a class="anchor" name="b2b811ad1f5ae80e882b9b2b903dbfbb"></a><!-- doxytag: member="Action::Rename::run" ref="b2b811ad1f5ae80e882b9b2b903dbfbb" args="(const std::string &path)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int Action::Rename::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="exif_8hpp_source.html#l00508">Exiv2::ExifData::empty()</a>, <a class="el" href="exif_8hpp_source.html#l00488">Exiv2::ExifData::end()</a>, <a class="el" href="namespaceExiv2.html#0432df7d3995fa4d2fbc0b3f90265c59">Exiv2::fileExists()</a>, <a class="el" href="exif_8cpp_source.html#l00392">Exiv2::ExifData::findKey()</a>, <a class="el" href="exiv2_8cpp_source.html#l00186">Params::instance()</a>, <a class="el" href="image_8cpp_source.html#l00306">Exiv2::ImageFactory::open()</a>, and <a class="el" href="types_8hpp_source.html#l00122">Exiv2::string</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:48 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>