#include <diskiobuffers.h>
Public Member Functions | |
EPOSReader (QObject *) | |
QString | filter () const |
The file-endings supported. | |
void | readSingleDataSet () |
the real work | |
void | reset () |
Go back to start. | |
void | setFile (QString file) |
QString | filename () const |
the current filename | |
bool | atEnd () const |
whether the end is reached... |
NSDiskIO::EPOSReader::EPOSReader | ( | QObject * | ) |
QString NSDiskIO::EPOSReader::filter | ( | ) | const [inline, virtual] |
void NSDiskIO::EPOSReader::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.
void NSDiskIO::EPOSReader::reset | ( | ) | [inline, virtual] |
Go back to start.
Don't collect the money and don't drink any champaign...
Implements NSDiskIO::AbstractReader.
References NSDiskIO::AbstractDiskIO< QTextStream >::_stream.
void NSDiskIO::EPOSReader::setFile | ( | QString | file | ) | [virtual] |
Implements NSDiskIO::AbstractReader.
QString NSDiskIO::EPOSReader::filename | ( | ) | const [virtual] |
bool NSDiskIO::EPOSReader::atEnd | ( | ) | const [inline, virtual] |
whether the end is reached...
Implements NSDiskIO::AbstractReader.
References NSDiskIO::AbstractDiskIO< QTextStream >::_stream.