ECGSource.h

Go to the documentation of this file.
00001 #ifndef _ECGSOURCE_H
00002 #define _ECGSOURCE_H
00003 
00004 #include <OpenTracker/OpenTracker.h>
00005 #include <string>
00013 namespace ot {
00014 
00015 class ECGSource : public Node
00016 {
00017 // Members
00018 public: 
00020     Event event;
00021  private:
00022     float sampleRate;
00023     std::string channel;
00024 
00025 // Methods
00026 protected:
00027     int newval;
00029     ECGSource(std::string chan) : Node()
00030     {
00031       channel=chan;
00032       newval=0;
00033 }
00034 
00035 public:            
00039     virtual int isEventGenerator()
00040     {
00041         return 1;
00042     }
00043 
00044     const char *GetChannel()
00045       {
00046         return channel.c_str();
00047       }
00048     float GetSampleRate()
00049       {
00050         return sampleRate;
00051       }
00052 
00053     friend class ECGModule;
00054 };
00055 
00056 } // namespace ot
00057 
00058 #endif

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