00001 // $Header: /local/reps/Gaudi/GaudiKernel/GaudiKernel/IIncidentListener.h,v 1.4 2004/07/19 06:47:55 mato Exp $ 00002 #ifndef GAUDIKERNEL_IINCIDENTLISTENER_H 00003 #define GAUDIKERNEL_IINCIDENTLISTENER_H 00004 00005 // Include Files 00006 #include "GaudiKernel/IInterface.h" 00007 #include "GaudiKernel/Incident.h" 00008 #include <string> 00009 00010 00011 // Declaration of the interface ID ( interface id, major version, minor version) 00012 static const InterfaceID IID_IIncidentListener(311, 1 , 0); 00013 00018 class IIncidentListener : virtual public IInterface { 00019 public: 00021 static const InterfaceID& interfaceID() { return IID_IIncidentListener; } 00023 virtual void handle(const Incident&) = 0; 00024 }; 00025 00026 #endif // GAUDIKERNEL_IINCIDENTLISTENER_H