All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Incident.h
Go to the documentation of this file.
1 #ifndef GAUDI_INCIDENT_H
2 #define GAUDI_INCIDENT_H
3 
4 // Include files
5 #include "GaudiKernel/Kernel.h"
6 #include <string>
7 
17 
18 public:
19 
21  Incident ( const std::string& source,
22  const std::string& type
23  )
24  : m_source ( source ),
25  m_type ( type ) { }
26 
28  virtual ~Incident() { }
29 
34  const std::string& type() const { return m_type; }
35 
40  const std::string& source() const { return m_source; }
41 
42 private:
43 
44  std::string m_source;
45  std::string m_type;
46 
47 };
48 
58 namespace IncidentType
59 {
60  const std::string BeginEvent = "BeginEvent";
61  const std::string EndEvent = "EndEvent";
62  const std::string BeginRun = "BeginRun";
63  const std::string EndRun = "EndRun";
64  const std::string EndStream = "EndStream";
65 
66  const std::string AbortEvent = "AbortEvent";
67 
68  //Added by R. Lambert 2009-09-03, for summary services
69  //define a preprocessor macro to allow backward-compatibility
70 #define GAUDI_FILE_INCIDENTS
71 
72  const std::string BeginOutputFile = "BeginOutputFile";
73  const std::string FailOutputFile = "FailOutputFile";
74  const std::string WroteToOutputFile = "WroteToOutputFile";
75  const std::string EndOutputFile = "EndOutputFile";
76 
77  const std::string BeginInputFile = "BeginInputFile";
78  const std::string FailInputFile = "FailInputFile";
79  const std::string EndInputFile = "EndInputFile";
80 
81  const std::string CorruptedInputFile = "CorruptedInputFile";
82 
84  const std::string BeginProcessing = "BeginProcessing";
86  const std::string EndProcessing = "EndProcessing";
87 
91  const std::string SvcPostFinalize = "PostFinalize";
92 }
93 
94 #endif //GAUDI_INCIDENT_H
95 
const std::string BeginEvent
Processing of a new event has started.
Definition: Incident.h:60
virtual ~Incident()
Destructor.
Definition: Incident.h:28
const std::string & type() const
Access to the incident type.
Definition: Incident.h:34
const std::string BeginProcessing
Incident raised just before entering loop over the algorithms.
Definition: Incident.h:84
const std::string EndProcessing
Incident raised just after the loop over the algorithms (note: before the execution of OutputStreams)...
Definition: Incident.h:86
const std::string & source() const
Access to the source of the incident.
Definition: Incident.h:40
const std::string FailInputFile
could not open or read from this file
Definition: Incident.h:78
const std::string SvcPostFinalize
ONLY For Services that need something after they've been finalized.
Definition: Incident.h:91
const std::string AbortEvent
Stop processing the current event and pass to te next one.
Definition: Incident.h:66
std::string m_type
incident type
Definition: Incident.h:45
const std::string EndEvent
Processing of the last event has finished.
Definition: Incident.h:61
const std::string EndOutputFile
an output file has been finished
Definition: Incident.h:75
string type
Definition: gaudirun.py:126
const std::string EndInputFile
an input file has been finished
Definition: Incident.h:79
const std::string BeginOutputFile
a new output file has been created
Definition: Incident.h:72
std::string m_source
Incident source.
Definition: Incident.h:44
Incident(const std::string &source, const std::string &type)
Default Constructor.
Definition: Incident.h:21
Base class for all Incidents (computing events).
Definition: Incident.h:16
const std::string WroteToOutputFile
the output file was written to in this event
Definition: Incident.h:74
const std::string BeginRun
Processing of a new run has started.
Definition: Incident.h:62
const std::string FailOutputFile
could not create or write to this file
Definition: Incident.h:73
const std::string EndRun
Processing of the last run has finished.
Definition: Incident.h:63
#define GAUDI_API
Definition: Kernel.h:108
const std::string EndStream
Processing of the stream has finished.
Definition: Incident.h:64
const std::string CorruptedInputFile
the input file has shown a corruption
Definition: Incident.h:81
const std::string BeginInputFile
a new input file has been started
Definition: Incident.h:77