|
Exiv2
|
Print the Exif (or other metadata) of a file to stdout More...
#include <actions.hpp>
Inheritance diagram for Action::Print:
Collaboration diagram for Action::Print:Public Types | |
| typedef std::auto_ptr< Print > | AutoPtr |
| Shortcut for an auto pointer. | |
|
typedef Exiv2::ExifData::const_iterator(* | EasyAccessFct )(const Exiv2::ExifData &ed) |
| Type for an Exiv2 Easy access function. | |
Public Types inherited from Action::Task | |
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. | |
| bool | grepTag (const std::string &key) |
| Return true if key should be printed, else false. | |
| int | printMetadata (const Exiv2::Image *image) |
| Print all metadata in a user defined format. | |
| void | printMetadatum (const Exiv2::Metadatum &md, const Exiv2::Image *image) |
| 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. | |
Public Member Functions inherited from Action::Task | |
| virtual | ~Task () |
| Virtual destructor. | |
Print the Exif (or other metadata) of a file to stdout
| 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.
References Exiv2::ExifData::end(), Exiv2::ExifData::findKey(), and printLabel().
Referenced by printSummary().
| 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.
References Exiv2::ExifData::end(), and printLabel().
|
virtual |
Application interface to perform a task.
| path | Path of the file to process. |
Implements Action::Task.
References Params::instance(), printComment(), printList(), printPreviewList(), and printSummary().
1.8.1