| # Gaudi Framework, version v20r3
Generated: 24 Nov 2008

# 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 <string>
    00006
    00015 class Incident {
    00016
    00017 public:
    00018
    00020   Incident ( const std::string& source,
    00021              const std::string& type
    00022              )
    00023     : m_source ( source ),
    00024       m_type   ( type   ) { }
    00025
    00027   virtual ~Incident() { }
    00028
    00033   const std::string& type()  const { return m_type; }
    00034
    00039   const std::string& source() const { return m_source; }
    00040
    00041 private:
    00042
    00043   std::string m_source;
    00044   std::string m_type;
    00045
    00046 };
    00047
    00055 namespace IncidentType
    00056 {
    00057   const std::string BeginEvent = "BeginEvent";
    00058   const std::string EndEvent   = "EndEvent";
    00059   const std::string BeginRun   = "BeginRun";
    00060   const std::string EndRun     = "EndRun";
    00061   const std::string EndStream  = "EndStream";
    00062
    00063   const std::string AbortEvent = "AbortEvent";
    00064 }
    00065
    00066 #endif //GAUDI_INCIDENT_H
    00067