it_bus_pdk/service_event.h

00001 #ifndef _SERVICE_EVENT_H_
00002 #define _SERVICE_EVENT_H_
00003 
00004 #include <it_bus/port.h>
00005 #include <it_bus/service.h>
00006 
00007 namespace IT_Bus
00008 {
00009     class IT_BUS_API ServiceEvent
00010     {
00011       public:
00012         enum EventType { ACTIVATE, DEACTIVATE, SHUTDOWN };
00013 
00014         ServiceEvent() {}
00015         virtual ~ServiceEvent();
00016 
00017         virtual EventType
00018         type() = 0;
00019 
00020         virtual Port*
00021         get_port() = 0;
00022 
00023         virtual Service*
00024         get_service() = 0;
00025 
00026       private:
00027         // private and unimplemented to prevent copying
00028         ServiceEvent(const ServiceEvent&);
00029         void operator=(const ServiceEvent&);
00030     };
00031 }
00032 
00033 #endif /*  _SERVICE_EVENT_H_ */
00034 

Generated on Tue Mar 20 15:27:53 2007 for Artix by  doxygen 1.5.1-p1