MNE-CPP  beta 1.0
eegosportsproducer.h
Go to the documentation of this file.
1 //=============================================================================================================
37 #ifndef EEGOSPORTSPRODUCER_H
38 #define EEGOSPORTSPRODUCER_H
39 
40 
41 //*************************************************************************************************************
42 //=============================================================================================================
43 // INCLUDES
44 //=============================================================================================================
45 
47 #include <Eigen/Eigen>
48 
49 
50 //*************************************************************************************************************
51 //=============================================================================================================
52 // QT INCLUDES
53 //=============================================================================================================
54 
55 #include <QThread>
56 
57 
58 //*************************************************************************************************************
59 //=============================================================================================================
60 // DEFINE NAMESPACE EEGoSportsPlugin
61 //=============================================================================================================
62 
63 namespace EEGoSportsPlugin
64 {
65 
66 
67 //*************************************************************************************************************
68 //=============================================================================================================
69 // USED NAMESPACES
70 //=============================================================================================================
71 
72 using namespace IOBuffer;
73 using namespace Eigen;
74 
75 
76 //*************************************************************************************************************
77 //=============================================================================================================
78 // FORWARD DECLARATIONS
79 //=============================================================================================================
80 
81 class EEGoSports;
82 class EEGoSportsDriver;
83 
84 
85 //=============================================================================================================
91 class EEGoSportsProducer : public QThread
92 {
93 public:
94  //=========================================================================================================
100  EEGoSportsProducer(EEGoSports* pEEGoSports);
101 
102  //=========================================================================================================
107 
108  //=========================================================================================================
119  virtual void start(int iNumberOfChannels,
120  int iSamplingFrequency,
121  bool bUseChExponent,
122  bool bWriteDriverDebugToFile,
123  QString sOutputFilePath,
124  bool bMeasureImpedance);
125 
126  //=========================================================================================================
130  void stop();
131 
132 protected:
133  //=========================================================================================================
139  virtual void run();
140 
141 private:
142  EEGoSports* m_pEEGoSports;
143  QSharedPointer<EEGoSportsDriver> m_pEEGoSportsDriver;
145  bool m_bIsRunning;
146 };
147 
148 } // NAMESPACE
149 
150 #endif // EEGOSPORTSPRODUCER_H
The EEGProducer class provides a EEG data producer for a given sampling rate.
CircularBuffer class declaration.
The EEGoSports class provides a EEG connector. In order for this plugin to work properly the driver d...
Definition: eegosports.h:120