MNE-CPP  beta 1.0
Public Member Functions | Protected Member Functions | List of all members
EEGoSportsPlugin::EEGoSportsProducer Class Reference

The EEGProducer class provides a EEG data producer for a given sampling rate. More...

#include <eegosportsproducer.h>

Inheritance diagram for EEGoSportsPlugin::EEGoSportsProducer:

Public Member Functions

 EEGoSportsProducer (EEGoSports *pEEGoSports)
 
 ~EEGoSportsProducer ()
 
virtual void start (int iNumberOfChannels, int iSamplingFrequency, bool bUseChExponent, bool bWriteDriverDebugToFile, QString sOutputFilePath, bool bMeasureImpedance)
 
void stop ()
 

Protected Member Functions

virtual void run ()
 

Detailed Description

The EEGProducer class provides a EEG data producer for a given sampling rate.

DECLARE CLASS EEGProducer

Definition at line 91 of file eegosportsproducer.h.

Constructor & Destructor Documentation

EEGoSportsProducer::EEGoSportsProducer ( EEGoSports pEEGoSports)

Constructs a EEGoSportsProducer.

Parameters
[in]pEEGoSportsa pointer to the corresponding EEGoSports class.

Definition at line 62 of file eegosportsproducer.cpp.

EEGoSportsProducer::~EEGoSportsProducer ( )

Destroys the EEGoSportsProducer.

Definition at line 72 of file eegosportsproducer.cpp.

Member Function Documentation

void EEGoSportsProducer::run ( )
protectedvirtual

The starting point for the thread. After calling start(), the newly created thread calls this function. Returning from this method will end the execution of the thread. Pure virtual method inherited by QThread.

Definition at line 123 of file eegosportsproducer.cpp.

void EEGoSportsProducer::start ( int  iNumberOfChannels,
int  iSamplingFrequency,
bool  bUseChExponent,
bool  bWriteDriverDebugToFile,
QString  sOutputFilePath,
bool  bMeasureImpedance 
)
virtual

Starts the EEGoSportsProducer by starting the producer's thread and initialising the device.

Parameters
[in]iNumberOfChannelsThe number of channels defined by the user via the GUI.
[in]iSamplingFrequencyThe sampling frequency defined by the user via the GUI (in Hertz).
[in]bUseChExponentFlag for using the channels exponent. Defined by the user via the GUI.
[in]sOutpuFilePathHolds the path for the output file. Defined by the user via the GUI.
[in]bWriteDriverDebugToFileFlag for writing the received samples to a file. Defined by the user via the GUI.
[in]bUseUnitOffsetFlag for using the channels unit offset. Defined by the user via the GUI.
[in]bMeasureImpedanceFlag for measuring impedances.

Definition at line 80 of file eegosportsproducer.cpp.

void EEGoSportsProducer::stop ( )

Stops the EEGoSportsProducer by stopping the producer's thread.

Definition at line 105 of file eegosportsproducer.cpp.


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