Gaudi Framework, version v21r4

Home   Generated: 7 Sep 2009

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 
00056 namespace IncidentType
00057 {
00058   const std::string BeginEvent = "BeginEvent"; 
00059   const std::string EndEvent   = "EndEvent";   
00060   const std::string BeginRun   = "BeginRun";   
00061   const std::string EndRun     = "EndRun";     
00062   const std::string EndStream  = "EndStream";  
00063 
00064   const std::string AbortEvent = "AbortEvent"; 
00065 }
00066 
00067 #endif //GAUDI_INCIDENT_H
00068 

Generated at Mon Sep 7 18:05:37 2009 for Gaudi Framework, version v21r4 by Doxygen version 1.5.6 written by Dimitri van Heesch, © 1997-2004