observer_info.h

00001 #ifndef _DHT_KADC_OBSERVER_INFO_H_
00002 #define _DHT_KADC_OBSERVER_INFO_H_
00003 
00004 namespace dht {
00005 namespace kadc {
00006 
00007     class observer_info {
00008         class observer_message  *_observer;
00009         class notify_handler    *_handler;
00010         class task              *_from_task;
00011     public:
00012         observer_info(class observer_message *o, 
00013                       class notify_handler *h = NULL, 
00014                       class task *t = NULL) 
00015             : _observer(o), _handler(h), _from_task(t) {}
00016             
00017         class observer_message *observer()  const { return _observer; }
00018         class notify_handler   *handler()   const { return _handler;  }
00019         void                    handler(class notify_handler *h) { 
00020             _handler = h; 
00021         }
00022         class task             *from_task() const { return _from_task; }
00023     };  
00024 } // ns kadc
00025 } // ns dht
00026 
00027 #endif //_DHT_KADC_OBSERVER_INFO_H_

Generated on Thu Mar 1 16:18:47 2007 for libdht by  doxygen 1.5.1