00001 #ifndef _GENAVSOURCE_H 00002 #define _GENAVSOURCE_H 00003 00004 #include <OpenTracker/OpenTracker.h> 00005 #include <string> 00006 #include <ace/Synch.h> 00007 00008 00009 namespace ot { 00010 00017 class GENavSource : public Node 00018 { 00019 // Members 00020 public: 00022 Event event; 00023 void SetID(std::string ID_) 00024 { ID=ID_; 00025 } 00026 ACE_Thread_Mutex * mutex; 00027 bool changed; 00028 // Methods 00029 protected: 00031 GENavSource() : Node() 00032 { 00033 mutex = new ACE_Thread_Mutex; 00034 } 00035 00036 private: 00037 00038 00039 std::string ID; 00040 00041 public: 00046 virtual int isEventGenerator() 00047 { 00048 return 1; 00049 } 00050 00051 friend class GENavModule; 00052 }; 00053 } 00054 #endif
1.4.6