Exiv2::CiffHeader Class Reference

This class models the header of a Crw (Canon Raw data) image. More...

#include <crwimage.hpp>

Inheritance diagram for Exiv2::CiffHeader:

Inheritance graph
[legend]
Collaboration diagram for Exiv2::CiffHeader:

Collaboration graph
[legend]
List of all members.

Public Member Functions

Creators
 CiffHeader ()
 Default constructor.
virtual ~CiffHeader ()
 Virtual destructor.
Manipulators
virtual void add (RawMetadata::AutoPtr component)
 Add a component to the composition.
virtual void read (const byte *buf, uint32_t len, uint32_t start, ByteOrder byteOrder, int32_t shift=0)
 Read a component from a data buffer.
Accessors
virtual void extract (Image &image, ByteOrder byteOrder) const
 Extract metadata from the component and add it to image.
virtual void print (std::ostream &os, ByteOrder byteOrder, const std::string &prefix="") const
 Print debug info about a component to os.

Static Public Attributes

static const char signature_ [] = "HEAPCCDR"
 Canon Crw signature "HEAPCCDR".

Detailed Description

This class models the header of a Crw (Canon Raw data) image.


Member Function Documentation

void Exiv2::CiffHeader::extract Image image,
ByteOrder  byteOrder
const [virtual]
 

Extract metadata from the component and add it to image.

Parameters:
image Image to add metadata to
byteOrder Byte order

Implements Exiv2::RawMetadata.

void Exiv2::CiffHeader::print std::ostream &  os,
ByteOrder  byteOrder,
const std::string &  prefix = ""
const [virtual]
 

Print debug info about a component to os.

Parameters:
os Output stream to write to
byteOrder Byte order
prefix Prefix to be written before each line of output

Implements Exiv2::RawMetadata.

void Exiv2::CiffHeader::read const byte buf,
uint32_t  len,
uint32_t  start,
ByteOrder  byteOrder,
int32_t  shift = 0
[virtual]
 

Read a component from a data buffer.

Parameters:
buf Pointer to the data buffer.
len Number of bytes in the data buffer.
start Component starts at buf + start.
byteOrder Applicable byte order (little or big endian).
shift offsets in component are relative to buf + shift.
Exceptions:
Error If the component cannot be parsed.

Implements Exiv2::RawMetadata.


The documentation for this class was generated from the following files:
Generated on Sat Nov 19 22:19:59 2005 for Exiv2 by  doxygen 1.4.5