00001 // $Header: /nfs/slac/g/glast/ground/cvs/GaudiKernel/GaudiKernel/IIncidentSvc.h,v 1.1.1.1 2001/04/18 18:14:18 tlindner Exp $ 00002 #ifndef INTERFACES_IINCIDENTSVC_H 00003 #define INTERFACES_IINCIDENTSVC_H 00004 00005 // Include Files 00006 #include "GaudiKernel/IInterface.h" 00007 #include <string> 00008 00009 // Forward declarations 00010 class IIncidentListener; 00011 class Incident; 00012 00013 // Declaration of the interface ID ( interface id, major version, minor version) 00014 static const InterfaceID IID_IIncidentSvc(310, 1 , 0); 00015 00024 class IIncidentSvc : virtual public IInterface { 00025 public: 00026 00028 static const InterfaceID& interfaceID() { return IID_IIncidentSvc; } 00034 virtual void addListener(IIncidentListener* lis, 00035 const std::string& type = "", 00036 long priority = 0 ) = 0; 00041 virtual void removeListener(IIncidentListener* lis, 00042 const std::string& type = "" ) = 0; 00043 00047 virtual void fireIncident( const Incident& incident ) = 0; 00048 00049 }; 00050 00051 #endif // GAUDIKERNEL_IINCIDENTSVC_H
1.2.3 written by Dimitri van Heesch,
© 1997-2000