Exiv2::Internal::TiffSubIfd Class Reference

This class models a TIFF sub-directory (sub-IFD). A sub-IFD is an entry with one or more values that are pointers to IFD structures containing an IFD. The TIFF standard defines some important tags to be sub-IFDs, including the Exif and GPS tags. More...

#include <tiffcomposite_int.hpp>

Inheritance diagram for Exiv2::Internal::TiffSubIfd:

Inheritance graph
[legend]
Collaboration diagram for Exiv2::Internal::TiffSubIfd:

Collaboration graph
[legend]
List of all members.

Public Member Functions

Creators
 TiffSubIfd (uint16_t tag, uint16_t group, uint16_t newGroup)
 Default constructor.

virtual ~TiffSubIfd ()
 Virtual destructor.


Protected Member Functions

Manipulators
virtual TiffComponentdoAddPath (uint16_t tag, TiffPath &tiffPath)
 Implements addPath(). The default implementation does nothing.

virtual TiffComponentdoAddChild (TiffComponent::AutoPtr tiffComponent)
virtual void doAccept (TiffVisitor &visitor)
 Implements accept().

virtual void doEncode (TiffEncoder &encoder, const Exifdatum *datum)
 Implements encode().

Write support (Manipulators)
virtual uint32_t doWrite (Blob &blob, ByteOrder byteOrder, int32_t offset, uint32_t valueIdx, uint32_t dataIdx, uint32_t &imageIdx)
 Implements write(). Write the sub-IFD pointers to the blob, return the number of bytes written. The valueIdx and imageIdx arguments are not used.

Write support (Accessors)
virtual uint32_t doWriteData (Blob &blob, ByteOrder byteOrder, int32_t offset, uint32_t dataIdx, uint32_t &imageIdx) const
 Implements writeData(). Write the sub-IFDs to the blob. Return the number of bytes written.

virtual uint32_t doWriteImage (Blob &blob, ByteOrder byteOrder) const
 Implements writeImage(). Write the image data of each sub-IFD to the blob. Return the number of bytes written.

uint32_t doSize () const
 Implements size(). Return the size of the sub-Ifd pointers.

virtual uint32_t doSizeData () const
 Implements sizeData(). Return the sum of the sizes of all sub-IFDs.

virtual uint32_t doSizeImage () const
 Implements sizeImage(). Return the sum of the image sizes of all sub-IFDs.


Friends

class TiffReader

Detailed Description

This class models a TIFF sub-directory (sub-IFD). A sub-IFD is an entry with one or more values that are pointers to IFD structures containing an IFD. The TIFF standard defines some important tags to be sub-IFDs, including the Exif and GPS tags.


The documentation for this class was generated from the following file:
Generated on Sun Jul 5 00:07:00 2009 for Exiv2 by doxygen 1.3.5