CVR-Lib last update 20 Sep 2009

cvr::ioBMP::ioBMP::header Class Reference

Class header implements BITMAPFILEHEADER. More...

#include <cvrIOBMP.h>

List of all members.

Public Member Functions

 header ()
bool read (std::ifstream &in)
bool write (std::ofstream &out) const
int length () const

Public Attributes

const uint16 type
uint32 size
const uint16 reserved1
const uint16 reserved2
uint32 offsetPixels


Detailed Description

Class header implements BITMAPFILEHEADER.

This class is defined within the class cvr::ioBMP.


Constructor & Destructor Documentation

cvr::ioBMP::ioBMP::header::header (  ) 

default constructor


Member Function Documentation

int cvr::ioBMP::ioBMP::header::length (  )  const [inline]

size of the header (in bytes)

bool cvr::ioBMP::ioBMP::header::read ( std::ifstream &  in  ) 

reads header from the stream "in".

Returns:
false if stream had an invalid header.

bool cvr::ioBMP::ioBMP::header::write ( std::ofstream &  out  )  const

writes header to the stream "out".

Returns:
false if an error occurs.


Member Data Documentation

uint32 cvr::ioBMP::ioBMP::header::offsetPixels

offset (in bytes) from this header to the bitmap pixels

const uint16 cvr::ioBMP::ioBMP::header::reserved1

must be 0

const uint16 cvr::ioBMP::ioBMP::header::reserved2

must be 0

uint32 cvr::ioBMP::ioBMP::header::size

file size in byte

const uint16 cvr::ioBMP::ioBMP::header::type

file type.

For Bitmaps this must be 'BM'


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

Generated on Sun Sep 20 22:08:53 2009 for CVR-Lib by Doxygen 1.5.8