Exiv2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Friends | List of all members
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>

Public Types

typedef std::auto_ptr
< TiffRwState
AutoPtr
 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. More...
 

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: