MNE-CPP  beta 0.1
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
measurement.h
Go to the documentation of this file.
1 //=============================================================================================================
36 #ifndef MEASUREMENT_H
37 #define MEASUREMENT_H
38 
39 
40 //*************************************************************************************************************
41 //=============================================================================================================
42 // INCLUDES
43 //=============================================================================================================
44 
45 #include "../xmeas_global.h"
47 
48 
49 //*************************************************************************************************************
50 //=============================================================================================================
51 // QT INCLUDES
52 //=============================================================================================================
53 
54 #include <QString>
55 #include <QSharedPointer>
56 
57 
58 //*************************************************************************************************************
59 //=============================================================================================================
60 // DEFINE NAMESPACE XMEASLIB
61 //=============================================================================================================
62 
63 namespace XMEASLIB
64 {
65 
66 
67 //=============================================================================================================
74 {
75 public:
76  typedef QSharedPointer<Measurement> SPtr;
77  typedef QSharedPointer<const Measurement> ConstSPtr;
79  //=========================================================================================================
83  Measurement();
84 
85  //=========================================================================================================
89  virtual ~Measurement();
90 
91  //=========================================================================================================
97  inline void setName(const QString& name);
98 
99  //=========================================================================================================
105  inline QString getName() const;
106 
107  //=========================================================================================================
113  inline void setVisibility(bool visibility);
114 
115  //=========================================================================================================
121  inline bool isVisible() const;
122 
123  //=========================================================================================================
129  virtual bool isSingleChannel() const = 0;
130 
131 private:
132  QString m_qString_Name;
133  bool m_bVisibility;
134 };
135 
136 
137 //*************************************************************************************************************
138 //=============================================================================================================
139 // INLINE DEFINITIONS
140 //=============================================================================================================
141 
142 inline void Measurement::setName(const QString& name)
143 {
144  m_qString_Name = name;
145 }
146 
147 
148 //*************************************************************************************************************
149 
150 inline QString Measurement::getName() const
151 {
152  return m_qString_Name;
153 }
154 
155 
156 //*************************************************************************************************************
157 
158 inline void Measurement::setVisibility(bool visibility)
159 {
160  m_bVisibility = visibility;
161 }
162 
163 
164 //*************************************************************************************************************
165 
166 inline bool Measurement::isVisible() const
167 {
168  return m_bVisibility;
169 }
170 
171 } // NAMESPACE
172 
173 #endif // MEASUREMENT_H
The Measurement class is the base class of every Measurement.
Definition: measurement.h:73
void setName(const QString &name)
Definition: measurement.h:142
#define XMEASSHARED_EXPORT
Definition: xmeas_global.h:54
QSharedPointer< const Measurement > ConstSPtr
Definition: measurement.h:77
Contains declarations of the observer design pattern: Subject class and IObserver interface...
The Subject class provides the base class of every subject of the observer design pattern...
QString getName() const
Definition: measurement.h:150
bool isVisible() const
Definition: measurement.h:166
void setVisibility(bool visibility)
Definition: measurement.h:158
QSharedPointer< Measurement > SPtr
Definition: measurement.h:76