Exiv2::Internal::TiffRwState Class Reference

Simple state class containing relevant state information for the TIFF reader. This is in a separate class so that the reader can change state if needed (e.g., to read certain complex makernotes). More...

#include <tiffvisitor_int.hpp>

List of all members.

Public Types

typedef std::auto_ptr< TiffRwStateAutoPtr
 TiffRWState auto_ptr type.

Public Member Functions

Creators
 TiffRwState (ByteOrder byteOrder, uint32_t baseOffset)
 Constructor.
Accessors
ByteOrder byteOrder () const
 Return the applicable byte order. May be different for the Makernote and the rest of the TIFF entries.
uint32_t baseOffset () const
 Return the base offset.

Friends

class TiffReader


Detailed Description

Simple state class containing relevant state information for the TIFF reader. This is in a separate class so that the reader can change state if needed (e.g., to read certain complex makernotes).


Member Function Documentation

uint32_t Exiv2::Internal::TiffRwState::baseOffset  )  const [inline]
 

Return the base offset.

TIFF standard format uses byte offsets which are always relative to the start of the TIFF file, i.e., relative to the start of the TIFF image header. In this case, the base offset is 0. However, some camera vendors encode their makernotes in TIFF IFDs using offsets relative to (somewhere near) the start of the makernote data. In this case, base offset added to the start of the TIFF image header points to the basis for such makernote offsets.


The documentation for this class was generated from the following file:
Generated on Thu Dec 31 03:58:26 2009 for Exiv2 by  doxygen 1.3.9.1