| The Gaudi Framework v32r1 (f65d50dc)

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 "GaudiKernel/Incident.h"
6 #include <string>
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 )
21 : Incident( std::move( source ), std::move( type ) ), m_module( std::move( module ) ) {}
22 virtual ~ModuleIncident() = default;
24
25 public:
27
28 using Incident::source;
29 using Incident::type;
31 const std::string& module() const { return m_module; }
33 private:
35 std::string m_module;
36 };
37
43 class ModuleLoadedIncident : public ModuleIncident {
44 public:
45 static std::string TYPE() { return "ModuleLoaded"; }
46 ModuleLoadedIncident( std::string source, // Source(service or alg) name)
47 std::string module // module(DLL) in question
48 )
49 : ModuleIncident( std::move( source ), TYPE(), std::move( module ) ) {}
50 };
51
52 #endif // GAUDIKERNEL_MODULEINCIDENT_H
ModuleIncident::m_module
std::string m_module
the model (DLL) being worked on
Definition: ModuleIncident.h:35
Incident::type
const std::string & type() const
Access to the incident type.
Definition: Incident.h:38
std
STL namespace.
ModuleIncident::~ModuleIncident
virtual ~ModuleIncident()=default
Incident::source
const std::string & source() const
Access to the source of the incident.
Definition: Incident.h:44
std::string
STL class.
Incident.h
ModuleIncident::ModuleIncident
ModuleIncident(std::string source, std::string type, std::string module)
Definition: ModuleIncident.h:17
ModuleLoadedIncident
fired when a module (DLL) is loaded
Definition: ModuleIncident.h:43
Incident
Base class for all Incidents (computing events).
Definition: Incident.h:17
ModuleLoadedIncident::TYPE
static std::string TYPE()
Definition: ModuleIncident.h:45
ModuleIncident::module
const std::string & module() const
the model (DLL) being worked on
Definition: ModuleIncident.h:31
ModuleIncident
base class for Module-related incident
Definition: ModuleIncident.h:13
ModuleLoadedIncident::ModuleLoadedIncident
ModuleLoadedIncident(std::string source, std::string module)
Definition: ModuleIncident.h:46