| # Gaudi Framework, version v21r11 |

Home |  | Generated: 30 Sep 2010

# IIncidentSvc.h

Go to the documentation of this file.

    00001 // $Header: /tmp/svngaudi/tmp.jEpFh25751/Gaudi/GaudiKernel/GaudiKernel/IIncidentSvc.h,v 1.5 2007/05/24 17:04:41 marcocle 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
    00021 class GAUDI_API IIncidentSvc: virtual public IInterface {
    00022 public:
    00024   DeclareInterfaceID(IIncidentSvc,2,0);
    00025
    00031   virtual void addListener(IIncidentListener* lis,
    00032                            const std::string& type = "",
    00033                            long priority = 0,
    00034                                              bool rethrow = false,
    00035                                              bool singleShot = false ) = 0;
    00040   virtual void removeListener(IIncidentListener* lis,
    00041                               const std::string& type = "" ) = 0;
    00042
    00046   virtual void fireIncident( const Incident& incident ) = 0;
    00047
    00048 };
    00049
    00050 #endif // GAUDIKERNEL_IINCIDENTSVC_H