#include <image.hpp>
Inheritance diagram for Exiv2::Image:
Public Types | |
typedef std::auto_ptr< Image > | AutoPtr |
Image auto_ptr type. | |
enum | Type { none, jpeg, exv } |
Supported image formats. | |
Public Member Functions | |
Creators | |
virtual | ~Image () |
Virtual Destructor. | |
Manipulators | |
virtual int | readMetadata ()=0 |
Read metadata from assigned image file into internal buffers. | |
virtual int | writeMetadata ()=0 |
Write metadata from internal buffers into to the image fle. | |
virtual void | setExifData (const byte *buf, long size)=0 |
Set the Exif data. The data is copied into an internal data buffer and is not written until writeMetadata is called. | |
virtual void | clearExifData ()=0 |
Erase any buffered Exif data. Exif data is not removed from the actual file until writeMetadata is called. | |
virtual void | setIptcData (const byte *buf, long size)=0 |
Set the Iptc data. The data is copied into an internal data buffer and is not written until writeMetadata is called. | |
virtual void | clearIptcData ()=0 |
Erase any buffered Iptc data. Iptc data is not removed from the actual file until writeMetadata is called. | |
virtual void | setComment (const std::string &comment)=0 |
Set the image comment. The data is copied into an internal data buffer and is not written until writeMetadata is called. | |
virtual void | clearComment ()=0 |
Erase any buffered comment. Comment is not removed from the actual file until writeMetadata is called. | |
virtual void | setMetadata (const Image &image)=0 |
Copy all existing metadata from source Image. The data is copied into internal buffers and is not written until writeMetadata is called. | |
virtual void | clearMetadata ()=0 |
Erase all buffered metadata. Metadata is not removed from the actual file until writeMetadata is called. | |
Accessors | |
virtual bool | good () const =0 |
Check if the Image instance is valid. Use after object construction. | |
virtual long | sizeExifData () const =0 |
Return the size of the Exif data in bytes. | |
virtual const byte * | exifData () const =0 |
Return a read-only pointer to an Exif data buffer. Do not attempt to write to this buffer. | |
virtual long | sizeIptcData () const =0 |
Return the size of the Iptc data in bytes. | |
virtual const byte * | iptcData () const =0 |
Return a read-only pointer to an Iptc data buffer. Do not attempt to write to this buffer. | |
virtual std::string | comment () const =0 |
Return a copy of the image comment. May be an empty string. | |
Protected Member Functions | |
Creators | |
Image () | |
Default Constructor. |
|
Check if the Image instance is valid. Use after object construction.
Implemented in Exiv2::JpegBase. |
|
Read metadata from assigned image file into internal buffers.
Implemented in Exiv2::JpegBase. |
|
Set the image comment. The data is copied into an internal data buffer and is not written until writeMetadata is called.
Implemented in Exiv2::JpegBase. |
|
Set the Exif data. The data is copied into an internal data buffer and is not written until writeMetadata is called.
Implemented in Exiv2::JpegBase. |
|
Set the Iptc data. The data is copied into an internal data buffer and is not written until writeMetadata is called.
Implemented in Exiv2::JpegBase. |
|
Copy all existing metadata from source Image. The data is copied into internal buffers and is not written until writeMetadata is called.
Implemented in Exiv2::JpegBase. |
|
Write metadata from internal buffers into to the image fle.
Implemented in Exiv2::JpegBase. |