LTI-Lib latest version v1.9 - last update 10 Apr 2010

lti::ioLTI::header Class Reference

LTI-Format file header. More...

#include <ltiLTIFunctor.h>

Collaboration diagram for lti::ioLTI::header:
Collaboration graph
[legend]

List of all members.

Public Member Functions

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

Public Attributes

const uint16 type
union {
}; 
uint32 size
const uint32 reserved1
const uint32 reserved2
uint32 rows
uint32 columns
ubyte contents
ubyte compression

Detailed Description

LTI-Format file header.

This class is defined within the class lti::ioLTI. The header is always stored uncompressed.


Constructor & Destructor Documentation

lti::ioLTI::header::header (  ) 

default constructor


Member Function Documentation

int lti::ioLTI::header::length (  )  const [inline]

size of the header (in bytes)

bool lti::ioLTI::header::read ( std::ifstream &  in  ) 

reads header from the stream "in".

Returns:
false if stream had an invalid header.
bool lti::ioLTI::header::write ( std::ofstream &  out  ) 

writes header to the stream "out".

Returns:
false if an error occurs.

Member Data Documentation

union { ... }

Contents type:

number of columns

Compression type:

  • 0 : no compression
  • 1 : runlength compression
  • 2 : flate compression (only with zlib).

ubyte lti::ioLTI::header::contents

Contents type:

Must be 0 This can be used in the future to define some compressed formats.

Must be 0 This can be used in the future to define some compressed formats.

number of rows

file size in byte (excluding the header, so only the data section is counted).

file type.

For LTI-Types this must be 'LT'


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

Generated on Sat Apr 10 15:28:05 2010 for LTI-Lib by Doxygen 1.6.1