MNE-CPP  beta 0.1
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | List of all members
XMEASLIB::RealTimeMultiSampleArrayNew Class Reference

The RealTimeMultiSampleArrayNew class is the base class of every RealTimeMultiSampleArrayNew Measurement. More...

#include <realtimemultisamplearray_new.h>

Inheritance diagram for XMEASLIB::RealTimeMultiSampleArrayNew:
XMEASLIB::MltChnMeasurement XMEASLIB::Measurement Subject

Public Types

typedef QSharedPointer
< RealTimeMultiSampleArrayNew
SPtr
 
typedef QSharedPointer< const
RealTimeMultiSampleArrayNew
ConstSPtr
 
- Public Types inherited from XMEASLIB::MltChnMeasurement
typedef QSharedPointer
< MltChnMeasurement
SPtr
 
typedef QSharedPointer< const
MltChnMeasurement
ConstSPtr
 
- Public Types inherited from XMEASLIB::Measurement
typedef QSharedPointer
< Measurement
SPtr
 
typedef QSharedPointer< const
Measurement
ConstSPtr
 
- Public Types inherited from Subject
typedef QSharedPointer< SubjectSPtr
 
typedef QSharedPointer< const
Subject
ConstSPtr
 
typedef QSet< IObserver * > t_Observers
 

Public Member Functions

 RealTimeMultiSampleArrayNew ()
 
virtual ~RealTimeMultiSampleArrayNew ()
 
void init (unsigned int uiNumChannels)
 
void initFromFiffInfo (FiffInfo::SPtr &p_pFiffInfo)
 
void setSamplingRate (double dSamplingRate)
 
double getSamplingRate () const
 
unsigned int getNumChannels () const
 
QList
< RealTimeSampleArrayChInfo > & 
chInfo ()
 
FiffInfo::SPtrgetFiffInfo ()
 
void setMultiArraySize (unsigned char ucMultiArraySize)
 
unsigned char getMultiArraySize () const
 
const QVector< VectorXd > & getMultiSampleArray ()
 
virtual void setValue (VectorXd v)
 
virtual VectorXd getValue () const
 
- Public Member Functions inherited from XMEASLIB::MltChnMeasurement
 MltChnMeasurement ()
 
virtual ~MltChnMeasurement ()
 
virtual bool isSingleChannel () const
 
- Public Member Functions inherited from XMEASLIB::Measurement
 Measurement ()
 
virtual ~Measurement ()
 
void setName (const QString &name)
 
QString getName () const
 
void setVisibility (bool visibility)
 
bool isVisible () const
 
- Public Member Functions inherited from Subject
virtual ~Subject ()
 
void attach (IObserver *pObserver)
 
void detach (IObserver *pObserver)
 
void notify ()
 
t_Observersobservers ()
 
int observerNumDebug ()
 

Additional Inherited Members

- Static Public Attributes inherited from Subject
static bool notifyEnabled = true
 
- Protected Member Functions inherited from Subject
 Subject ()
 

Detailed Description

The RealTimeMultiSampleArrayNew class is the base class of every RealTimeMultiSampleArrayNew Measurement.

DECLARE CLASS RealTimeMultiSampleArrayNew

Definition at line 85 of file realtimemultisamplearray_new.h.

Member Typedef Documentation

Const shared pointer type for RealTimeMultiSampleArrayNew.

Definition at line 89 of file realtimemultisamplearray_new.h.

Shared pointer type for RealTimeMultiSampleArrayNew.

Definition at line 88 of file realtimemultisamplearray_new.h.

Constructor & Destructor Documentation

RealTimeMultiSampleArrayNew::RealTimeMultiSampleArrayNew ( )

Constructs a RealTimeMultiSampleArrayNew.

Definition at line 66 of file realtimemultisamplearray_new.cpp.

RealTimeMultiSampleArrayNew::~RealTimeMultiSampleArrayNew ( )
virtual

