MNE-CPP  beta 1.0
Public Types | Public Member Functions | List of all members
XMEASLIB::NewNumeric Class Reference

The Numeric class provides a Numeric Measurement. More...

#include <newnumeric.h>

Inheritance diagram for XMEASLIB::NewNumeric:
XMEASLIB::NewMeasurement

Public Types

typedef QSharedPointer< NewNumericSPtr
 
typedef QSharedPointer< const NewNumericConstSPtr
 
- Public Types inherited from XMEASLIB::NewMeasurement
typedef QSharedPointer< NewMeasurementSPtr
 
typedef QSharedPointer< const NewMeasurementConstSPtr
 

Public Member Functions

 NewNumeric (QObject *parent=0)
 
virtual ~NewNumeric ()
 
void setUnit (const QString &unit)
 
const QString & getUnit () const
 
virtual void setValue (double v)
 
virtual double getValue () const
 
- Public Member Functions inherited from XMEASLIB::NewMeasurement
 NewMeasurement (int type=QMetaType::UnknownType, QObject *parent=0)
 
virtual ~NewMeasurement ()
 
const QString & getName () const
 
void setName (const QString &name)
 
bool isVisible () const
 
void setVisibility (bool visibility)
 
int type () const
 

Additional Inherited Members

- Signals inherited from XMEASLIB::NewMeasurement
void notify ()
 
- Protected Member Functions inherited from XMEASLIB::NewMeasurement
void setType (int type)
 

Detailed Description

The Numeric class provides a Numeric Measurement.

The Numeric class provides a Numeric Measurement.

Definition at line 74 of file newnumeric.h.

Member Typedef Documentation

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

Const shared pointer type for NewNumeric.

Definition at line 79 of file newnumeric.h.

typedef QSharedPointer<NewNumeric> XMEASLIB::NewNumeric::SPtr

Shared pointer type for NewNumeric.

Definition at line 78 of file newnumeric.h.

Constructor & Destructor Documentation

NewNumeric::NewNumeric ( QObject *  parent = 0)

Constructs a Numeric.

Definition at line 57 of file newnumeric.cpp.

NewNumeric::~NewNumeric ( )
virtual

Destroys the Numeric.

Definition at line 68 of file newnumeric.cpp.

Member Function Documentation

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

Returns the unit of the numeric measurement.

Returns
the unit of the data of measurement.

Definition at line 149 of file newnumeric.h.

double NewNumeric::getValue ( ) const
virtual

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

Returns
the current value of the Numeric measurement.

Definition at line 87 of file newnumeric.cpp.

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

Sets the unit of the numeric data.

Parameters
[in]unitof the data.

Definition at line 140 of file newnumeric.h.

void NewNumeric::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.

Definition at line 76 of file newnumeric.cpp.


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