Go to the documentation of this file. 20 #ifndef _PS_GENERIC_EVENT_HANDLER_ 21 #define _PS_GENERIC_EVENT_HANDLER_ 23 #include <csutil/scf_implementation.h> 24 #include <iutil/eventh.h> 37 #define DeclareGenericEventHandler(handlerName,parentType,eventName) \ 38 class handlerName : public scfImplementation1<handlerName,iEventHandler> \ 44 handlerName(parentType* p) \ 45 : scfImplementationType(this), parent(p) {} \ 47 virtual ~handlerName() {} \ 49 virtual bool HandleEvent(iEvent& event) \ 51 return parent->HandleEvent(event); \ 54 CS_EVENTHANDLER_NAMES(eventName); \ 55 CS_EVENTHANDLER_NIL_CONSTRAINTS; \