Destroys the RealTimeMultiSampleArrayNew.

Definition at line 77 of file realtimemultisamplearray_new.cpp.

Member Function Documentation

QList< RealTimeSampleArrayChInfo > & XMEASLIB::RealTimeMultiSampleArrayNew::chInfo ( )
inline

Returns the reference to the channel list.

Returns
the reference to the channel list.

Definition at line 241 of file realtimemultisamplearray_new.h.

FiffInfo::SPtr & XMEASLIB::RealTimeMultiSampleArrayNew::getFiffInfo ( )
inline

Returns the reference to the orig FiffInfo.

Returns
the reference to the orig FiffInfo.

Definition at line 249 of file realtimemultisamplearray_new.h.

unsigned char XMEASLIB::RealTimeMultiSampleArrayNew::getMultiArraySize ( ) const
inline

Returns the number of values which should be gathered before attached observers are notified by calling the Subject notify() method.

Returns
the number of values which are gathered before a notify() is called.

Definition at line 269 of file realtimemultisamplearray_new.h.

const QVector< VectorXd > & XMEASLIB::RealTimeMultiSampleArrayNew::getMultiSampleArray ( )
inline

Returns the gathered multi sample array.

Returns
the current multi sample array.

Definition at line 277 of file realtimemultisamplearray_new.h.

unsigned int XMEASLIB::RealTimeMultiSampleArrayNew::getNumChannels ( ) const
inline

Returns the number of channels.

Returns
the number of values which are gathered before a notify() is called.

Definition at line 233 of file realtimemultisamplearray_new.h.

double XMEASLIB::RealTimeMultiSampleArrayNew::getSamplingRate ( ) const
inline

Returns the sampling rate of the RealTimeMultiSampleArrayNew Measurement.

Returns
the sampling rate of the RealTimeMultiSampleArrayNew.

Definition at line 225 of file realtimemultisamplearray_new.h.

VectorXd RealTimeMultiSampleArrayNew::getValue ( ) const
virtual

Returns the current value set. This method is inherited by Measurement.

Returns
the last attached value.

Implements XMEASLIB::MltChnMeasurement.

Definition at line 225 of file realtimemultisamplearray_new.cpp.

void RealTimeMultiSampleArrayNew::init ( unsigned int  uiNumChannels)
inline

Inits RealTimeMultiSampleArrayNew and adds uiNumChannels empty channel information

Parameters
[in]uiNumChannelsthe number of channels to init.

Definition at line 85 of file realtimemultisamplearray_new.cpp.

void RealTimeMultiSampleArrayNew::initFromFiffInfo ( FiffInfo::SPtr p_pFiffInfo)

Init channel infos using fiff info

Parameters
[in]p_pFiffInfoInfo to init from

Definition at line 99 of file realtimemultisamplearray_new.cpp.

void XMEASLIB::RealTimeMultiSampleArrayNew::setMultiArraySize ( unsigned char  ucMultiArraySize)
inline

Sets the number of sample vectors which should be gathered before attached observers are notified by calling the Subject notify() method.

Parameters
[in]ucMultiArraySizethe number of values.

Definition at line 257 of file realtimemultisamplearray_new.h.

void XMEASLIB::RealTimeMultiSampleArrayNew::setSamplingRate ( double  dSamplingRate)
inline

Sets the sampling rate of the RealTimeMultiSampleArrayNew Measurement.

Parameters
[in]dSamplingRatethe sampling rate of the RealTimeMultiSampleArrayNew.

Definition at line 217 of file realtimemultisamplearray_new.h.

void RealTimeMultiSampleArrayNew::setValue ( VectorXd  v)
virtual

Attaches a value to the sample array vector. This method is inherited by Measurement.

Parameters
[in]vthe value which is attached to the sample array vector.

Implements XMEASLIB::MltChnMeasurement.

Definition at line 233 of file realtimemultisamplearray_new.cpp.


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