#include <tiffcomposite_int.hpp>
Inheritance diagram for Exiv2::Internal::TiffComponent:

Public Types | |
| typedef std::auto_ptr< TiffComponent > | AutoPtr |
| TiffComponent auto_ptr type. | |
| typedef std::vector< TiffComponent * > | Components |
| Container type to hold all metadata. | |
Public Member Functions | |
Creators | |
| TiffComponent (uint16_t tag, uint16_t group) | |
| Constructor. | |
| virtual | ~TiffComponent () |
| Virtual destructor. | |
Manipulators | |
| TiffComponent * | addPath (uint16_t tag, TiffPath &tiffPath) |
| Add a TIFF entry tag to the component. Components on the path to the entry are added if they don't exist yet. | |
| TiffComponent * | addChild (AutoPtr tiffComponent) |
| Add a child to the component. Default is to do nothing. | |
| TiffComponent * | addNext (AutoPtr tiffComponent) |
| Add a "next" component to the component. Default is to do nothing. | |
| void | accept (TiffVisitor &visitor) |
| Interface to accept visitors (Visitor pattern). Visitors can perform operations on all components of the composite. | |
| void | setStart (const byte *pStart) |
| Set a pointer to the start of the binary representation of the component in a memory buffer. The buffer must be allocated and freed outside of this class. | |
Accessors | |
| uint16_t | tag () const |
| Return the tag of this entry. | |
| uint16_t | group () const |
| Return the group id of this component. | |
| byte * | start () const |
| Return a pointer to the start of the binary representation of the component. | |
Write support (Manipulators) | |
| uint32_t | write (Blob &blob, ByteOrder byteOrder, int32_t offset, uint32_t valueIdx, uint32_t dataIdx, uint32_t &imageIdx) |
| Write a TiffComponent to a binary image. | |
Write support (Accessors) | |
| uint32_t | writeData (Blob &blob, ByteOrder byteOrder, int32_t offset, uint32_t dataIdx, uint32_t &imageIdx) const |
| Write the IFD data of this component to a binary image. Return the number of bytes written. Components derived from TiffEntryBase implement this method if needed. | |
| uint32_t | writeImage (Blob &blob, ByteOrder byteOrder) const |
| Write the image data of this component to a binary image. Return the number of bytes written. TIFF components implement this method if needed. | |
| uint32_t | size () const |
| Return the size in bytes of the IFD value of this component when written to a binary image. | |
| uint32_t | count () const |
| Return the number of components in this component. | |
| uint32_t | sizeData () const |
| Return the size in bytes of the IFD data of this component when written to a binary image. This is a support function for write(). Components derived from TiffEntryBase implement this method corresponding to their implementation of writeData(). | |
| uint32_t | sizeImage () const |
| Return the size in bytes of the image data of this component when written to a binary image. This is a support function for write(). TIFF components implement this method corresponding to their implementation of writeImage(). | |
| virtual int | idx () const |
| Return the unique id of the entry in the image. | |
Protected Member Functions | |
Manipulators | |
| virtual TiffComponent * | doAddPath (uint16_t, TiffPath &) |
| Implements addPath(). The default implementation does nothing. | |
| virtual TiffComponent * | doAddChild (AutoPtr) |
| Implements addChild(). The default implementation does nothing. | |
| virtual TiffComponent * | doAddNext (AutoPtr) |
| Implements addNext(). The default implementation does nothing. | |
| virtual void | doAccept (TiffVisitor &visitor)=0 |
| Implements accept(). | |
Write support (Manipulators) | |
| virtual uint32_t | doWrite (Blob &blob, ByteOrder byteOrder, int32_t offset, uint32_t valueIdx, uint32_t dataIdx, uint32_t &imageIdx)=0 |
| Implements write(). | |
Write support (Accessors) | |
| virtual uint32_t | doWriteData (Blob &blob, ByteOrder byteOrder, int32_t offset, uint32_t dataIdx, uint32_t &imageIdx) const=0 |
| Implements writeData(). | |
| virtual uint32_t | doWriteImage (Blob &blob, ByteOrder byteOrder) const=0 |
| Implements writeImage(). | |
| virtual uint32_t | doSize () const=0 |
| Implements size(). | |
| virtual uint32_t | doCount () const=0 |
| Implements count(). | |
| virtual uint32_t | doSizeData () const=0 |
| Implements sizeData(). | |
| virtual uint32_t | doSizeImage () const=0 |
| Implements sizeImage(). | |
|
|
Interface to accept visitors (Visitor pattern). Visitors can perform operations on all components of the composite.
|
|
|
Add a child to the component. Default is to do nothing.
|
|
|
Add a "next" component to the component. Default is to do nothing.
|
|
||||||||||||
|
Add a TIFF entry tag to the component. Components on the path to the entry are added if they don't exist yet.
|
|
||||||||||||||||||||||||||||
|
Write a TiffComponent to a binary image.
|
1.3.5