MNE-CPP  beta 0.1
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
text.h
Go to the documentation of this file.
1 //=============================================================================================================
36 #ifndef TEXT_H
37 #define TEXT_H
38 
39 
40 //*************************************************************************************************************
41 //=============================================================================================================
42 // INCLUDES
43 //=============================================================================================================
44 
45 #include "sngchnmeasurement.h"
46 
47 
48 //*************************************************************************************************************
49 //=============================================================================================================
50 // Qt INCLUDES
51 //=============================================================================================================
52 
53 #include <QSharedPointer>
54 
55 
56 //*************************************************************************************************************
57 //=============================================================================================================
58 // DEFINE NAMESPACE XMEASLIB
59 //=============================================================================================================
60 
61 namespace XMEASLIB
62 {
63 
64 
65 //=============================================================================================================
73 {
74 public:
75  typedef QSharedPointer<Text> SPtr;
76  typedef QSharedPointer<const Text> ConstSPtr;
78  //=========================================================================================================
82  Text();
83  //=========================================================================================================
87  virtual ~Text();
88 
89  //=========================================================================================================
95  void setText(const QString& text);
96  //=========================================================================================================
102  inline const QString& getText() const;
103 
104  //=========================================================================================================
111  virtual void setValue(double) {;};
112  //=========================================================================================================
119  virtual double getValue() const {return -1;};
120 
121 private:
122  QString m_Text;
123 };
124 
125 
126 //*************************************************************************************************************
127 //=============================================================================================================
128 // INLINE DEFINITIONS
129 //*************************************************************************************************************
130 
131 inline const QString& Text::getText() const
132 {
133  return m_Text;
134 }
135 
136 } // NAMESPACE
137 
138 #endif // TEXT_H
const QString & getText() const
Definition: text.h:131
The Text class is the base class of every Text Measurement.
Definition: text.h:72
#define XMEASSHARED_EXPORT
Definition: xmeas_global.h:54
QSharedPointer< Text > SPtr
Definition: text.h:75
virtual double getValue() const
Definition: text.h:119
virtual void setValue(double)
Definition: text.h:111
The SngChnMeasurement class is the base class of every SngChnMeasurement.
Contains the declaration of the SngChnMeasurement base class.
QSharedPointer< const Text > ConstSPtr
Definition: text.h:76