Action::Print Class Reference

Print the Exif (or other metadata) of a file to stdout More...

#include <actions.hpp>

Inheritance diagram for Action::Print:

Inheritance graph
[legend]
Collaboration diagram for Action::Print:

Collaboration graph
[legend]
List of all members.

Public Types

typedef std::auto_ptr< PrintAutoPtr
 Shortcut for an auto pointer.
typedef Exiv2::ExifData::const_iterator(* EasyAccessFct )(const Exiv2::ExifData &ed)
 Type for an Exiv2 Easy access function.

Public Member Functions

virtual int run (const std::string &path)
 Application interface to perform a task.
AutoPtr clone () const
 Virtual copy construction.
int printComment ()
 Print the Jpeg comment.
int printPreviewList ()
 Print list of available preview images.
int printSummary ()
 Print Exif summary information.
int printList ()
 Print Exif, IPTC and XMP metadata in user defined format.
void printMetadatum (const Exiv2::Metadatum &md, const Exiv2::Image *pImage, bool const manyFiles)
 Print a metadatum in a user defined format.
void printLabel (const std::string &label) const
 Print the label for a summary line.
int printTag (const Exiv2::ExifData &exifData, const std::string &key, const std::string &label="") const
 Print one summary line with a label (if provided) and requested data. A line break is printed only if a label is provided.
int printTag (const Exiv2::ExifData &exifData, EasyAccessFct easyAccessFct, const std::string &label) const
 Print one summary line with a label (if provided) and requested data. A line break is printed only if a label is provided.

Detailed Description

Print the Exif (or other metadata) of a file to stdout


Member Function Documentation

int Action::Print::printTag const Exiv2::ExifData exifData,
EasyAccessFct  easyAccessFct,
const std::string &  label
const
 

Print one summary line with a label (if provided) and requested data. A line break is printed only if a label is provided.

Returns:
1 if a line was written, 0 if the information was not found.

int Action::Print::printTag const Exiv2::ExifData exifData,
const std::string &  key,
const std::string &  label = ""
const
 

Print one summary line with a label (if provided) and requested data. A line break is printed only if a label is provided.

Returns:
1 if a line was written, 0 if the key was not found.

int Action::Print::run const std::string &  path  )  [virtual]
 

Application interface to perform a task.

Parameters:
path Path of the file to process.
Returns:
0 if successful.

Implements Action::Task.


The documentation for this class was generated from the following files:
Generated on Thu Dec 31 03:57:55 2009 for Exiv2 by  doxygen 1.3.9.1