| The Gaudi Framework v29r1 (5cd95fa2)

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

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 {
15 protected:
17
18 ModuleIncident( std::string source, // Source(service or alg) name)
19 std::string type, // Type (load, unload, ...)
20 std::string module // module(DLL) in question
21 )
22 : Incident( std::move( source ), std::move( type ) ), m_module( std::move( module ) )
23 {
24 }
25 virtual ~ModuleIncident() = default;
27
28 public:
30
31 using Incident::type;
32 using Incident::source;
34 const std::string& module() const { return m_module; }
36 private:
38 std::string m_module;
39 };
40
46 class ModuleLoadedIncident : public ModuleIncident
47 {
48 public:
49 static std::string TYPE() { return "ModuleLoaded"; }
50 ModuleLoadedIncident( std::string source, // Source(service or alg) name)
51 std::string module // module(DLL) in question
52 )
53 : ModuleIncident( std::move( source ), TYPE(), std::move( module ) )
54 {
55 }
56 };
57
58 #endif // GAUDIKERNEL_MODULEINCIDENT_H
ModuleIncident::m_module
std::string m_module
the model (DLL) being worked on
Definition: ModuleIncident.h:38
Incident::type
const std::string & type() const
Access to the incident type.
Definition: Incident.h:41
Incident::source
const std::string & source() const
Access to the source of the incident.
Definition: Incident.h:47
std
STL namespace.
ModuleIncident::module
const std::string & module() const
the model (DLL) being worked on
Definition: ModuleIncident.h:34
ModuleIncident::~ModuleIncident
virtual ~ModuleIncident()=default
std::string
STL class.
Incident.h
ModuleIncident::ModuleIncident
ModuleIncident(std::string source, std::string type, std::string module)
Definition: ModuleIncident.h:18
ModuleLoadedIncident
fired when a module (DLL) is loaded
Definition: ModuleIncident.h:46
Incident
Base class for all Incidents (computing events).
Definition: Incident.h:17
ModuleLoadedIncident::TYPE
static std::string TYPE()
Definition: ModuleIncident.h:49
ModuleIncident
base class for Module-related incident
Definition: ModuleIncident.h:13
ModuleLoadedIncident::ModuleLoadedIncident
ModuleLoadedIncident(std::string source, std::string module)
Definition: ModuleIncident.h:50