Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Examples

Exiv2::Nikon3MakerNote Class Reference

A third MakerNote format used by Nikon cameras, e.g., E5400, SQ, D2H, D70. More...

#include <nikonmn.hpp>

Inheritance diagram for Exiv2::Nikon3MakerNote:

Inheritance graph
[legend]
Collaboration diagram for Exiv2::Nikon3MakerNote:

Collaboration graph
[legend]
List of all members.

Public Types

typedef std::auto_ptr< Nikon3MakerNoteAutoPtr
 Shortcut for a Nikon3MakerNote auto pointer.

Public Member Functions

Creators
 Nikon3MakerNote (bool alloc=true)
 Constructor. Allows to choose whether or not memory management is required for the makernote entries.
 Nikon3MakerNote (const Nikon3MakerNote &rhs)
 Copy constructor.
virtual ~Nikon3MakerNote ()
 Virtual destructor.
Manipulators
int readHeader (const byte *buf, long len, ByteOrder byteOrder)
 Read the makernote header from the makernote databuffer. This method must set the offset adjustment (adjOffset_), if needed (assuming that the required information is in the header). Return 0 if successful.
Accessors
int checkHeader () const
 Check the makernote header. This will typically check if a required prefix string is present in the header. Return 0 if successful.
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.

Static Public Member Functions

Print functions for Nikon3 MakerNote tags
static std::ostream & print0x0002 (std::ostream &os, const Value &value)
 Print ISO setting.
static std::ostream & print0x0012 (std::ostream &os, const Value &value)
 Print flash compensation.
static std::ostream & print0x0084 (std::ostream &os, const Value &value)
 Print lens information.
static std::ostream & print0x0087 (std::ostream &os, const Value &value)
 Print flash used information.
static std::ostream & print0x0088 (std::ostream &os, const Value &value)
 Print AF point.
static std::ostream & print0x0089 (std::ostream &os, const Value &value)
 Print bracketing information.
static std::ostream & print0x008b (std::ostream &os, const Value &value)
 Print number of lens stops.
static std::ostream & print0x0098 (std::ostream &os, const Value &value)
 Print number of lens data.

Detailed Description

A third MakerNote format used by Nikon cameras, e.g., E5400, SQ, D2H, D70.


Member Function Documentation

int Exiv2::Nikon3MakerNote::checkHeader  )  const [virtual]
 

Check the makernote header. This will typically check if a required prefix string is present in the header. Return 0 if successful.

Note:
The default implementation does nothing, assuming there is no header

Reimplemented from Exiv2::IfdMakerNote.

Nikon3MakerNote::AutoPtr Exiv2::Nikon3MakerNote::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.

Note:
In non-alloc mode the clone potentially contains pointers to the same data buffer as the original. Use updateBase(byte* pNewBase) to adjust them.

Reimplemented from Exiv2::IfdMakerNote.

Nikon3MakerNote::AutoPtr Exiv2::Nikon3MakerNote::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.

Parameters:
alloc Memory management model for the newly created object. Indicates if memory required to store data should be allocated and deallocated (true) or not (false). If false, only pointers to the buffer provided to read() will be kept. See Ifd for more background on this concept.

Reimplemented from Exiv2::IfdMakerNote.

int Exiv2::Nikon3MakerNote::readHeader const byte buf,
long  len,
ByteOrder  byteOrder
[virtual]
 

Read the makernote header from the makernote databuffer. This method must set the offset adjustment (adjOffset_), if needed (assuming that the required information is in the header). Return 0 if successful.

Note:
The default implementation does nothing, assuming there is no header

Reimplemented from Exiv2::IfdMakerNote.


The documentation for this class was generated from the following files:
Generated on Wed Jun 15 20:10:43 2005 for Exiv2 by  doxygen 1.4.3-20050530