#include <diskiobuffers_bin.h>
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 |
NSDiskIO::EPOSBinReader::EPOSBinReader | ( | QObject * | = 0 |
) |
NSDiskIO::EPOSBinReader::~EPOSBinReader | ( | ) |
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] |
void NSDiskIO::EPOSBinReader::setFile | ( | QString | ) | [virtual] |
Implements NSDiskIO::AbstractReader.
QString NSDiskIO::EPOSBinReader::filename | ( | ) | const [virtual] |
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.
int NSDiskIO::EPOSBinReader::_headertoskip [private] |
int NSDiskIO::EPOSBinReader::_fileversion [private] |
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% )