NSDiskIO::EPOSBinReader Class Reference

#include <diskiobuffers_bin.h>

Inheritance diagram for NSDiskIO::EPOSBinReader:

NSDiskIO::AbstractReader NSDiskIO::AbstractDiskIO< QDataStream > NSCore::DataSetProducer NSCore::QTreeItem QObject NSCore::PointerProtection_Skel
Collaboration diagram for NSDiskIO::EPOSBinReader:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 EPOSBinReader (QObject *=0)
 ~EPOSBinReader ()
void reset ()
 Go back to start.
bool atEnd () const
 whether the end is reached...
QString filter () const
 The file-endings supported.
void setFile (QString)
QString filename () const
 the current filename
void readSingleDataSet ()
 the real work

Private Attributes

int _headertoskip
int _fileversion
 version of the file to read


Constructor & Destructor Documentation

NSDiskIO::EPOSBinReader::EPOSBinReader ( QObject = 0  ) 

NSDiskIO::EPOSBinReader::~EPOSBinReader (  ) 


Member Function Documentation

void NSDiskIO::EPOSBinReader::reset (  )  [virtual]

Go back to start.

Don't collect the money and don't drink any champaign...

Implements NSDiskIO::AbstractReader.

bool NSDiskIO::EPOSBinReader::atEnd (  )  const [inline, virtual]

whether the end is reached...

Implements NSDiskIO::AbstractReader.

References NSDiskIO::AbstractDiskIO< QDataStream >::_stream.

QString NSDiskIO::EPOSBinReader::filter (  )  const [inline, virtual]

The file-endings supported.

Implements NSDiskIO::AbstractReader.

void NSDiskIO::EPOSBinReader::setFile ( QString   )  [virtual]

QString NSDiskIO::EPOSBinReader::filename (  )  const [virtual]

the current filename

Implements NSDiskIO::AbstractReader.

void NSDiskIO::EPOSBinReader::readSingleDataSet (  )  [virtual]

the real work

Implement this! Read one complete NSCore::AcqisitionDataSet from _stream and enqueue it to the buffer. You don't need to call signalData() as this will be done by the callers of this function.

This function will only be called when a file is open but it doesn't hurt to check _stream!=0 in the beginning.

You should emit percent( int ) regularly so the GUI and the user get informed about how much data i already read.

Implements NSDiskIO::AbstractReader.


Member Data Documentation

version of the file to read

0 is version 1 ( without the magic-header ) and version 2 ( with the magic-header EPOSBIN2% ) 1 is version 3 ( with magic-header EPOSBIN3% )


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

Generated on Tue Apr 12 02:10:34 2011 for epos by  doxygen 1.5.5