MNE-CPP  beta 1.0
dummytoolbox.h
Go to the documentation of this file.
1 //=============================================================================================================
36 #ifndef DUMMYTOOLBOX_H
37 #define DUMMYTOOLBOX_H
38 
39 
40 //*************************************************************************************************************
41 //=============================================================================================================
42 // INCLUDES
43 //=============================================================================================================
44 
45 #include "dummytoolbox_global.h"
46 
50 
51 
52 //*************************************************************************************************************
53 //=============================================================================================================
54 // QT INCLUDES
55 //=============================================================================================================
56 
57 #include <QtWidgets>
58 
59 
60 //*************************************************************************************************************
61 //=============================================================================================================
62 // DEFINE NAMESPACE DummyToolboxPlugin
63 //=============================================================================================================
64 
65 namespace DummyToolboxPlugin
66 {
67 
68 
69 //*************************************************************************************************************
70 //=============================================================================================================
71 // USED NAMESPACES
72 //=============================================================================================================
73 
74 using namespace MNEX;
75 using namespace XMEASLIB;
76 using namespace IOBuffer;
77 
78 
79 //*************************************************************************************************************
80 //=============================================================================================================
81 // FORWARD DECLARATIONS
82 //=============================================================================================================
83 
84 
85 //=============================================================================================================
92 {
93  Q_OBJECT
94  Q_PLUGIN_METADATA(IID "mne_x/1.0" FILE "dummytoolbox.json") //NEw Qt5 Plugin system replaces Q_EXPORT_PLUGIN2 macro
95  // Use the Q_INTERFACES() macro to tell Qt's meta-object system about the interfaces
96  Q_INTERFACES(MNEX::IAlgorithm)
97 
98 public:
99  //=========================================================================================================
103  DummyToolbox();
104 
105  //=========================================================================================================
109  ~DummyToolbox();
110 
111  //=========================================================================================================
115  virtual void init();
116 
117  //=========================================================================================================
121  virtual void unload();
122 
123  //=========================================================================================================
127  virtual QSharedPointer<IPlugin> clone() const;
128 
129  virtual bool start();
130  virtual bool stop();
131 
132  virtual IPlugin::PluginType getType() const;
133  virtual QString getName() const;
134 
135  virtual QWidget* setupWidget();
136 
137  void update(XMEASLIB::NewMeasurement::SPtr pMeasurement);
138 
139 protected:
140  virtual void run();
141 
142 private:
143  bool m_bIsRunning;
144 
148  dBuffer::SPtr m_pDummyBuffer;
149 };
150 
151 } // NAMESPACE
152 
153 #endif // DUMMYTOOLBOX_H
Contains declaration of IAlgorithm interface class.
The DummyToolbox class provides a dummy algorithm structure.
Definition: dummytoolbox.h:91
QSharedPointer< PluginOutputData< T > > SPtr
Contains the DummyToolbox library export/import macros.
The IAlgorithm class provides an interface for a real-time algorithm plugin.
Definition: IAlgorithm.h:70
Contains the declaration of the NewRealTimeSampleArray class.
QSharedPointer< PluginInputData > SPtr
Definition: arrow.h:75
CircularBuffer class declaration.
QSharedPointer< NewMeasurement > SPtr
#define DUMMYTOOLBOXSHARED_EXPORT