Base class to implement a file reader object.
More...
#include <AwReaderInterface.h>
Base class to implement a file reader object.
A reader must derived from AwFileReader. Some virtual methods must be overriden others are optional.
AwFileReader::AwFileReader |
( |
const QString & |
filename = QString() | ) |
|
|
inline |
virtual FileStatus AwFileReader::canRead |
( |
const QString & |
path | ) |
|
|
pure virtual |
Override this method to check if the file can be read by the reader.
virtual void AwFileReader::cleanUpAndClose |
( |
| ) |
|
|
pure virtual |
Override this method to close open file(s) and memory if needed
virtual void AwFileReader::clearTriggerChannel |
( |
const QString & |
name | ) |
|
|
inlinevirtualslot |
Override this method to clear the Trigger channel.
int AwFileReader::flags |
( |
| ) |
|
|
inline |
Returns the current active features for the reader.
virtual AwSensorLayoutList AwFileReader::layouts |
( |
| ) |
|
|
inlinevirtual |
Returns a list of Sensor Layout. Could be empty if no layout which is the default implementation.
virtual FileStatus AwFileReader::openFile |
( |
const QString & |
path | ) |
|
|
pure virtual |
Override this method to open the file and fill up the data structure.
Returns a pointer to the plug-in object which had instantiated the reader object.
virtual long AwFileReader::readDataFromChannels |
( |
float |
start, |
|
|
float |
duration, |
|
|
QList< AwChannel * > & |
channelList |
|
) |
| |
|
pure virtual |
Override this method to read data from the file. start is the position in seconds from the beginning of the file. duration is the amount of data to load, expressed in seconds. channeList is a list of channels that must be loaded.
virtual AwChannelList AwFileReader::triggerChannels |
( |
| ) |
|
|
inlinevirtual |
Returns a list of trigger channels present in the file. The list may be empty.
virtual void AwFileReader::writeTriggerChannel |
( |
const QString & |
name, |
|
|
AwMarkerList & |
list |
|
) |
| |
|
inlinevirtualslot |
Override this method to write data to the Trigger channel. The name of the trigger channel must be specified. A markers list must be specified.
The documentation for this class was generated from the following file: