Exiv2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | List of all members
Action::Extract Class Reference

Extract the entire exif data or only the thumbnail section. More...

#include <actions.hpp>

+ Inheritance diagram for Action::Extract:
+ Collaboration diagram for Action::Extract:

Public Types

typedef std::auto_ptr< ExtractAutoPtr
 
- Public Types inherited from Action::Task
typedef std::auto_ptr< TaskAutoPtr
 Shortcut for an auto pointer.
 

Public Member Functions

virtual int run (const std::string &path)
 Application interface to perform a task. More...
 
AutoPtr clone () const
 
int writeThumbnail () const
 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.
 
int writePreviews () const
 Write preview images to files.
 
void writePreviewFile (const Exiv2::PreviewImage &pvImg, int num) const
 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.
 
- Public Member Functions inherited from Action::Task
virtual ~Task ()
 Virtual destructor.
 
AutoPtr clone () const
 Virtual copy construction.
 

Detailed Description

Extract the entire exif data or only the thumbnail section.

Member Function Documentation

int Action::Extract::run ( const std::string &  path)
virtual

Application interface to perform a task.

Parameters
pathPath of the file to process.
Returns
0 if successful.

Implements Action::Task.

References Exiv2::ImageType::exv, Params::instance(), Exiv2::string, writePreviews(), writeThumbnail(), and Exiv2::ImageType::xmp.


The documentation for this class was generated from the following files: