Exiv2::CiffDirectory Class Reference

This class models a CIFF directory of a Crw (Canon Raw data) image. More...

#include <crwimage.hpp>

Inheritance diagram for Exiv2::CiffDirectory:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

Creators
virtual ~CiffDirectory ()
 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.
void readDirectory (const byte *buf, uint32_t len, uint32_t start, ByteOrder byteOrder, int32_t shift=0)
 Parse a CIFF directory from a memory 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.

Detailed Description

This class models a CIFF directory of a Crw (Canon Raw data) image.


Member Function Documentation

void Exiv2::CiffDirectory::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::CiffComponent.

void Exiv2::CiffDirectory::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

Reimplemented from Exiv2::CiffComponent.

void Exiv2::CiffDirectory::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.

Reimplemented from Exiv2::CiffComponent.

void Exiv2::CiffDirectory::readDirectory const byte buf,
uint32_t  len,
uint32_t  start,
ByteOrder  byteOrder,
int32_t  shift = 0
 

Parse a CIFF directory from a memory buffer.

Parameters:
buf Pointer to the memory buffer containing the directory
len Size of the memory buffer
start Directory starts at buf + start
byteOrder Applicable byte order (little or big endian)
shift Not used


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