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

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

#include <text.h>

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

Public Types

typedef QSharedPointer< TextSPtr
 
typedef QSharedPointer< const
Text
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

 Text ()
 
virtual ~Text ()
 
void setText (const QString &text)
 
const QString & getText () const
 
virtual void setValue (double)
 
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 Text class is the base class of every Text Measurement.

DECLARE CLASS Text

Definition at line 72 of file text.h.

Member Typedef Documentation

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

Const shared pointer type for Text.

Definition at line 76 of file text.h.

typedef QSharedPointer<Text> XMEASLIB::Text::SPtr

Shared pointer type for Text.

Definition at line 75 of file text.h.

Constructor & Destructor Documentation

Text::Text ( )

Constructs a Text.

Definition at line 57 of file text.cpp.

Text::~Text ( )
virtual

Destroys the Text.

Definition at line 68 of file text.cpp.

Member Function Documentation

const QString & XMEASLIB::Text::getText ( ) const
inline

Returns the current text.

Returns
the current text.

Definition at line 131 of file text.h.

virtual double XMEASLIB::Text::getValue ( ) const
inlinevirtual

Returns the current value. Not used. Method inherited by Subject.

Returns
always -1, because values are not used.

Implements XMEASLIB::SngChnMeasurement.

Definition at line 119 of file text.h.

void Text::setText ( const QString &  text)

Sets a new text and notifies its observers.

Parameters
[in]textwhich should be set.

Definition at line 76 of file text.cpp.

virtual void XMEASLIB::Text::setValue ( double  )
inlinevirtual

Sets a value. Not used. Method inherited by Measurement.

Parameters
[in]valuewhich should be set.

Implements XMEASLIB::SngChnMeasurement.

Definition at line 111 of file text.h.


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