Exiv2::Cr2Header Class Reference

This class models a Canon CR2 header structure. More...

#include <cr2image.hpp>

List of all members.

Public Member Functions

Creators
 Cr2Header ()
 Default constructor.
Manipulators
bool read (const byte *pData, uint32_t size)
 Read the CR2 header from a data buffer. Return false if the data buffer does not contain a CR2 header, else true.
Accessors
void write (Blob &blob) const
 Write the CR2 header to the binary image blob. This method appends to the blob.
void print (std::ostream &os, const std::string &prefix="") const
 Print debug info for the CR2 header to os.
ByteOrder byteOrder () const
 Return the byte order (little or big endian).
uint32_t offset () const
 Return the offset to the start of the root directory.


Detailed Description

This class models a Canon CR2 header structure.

Member Function Documentation

bool Exiv2::Cr2Header::read ( const byte pData,
uint32_t  size 
)

Read the CR2 header from a data buffer. Return false if the data buffer does not contain a CR2 header, else true.

Parameters:
pData Pointer to the data buffer.
size Number of bytes in the data buffer.

void Exiv2::Cr2Header::write ( Blob blob  )  const

Write the CR2 header to the binary image blob. This method appends to the blob.

Parameters:
blob Binary image to add to.
Exceptions:
Error If the header cannot be written.

void Exiv2::Cr2Header::print ( std::ostream &  os,
const std::string &  prefix = "" 
) const

Print debug info for the CR2 header to os.

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


The documentation for this class was generated from the following file:
Generated on Wed Oct 15 00:58:20 2008 for Exiv2 by  doxygen 1.5.3