00001 #ifndef _emitter_trackd_H_ 00002 #define _emitter_trackd_H_ 00003 00004 #include "dev/emitter.H" 00005 #include "dev/polled.H" 00006 #include "trackdAPI.h" 00007 00008 // 00009 // A trackd tracker (which is a set of what we call trackers which all 00010 // happen to be on the same physical emitter device set) 00011 // 00012 class DEVemitter_trackd : public DEVemitter, public DEVpolled { 00013 protected: 00014 TrackerReader *_trackd_dev; 00015 int _new_data_flag; 00016 00017 virtual void clear_new_data_flag() { _new_data_flag = 0; } 00018 virtual void set_new_data_flag() { _new_data_flag = 1; } 00019 virtual int new_data_flag() const { return _new_data_flag; } 00020 00021 /* ------------- DEVpolled methods --------------- */ 00022 void do_poll(); 00023 00024 public: 00025 DEVemitter_trackd(Cstr_ptr &dev_name); 00026 virtual ~DEVemitter_trackd(); 00027 }; 00028 #endif