Exiv2::Internal::IoWrapper Class Reference

Simple IO wrapper to ensure that the header is only written if there is any other data at all. More...

#include <tiffcomposite_int.hpp>

Collaboration diagram for Exiv2::Internal::IoWrapper:

Collaboration graph
[legend]
List of all members.

Public Member Functions

Creators
 IoWrapper (BasicIo &io, const byte *pHeader, long size)
Manipulators
long write (const byte *pData, long wcount)
 Wraps the corresponding BasicIo::write() method.
int putb (byte data)
 Wraps the corresponding BasicIo::putb() method.

Detailed Description

Simple IO wrapper to ensure that the header is only written if there is any other data at all.

The wrapper is initialized with an IO reference and a pointer to a TIFF header. Subsequently the wrapper is used by all TIFF write methods. It takes care that the TIFF header is written to the IO first before any other output and only if there is any other data.


Constructor & Destructor Documentation

Exiv2::Internal::IoWrapper::IoWrapper BasicIo io,
const byte pHeader,
long  size
 

brief Constructor.

The IO wrapper owns neither of the objects passed in so the caller is responsible to keep them alive.


Member Function Documentation

int Exiv2::Internal::IoWrapper::putb byte  data  ) 
 

Wraps the corresponding BasicIo::putb() method.

Writes the TIFF header to the IO, if it hasn't been written yet, followed by the data passed in the argument.

long Exiv2::Internal::IoWrapper::write const byte pData,
long  wcount
 

Wraps the corresponding BasicIo::write() method.

Writes the TIFF header to the IO, if it hasn't been written yet, followed by the data passed in the arguments.


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