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::Numeric Class Reference

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

#include <numeric.h>

Inheritance diagram for XMEASLIB::Numeric:
XMEASLIB::SngChnMeasurement XMEASLIB::Measurement Subject

Public Types

typedef QSharedPointer< NumericSPtr
 
typedef QSharedPointer< const
Numeric
ConstSPtr
 
- Public Types inherited from XMEASLIB::SngChnMeasurement
typedef QSharedPointer
< SngChnMeasurement
SPtr
 
typedef QSharedPointer< const
SngChnMeasurement
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

 Numeric ()
 
virtual ~Numeric ()
 
void setUnit (const QString &unit)
 
const QString & getUnit () const
 
virtual void setValue (double v)
 
virtual double getValue () const
 
- Public Member Functions inherited from XMEASLIB::SngChnMeasurement
 SngChnMeasurement ()
 
virtual ~SngChnMeasurement ()
 
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 Numeric class is the base class of every Numeric Measurement.

DECLARE CLASS Numeric

Definition at line 72 of file numeric.h.

Member Typedef Documentation

typedef QSharedPointer<const Numeric> XMEASLIB::Numeric::ConstSPtr

Const shared pointer type for Numeric.

Definition at line 76 of file numeric.h.

typedef QSharedPointer<Numeric> XMEASLIB::Numeric::SPtr

Shared pointer type for Numeric.

Definition at line 75 of file numeric.h.

Constructor & Destructor Documentation

Numeric::Numeric ( )

Constructs a Numeric.

Definition at line 57 of file numeric.cpp.

Numeric::~Numeric ( )
virtual

Destroys the Numeric.

Definition at line 69 of file numeric.cpp.

Member Function Documentation

const QString & XMEASLIB::Numeric::getUnit ( ) const
inline

Returns the unit of the numeric measurement.

Returns
the unit of the data of measurement.

Definition at line 139 of file numeric.h.

double Numeric::getValue ( ) const
virtual

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

Returns
the current value of the Numeric measurement.

Implements XMEASLIB::SngChnMeasurement.

Definition at line 86 of file numeric.cpp.

void XMEASLIB::Numeric::setUnit ( const QString &  unit)
inline

Sets the unit of the numeric data.

Parameters
[in]unitof the data.

Definition at line 131 of file numeric.h.

void Numeric::setValue ( double  v)
virtual

Sets a value and notify() all attached observers. This method is inherited by Measurement.

Parameters
[in]vthe value which is set to the Numeric measurement.

Implements XMEASLIB::SngChnMeasurement.

Definition at line 77 of file numeric.cpp.


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