AwReadWrite
Read Write Library for AnyWave
Public Member Functions | List of all members
AwDataInfoReader Class Reference

Defines class to manage file information for reader's plug-ins. More...

#include <AwReadWriteLib.h>

Inheritance diagram for AwDataInfoReader:
AwDataInfo

Public Member Functions

int indexOfChannel (const QString &name)
 
AwChannel * addChannel (AwChannel *channel)
 
AwChannel * addChannel (AwChannel &channel)
 
void changeChannelName (const QString &oldName, const QString &newName)
 
- Public Member Functions inherited from AwDataInfo
AwBlockList & blocks ()
 
AwChannelList & channels ()
 
qint32 channelsCount ()
 
QString & patientName ()
 
QString & recordingDate ()
 
QString & recordingTime ()
 
QString & manufacturer ()
 
AwBlocknewBlock ()
 
float totalDuration ()
 
quint32 totalSamples ()
 
bool isEpoched ()
 
QString & fileName ()
 
void setFileName (const QString &name)
 
void setManufacturer (const QString &man)
 
void setTime (const QString &time)
 
void setDate (const QString &date)
 
void setPatientName (const QString &name)
 

Detailed Description

Defines class to manage file information for reader's plug-ins.

Inherited from AwDataInfo.

Remarks
This object is used in the Reader plug-ins interface.
See also
AwDataInfo | AwFileReader

Member Function Documentation

AwChannel * AwDataInfoReader::addChannel ( AwChannel *  channel)

Adds a new channel as As Recorded channel. The As Recorded channels are the channels found in the data file.

The channel is duplicated and then inserted in the current list of As Recorded channels for the file. Remember to delete the channel passed as parameter after the insertion is complete.

AwChannel * AwDataInfoReader::addChannel ( AwChannel &  channel)

Adds a new channel as As Recorded channel. The As Recorded channels are the channels found in the data file.

The channel is duplicated and then inserted in the current list of As Recorded channels for the file. Remember to delete the channel passed as parameter after the insertion is complete.

void AwDataInfoReader::changeChannelName ( const QString &  oldName,
const QString &  newName 
)

Allows to change the name of a previously inserted channel. This will do nothing if the channel does not exist.

int AwDataInfoReader::indexOfChannel ( const QString &  name)

Returns the index of a channel in the file base on the channel's name. If the channel is not found, returns -1


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