Exiv2: Exiv2::Cr2Header Class Reference

- Main Page
- Namespaces
- Classes
- Files
- Examples

- Search for |

- Alphabetical List
- Class List
- Class Hierarchy
- Class Members

# Exiv2::Cr2Header Class Reference

Canon CR2 header structure. More...

`#include <cr2image.hpp>`

Inheritance diagram for Exiv2::Cr2Header:

[legend]
Collaboration diagram for Exiv2::Cr2Header:

[legend]

List of all members.

## Public Member Functions
Creators
| Cr2Header ()
| Default constructor.
| ~Cr2Header ()
| Destructor.
Manipulators
bool | read (const byte *pData, uint32_t size)
| Read the image header from a data buffer. Return false if the data buffer does not contain an image header of the expected format, else true.
Accessors
void | write (Blob &blob) const
| Write the image header to the binary image blob. This method appends to the blob.

## Detailed Description

Canon CR2 header structure.

## Member Function Documentation

bool Exiv2::Cr2Header::read | ( | const byte * | pData,
|  | uint32_t | size |
| ) |  |  | `[virtual]`

Read the image header from a data buffer. Return false if the data buffer does not contain an image header of the expected format, else true.

Parameters:

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

Reimplemented from Exiv2::TiffHeaderBase.

void Exiv2::Cr2Header::write | ( | Blob & | blob | ) | const`[virtual]`

Write the image 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.

Reimplemented from Exiv2::TiffHeaderBase.

The documentation for this class was generated from the following file:

- cr2image.hpp