MNE-CPP  beta 1.0
tmsiproducer.h
Go to the documentation of this file.
1 //=============================================================================================================
37 #ifndef TMSIPRODUCER_H
38 #define TMSIPRODUCER_H
39 
40 
41 //*************************************************************************************************************
42 //=============================================================================================================
43 // INCLUDES
44 //=============================================================================================================
45 
47 
48 
49 //*************************************************************************************************************
50 //=============================================================================================================
51 // QT INCLUDES
52 //=============================================================================================================
53 
54 #include <QThread>
55 
56 
57 //*************************************************************************************************************
58 //=============================================================================================================
59 // DEFINE NAMESPACE TMSIPlugin
60 //=============================================================================================================
61 
62 namespace TMSIPlugin
63 {
64 
65 
66 //*************************************************************************************************************
67 //=============================================================================================================
68 // USED NAMESPACES
69 //=============================================================================================================
70 
71 using namespace IOBuffer;
72 
73 
74 //*************************************************************************************************************
75 //=============================================================================================================
76 // FORWARD DECLARATIONS
77 //=============================================================================================================
78 
79 class TMSI;
80 class TMSIDriver;
81 
82 
83 //=============================================================================================================
89 class TMSIProducer : public QThread
90 {
91 public:
92  //=========================================================================================================
98  TMSIProducer(TMSI* pTMSI);
99 
100  //=========================================================================================================
104  ~TMSIProducer();
105 
106  //=========================================================================================================
120  virtual void start(int iNumberOfChannels,
121  int iSamplingFrequency,
122  int iSamplesPerBlock,
123  bool bUseChExponent,
124  bool bUseUnitGain,
125  bool bUseUnitOffset,
126  bool bWriteDriverDebugToFile,
127  QString sOutputFilePath,
128  bool bUseCommonAverage,
129  bool bMeasureImpedance);
130 
131  //=========================================================================================================
135  void stop();
136 
137 protected:
138  //=========================================================================================================
144  virtual void run();
145 
146 private:
147  TMSI* m_pTMSI;
148  QSharedPointer<TMSIDriver> m_pTMSIDriver;
150  bool m_bIsRunning;
152 };
153 
154 } // NAMESPACE
155 
156 #endif // TMSIPRODUCER_H
The EEGProducer class provides a EEG data producer for a given sampling rate.
Definition: tmsiproducer.h:89
CircularBuffer class declaration.
The TMSI class provides a EEG connector. In order for this plugin to work properly the driver dll "RT...
Definition: tmsi.h:122