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

Exiv2::FujiMakerNote Class Reference

MakerNote for Fujifilm cameras. More...

#include <fujimn.hpp>

Inheritance diagram for Exiv2::FujiMakerNote:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

Creators
 FujiMakerNote (bool alloc=true)
 Constructor. Allows to choose whether or not memory management is required for the makernote entries.
virtual ~FujiMakerNote ()
 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.
FujiMakerNoteclone (bool alloc=true) const
 Return a 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 is responsible to delete it!
std::string ifdItem () const
 Return the name of the makernote item ("Fujifilm").
std::ostream & printTag (std::ostream &os, uint16 tag, const Value &value) const
 Interpret and print the value of a makernote tag.

Static Public Member Functions

Print functions for Fujifilm MakerNote tags
std::ostream & printOffOn (std::ostream &os, const Value &value)
 Print Off or On status.
std::ostream & print0x1001 (std::ostream &os, const Value &value)
 Print sharpness.
std::ostream & print0x1002 (std::ostream &os, const Value &value)
 Print white balance.
std::ostream & print0x1003 (std::ostream &os, const Value &value)
 Print color.
std::ostream & print0x1004 (std::ostream &os, const Value &value)
 Print tone.
std::ostream & print0x1010 (std::ostream &os, const Value &value)
 Print flash mode.
std::ostream & print0x1021 (std::ostream &os, const Value &value)
 Print focus mode.
std::ostream & print0x1031 (std::ostream &os, const Value &value)
 Print picture mode.

Detailed Description

MakerNote for Fujifilm cameras.


Member Function Documentation

int Exiv2::FujiMakerNote::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.

FujiMakerNote * Exiv2::FujiMakerNote::clone bool  alloc = true  )  const [virtual]
 

Return a 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 is responsible to delete it!

Parameters:
alloc Memory management model for the clone. 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.

Implements Exiv2::IfdMakerNote.

int Exiv2::FujiMakerNote::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 Mon Sep 13 22:01:43 2004 for Exiv2 by doxygen 1.3.8