#include <canonmn.hpp>
Inheritance diagram for Exiv2::CanonMakerNote:
Accessors | |
Entries::const_iterator | begin () const |
The first makernote entry. | |
Entries::const_iterator | end () const |
End of the makernote entries. | |
Entries::const_iterator | findIdx (int idx) const |
Find an entry by idx, return a const iterator to the record. | |
long | size () const |
Return the size of the makernote in bytes. | |
AutoPtr | create (bool alloc=true) const |
Return an auto-pointer to an newly created, empty instance of the same type as this. The makernote entries are not copied. The caller owns the new object and the auto-pointer ensures that it will be deleted. | |
AutoPtr | clone () const |
Return an auto-pointer to a clone of this object. The caller owns the new object and the auto-pointer ensures that it will be deleted. | |
const TagInfo * | tagList () |
Return read-only list of built-in Canon tags. | |
const TagInfo * | tagListCs () |
Return read-only list of built-in Canon Camera Settings tags. | |
const TagInfo * | tagListSi () |
Return read-only list of built-in Canon Shot Info tags. | |
const TagInfo * | tagListPa () |
Return read-only list of built-in Canon Panorama tags. | |
const TagInfo * | tagListCf () |
Return read-only list of built-in Canon Custom Function tags. | |
const TagInfo * | tagListPi () |
Return read-only list of built-in Canon Picture Info tags. | |
Public Types | |
typedef std::auto_ptr< CanonMakerNote > | AutoPtr |
Shortcut for a CanonMakerNote auto pointer. | |
Public Member Functions | |
Creators | |
CanonMakerNote (bool alloc=true) | |
Constructor. Allows to choose whether or not memory management is required for the makernote entries. | |
CanonMakerNote (const CanonMakerNote &rhs) | |
Copy constructor. | |
virtual | ~CanonMakerNote () |
Virtual destructor. | |
Manipulators | |
int | read (const byte *buf, long len, long start, ByteOrder byteOrder, long shift) |
Read the makernote, including the makernote header, from the Exif data buffer. | |
long | copy (byte *buf, ByteOrder byteOrder, long offset) |
Copy (write) the makerNote to the character buffer buf at position offset (from the start of the TIFF header), encoded in byte order byteOrder. Update internal offsets if necessary. Return the number of bytes written. | |
void | add (const Entry &entry) |
Add the entry to the makernote. No duplicate-check is performed, i.e., it is possible to add multiple entries with the same tag. The memory allocation mode of the entry to be added must be the same as that of the makernote and the IFD id of the entry must be set to 'makerIfd'. | |
Entries::iterator | begin () |
The first makernote entry. | |
Entries::iterator | end () |
End of the makernote entries. | |
void | updateBase (byte *pNewBase) |
Update the base pointer of the MakerNote and all its entries to pNewBase. | |
Static Public Member Functions | |
Print functions for Canon MakerNote tags | |
std::ostream & | print0x0008 (std::ostream &os, const Value &value) |
Print the image number. | |
std::ostream & | print0x000c (std::ostream &os, const Value &value) |
Print the serial number of the camera. | |
std::ostream & | printCs0x0002 (std::ostream &os, const Value &value) |
Self timer. | |
std::ostream & | printCsLens (std::ostream &os, const Value &value) |
Camera lens information. | |
std::ostream & | printSi0x0002 (std::ostream &os, const Value &value) |
ISO speed used. | |
std::ostream & | printSi0x0009 (std::ostream &os, const Value &value) |
Sequence number. | |
std::ostream & | printSi0x000e (std::ostream &os, const Value &value) |
AF point used. | |
std::ostream & | printSi0x0013 (std::ostream &os, const Value &value) |
Subject distance. | |
std::ostream & | printSi0x0015 (std::ostream &os, const Value &value) |
Aperture. | |
std::ostream & | printSi0x0016 (std::ostream &os, const Value &value) |
Shutter speed. |
|
Return an auto-pointer to a clone of this object. The caller owns the new object and the auto-pointer ensures that it will be deleted.
Reimplemented from Exiv2::IfdMakerNote. |
|
Return an auto-pointer to an newly created, empty instance of the same type as this. The makernote entries are not copied. The caller owns the new object and the auto-pointer ensures that it will be deleted.
Reimplemented from Exiv2::IfdMakerNote. |
|
Read the makernote, including the makernote header, from the Exif data buffer.
Reimplemented from Exiv2::IfdMakerNote. |
|
Update the base pointer of the MakerNote and all its entries to pNewBase. Allows to re-locate the underlying data buffer to a new location pNewBase. This method only has an effect in non-alloc mode. Reimplemented from Exiv2::IfdMakerNote. |