MNE-CPP  beta 0.1
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
brainmonitor.h
Go to the documentation of this file.
1 //=============================================================================================================
36 #ifndef BRAINMONITOR_H
37 #define BRAINMONITOR_H
38 
39 
40 //*************************************************************************************************************
41 //=============================================================================================================
42 // INCLUDES
43 //=============================================================================================================
44 
45 #include "brainmonitor_global.h"
46 #include <mne_x/Interfaces/IRTVisualization.h>
49 
50 #include <xMeas/Measurement/realtimesamplearray.h>
52 
53 
54 //*************************************************************************************************************
55 //=============================================================================================================
56 // QT INCLUDES
57 //=============================================================================================================
58 
59 #include <QtWidgets>
60 
61 
62 //*************************************************************************************************************
63 //=============================================================================================================
64 // DEFINE NAMESPACE BrainMonitorPlugin
65 //=============================================================================================================
66 
67 namespace BrainMonitorPlugin
68 {
69 
70 
71 //*************************************************************************************************************
72 //=============================================================================================================
73 // USED NAMESPACES
74 //=============================================================================================================
75 
76 using namespace MNEX;
77 using namespace IOBuffer;
78 
79 
80 //*************************************************************************************************************
81 //=============================================================================================================
82 // FORWARD DECLARATIONS
83 //=============================================================================================================
84 
85 
86 //=============================================================================================================
92 class BRAINMONITORSHARED_EXPORT BrainMonitor : public IRTVisualization
93 {
94  Q_OBJECT
95  Q_PLUGIN_METADATA(IID "mne_x/1.0" FILE "brainmonitor.json") //NEw Qt5 Plugin system replaces Q_EXPORT_PLUGIN2 macro
96  // Use the Q_INTERFACES() macro to tell Qt's meta-object system about the interfaces
97  Q_INTERFACES(MNEX::IRTVisualization)
98 
99 public:
100  //=========================================================================================================
104  BrainMonitor();
105  //=========================================================================================================
109  ~BrainMonitor();
110 
111  virtual bool start();
112  virtual bool stop();
113 
114  virtual Type getType() const;
115  virtual const char* getName() const;
116 
117  virtual QWidget* setupWidget();
118  virtual QWidget* runWidget();
119 
120  virtual void update(Subject* pSubject);
121 
122 protected:
123  virtual void run();
124 
125 private:
126  //=========================================================================================================
130  void init();
131 
132 };
133 
134 } // NAMESPACE
135 
136 #endif // BRAINMONITOR_H
Contains the declaration of the Multi Channel Circularbuffer base class.
The BrainMonitor class provides a dummy algorithm structure.
Definition: brainmonitor.h:92
#define BRAINMONITORSHARED_EXPORT
Contains the BrainMonitor library export/import macros.
Contains the declaration of the RealTimeMultiSampleArray class.
Contains the declaration of the CircularBuffer_old class.
The Subject class provides the base class of every subject of the observer design pattern...