ECGModule.h

Go to the documentation of this file.
00001 #ifndef _ECGMODULE_H
00002 #define _ECGMODULE_H
00003 
00004 #include <OpenTracker/OpenTracker.h>
00005 #include "NIDAQmxBase.h"
00006 
00007 
00008 namespace ot {
00014 class ECGModule : public ThreadModule, public NodeFactory
00015 {
00016 // Members
00017 protected:
00019     std::map<std::string, Node *> nodes;
00020     virtual void run();
00021 public:
00023     ECGModule();
00024 
00032     virtual Node * createNode( const std::string& name,  StringTable& attributes);
00033     virtual void init(StringTable& attributes,  ConfigNode * localTree);
00034 
00037     virtual void start();
00038     virtual void close();
00043     virtual void pushEvent();
00044  private:
00045     TaskHandle taskHandle;
00046     float sampleRate;
00047     void ErrorChk(int error);
00048     char        errBuff[2048];
00049 };
00050   OT_MODULE(ECGModule);
00051 } // namespace ot
00052 
00053 #endif

Generated on Wed Feb 28 15:18:49 2007 for NaviTrack by  doxygen 1.4.6