Public Member Functions | Public Attributes

chomp::homengin::bmdheader Class Reference

This class helps interpret files in the BMD format defined by Marian Mrozek. More...

#include <cubfiles.h>

List of all members.

Public Member Functions

 bmdheader (const char *filename)
 The only allowed constructor.
int readbytes (std::istream &f, int n) const
 Reads an n-byte integer from the file.

Public Attributes

bool little
 Is this little endian data?
int offset
 The offset of binary data in the file.
int dim
 The dimension of the bitmap.
int length
 The length of the bitmap in the file.
int zerowidth
 The width of the actual bitmap in the first direction.
std::vector< int > width
 The size of the picture in each direction.

Detailed Description

This class helps interpret files in the BMD format defined by Marian Mrozek.

In the constructor, the header of a BMD file is read and analyzed. Based on the information from the header, a procedure for reading an n-byte integer is provided, which is useful for reading the actual bitmap data.

Definition at line 672 of file cubfiles.h.


Constructor & Destructor Documentation

chomp::homengin::bmdheader::bmdheader ( const char *  filename  ) 

The only allowed constructor.


Member Function Documentation

int chomp::homengin::bmdheader::readbytes ( std::istream &  f,
int  n 
) const

Reads an n-byte integer from the file.


Member Data Documentation

The dimension of the bitmap.

Definition at line 685 of file cubfiles.h.

The length of the bitmap in the file.

Definition at line 688 of file cubfiles.h.

Is this little endian data?

Definition at line 679 of file cubfiles.h.

The offset of binary data in the file.

Definition at line 682 of file cubfiles.h.

The size of the picture in each direction.

Definition at line 694 of file cubfiles.h.

The width of the actual bitmap in the first direction.

Definition at line 691 of file cubfiles.h.


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