ModuleIncident.h
Go to the documentation of this file.
1 #ifndef GAUDIKERNEL_MODULEINCIDENT_H
2 #define GAUDIKERNEL_MODULEINCIDENT_H
3 
4 // Include files
5 #include <string>
6 #include "GaudiKernel/Incident.h"
7 
13 class ModuleIncident : public Incident {
14 protected:
16 
17  ModuleIncident(std::string source, // Source(service or alg) name)
18  std::string type, // Type (load, unload, ...)
19  std::string module // module(DLL) in question
20  ) : Incident(std::move(source), std::move(type)), m_module(std::move(module)) { }
21  virtual ~ModuleIncident() = default;
23 
24 public:
26 
27  using Incident::type;
28  using Incident::source;
30  const std::string& module() const { return m_module; }
32 private:
35 };
36 
43 public:
44  static std::string TYPE() { return "ModuleLoaded"; }
45  ModuleLoadedIncident(std::string source, // Source(service or alg) name)
46  std::string module // module(DLL) in question
47  ) : ModuleIncident(std::move(source), TYPE(), std::move(module)) { }
48 };
49 
50 #endif //GAUDIKERNEL_MODULEINCIDENT_H
std::string m_module
the model (DLL) being worked on
const std::string & type() const
Access to the incident type.
Definition: Incident.h:41
const std::string & source() const
Access to the source of the incident.
Definition: Incident.h:47
STL namespace.
const std::string & module() const
the model (DLL) being worked on
virtual ~ModuleIncident()=default
STL class.
ModuleIncident(std::string source, std::string type, std::string module)
fired when a module (DLL) is loaded
Base class for all Incidents (computing events).
Definition: Incident.h:17
static std::string TYPE()
base class for Module-related incident
ModuleLoadedIncident(std::string source, std::string module)