| # Gaudi Framework, version v23r1 |

Home |  | Generated: Wed Feb 29 2012

# Incident.h

Go to the documentation of this file.

    00001 #ifndef GAUDI_INCIDENT_H
    00002 #define GAUDI_INCIDENT_H
    00003
    00004 // Include files
    00005 #include "GaudiKernel/Kernel.h"
    00006 #include <string>
    00007
    00016 class GAUDI_API Incident {
    00017
    00018 public:
    00019
    00021   Incident ( const std::string& source,
    00022              const std::string& type
    00023              )
    00024     : m_source ( source ),
    00025       m_type   ( type   ) { }
    00026
    00028   virtual ~Incident() { }
    00029
    00034   const std::string& type()  const { return m_type; }
    00035
    00040   const std::string& source() const { return m_source; }
    00041
    00042 private:
    00043
    00044   std::string m_source;
    00045   std::string m_type;
    00046
    00047 };
    00048
    00058 namespace IncidentType
    00059 {
    00060   const std::string BeginEvent = "BeginEvent";
    00061   const std::string EndEvent   = "EndEvent";
    00062   const std::string BeginRun   = "BeginRun";
    00063   const std::string EndRun     = "EndRun";
    00064   const std::string EndStream  = "EndStream";
    00065
    00066   const std::string AbortEvent = "AbortEvent";
    00067
    00068   //Added by R. Lambert 2009-09-03, for summary services
    00069   //define a preprocessor macro to allow backward-compatibility
    00070 #define GAUDI_FILE_INCIDENTS
    00071
    00072   const std::string BeginOutputFile = "BeginOutputFile";
    00073   const std::string FailOutputFile = "FailOutputFile";
    00074   const std::string WroteToOutputFile = "WroteToOutputFile";
    00075   const std::string EndOutputFile   = "EndOutputFile";
    00076
    00077   const std::string BeginInputFile = "BeginInputFile";
    00078   const std::string FailInputFile = "FailInputFile";
    00079   const std::string EndInputFile   = "EndInputFile";
    00080
    00082   const std::string BeginProcessing = "BeginProcessing";
    00084   const std::string EndProcessing = "EndProcessing";
    00085 }
    00086
    00087 #endif //GAUDI_INCIDENT_H
    00088

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines