00001 #ifndef _GENAVMODULE_H 00002 #define _GENAVMODULE_H 00003 00004 #include <OpenTracker/OpenTracker.h> 00005 #include "omniORB4/CORBA.h" 00006 #include "COS/CosEventChannelAdmin.hh" 00007 #include "Lucas.hh" 00008 #include "GENavSource.h" 00009 #include <map> 00010 00011 00012 00013 namespace CosNaming { 00014 extern std::ostream& operator<<(std::ostream& o, 00015 const Name& name); 00016 00017 } 00018 00019 namespace CORBA { 00020 00021 extern std::ostream& operator<<(std::ostream& o, const SystemException& ex); 00022 00023 extern std::ostream& operator<<(std::ostream& o, const Exception& ex); 00024 00025 } 00026 00027 class GENav_Tracker_Consumer; 00028 00029 00030 namespace ot { 00031 00038 class GENavModule : public Module, public NodeFactory 00039 { 00040 // Members 00041 protected: 00042 00043 00044 // Methods 00045 protected: 00046 00047 public: 00049 GENavModule(); 00050 00052 virtual ~GENavModule(); 00060 virtual void init(StringTable& attributes, ConfigNode * localTree); 00068 virtual Node * createNode( const std::string& name, StringTable& attributes); 00069 00071 virtual void start(); 00074 virtual void close(){}; 00079 virtual void pushEvent(); 00080 00082 //void setStatus(int status); 00083 00084 NodeVector sources; 00085 private: 00086 bool live; 00087 GENav_Tracker_Consumer *consumer; 00088 nav::engine::tracker::corba::LucasTracker_var m_Lucas; 00089 }; 00090 OT_MODULE(GENavModule); 00091 } 00092 #endif
1.4.6