Loading [MathJax]/extensions/tex2jax.js
The Gaudi Framework  master (d98a2936)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
ModuleIncident.h
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2025 CERN for the benefit of the LHCb and ATLAS collaborations *
3 * *
4 * This software is distributed under the terms of the Apache version 2 licence, *
5 * copied verbatim in the file "LICENSE". *
6 * *
7 * In applying this licence, CERN does not waive the privileges and immunities *
8 * granted to it by virtue of its status as an Intergovernmental Organization *
9 * or submit itself to any jurisdiction. *
10 \***********************************************************************************/
11 #pragma once
12 
13 #include <GaudiKernel/Incident.h>
14 #include <string>
15 
20 class ModuleIncident : public Incident {
21 protected:
23 
24  ModuleIncident( std::string source, // Source(service or alg) name)
25  std::string type, // Type (load, unload, ...)
26  std::string module // module(DLL) in question
27  )
28  : Incident( std::move( source ), std::move( type ) ), m_module( std::move( module ) ) {}
29  virtual ~ModuleIncident() = default;
31 
32 public:
34 
35  using Incident::source;
36  using Incident::type;
38  const std::string& module() const { return m_module; }
40 private:
42  std::string m_module;
43 };
44 
51 public:
52  static std::string TYPE() { return "ModuleLoaded"; }
53  ModuleLoadedIncident( std::string source, // Source(service or alg) name)
54  std::string module // module(DLL) in question
55  )
56  : ModuleIncident( std::move( source ), TYPE(), std::move( module ) ) {}
57 };
ModuleLoadedIncident::ModuleLoadedIncident
ModuleLoadedIncident(std::string source, std::string module)
Definition: ModuleIncident.h:53
Incident::source
const std::string & source() const
Access to the source of the incident.
Definition: Incident.h:49
ModuleIncident::module
const std::string & module() const
the model (DLL) being worked on
Definition: ModuleIncident.h:38
GaudiPartProp.decorators.std
std
Definition: decorators.py:32
ModuleIncident::~ModuleIncident
virtual ~ModuleIncident()=default
ModuleLoadedIncident
fired when a module (DLL) is loaded
Definition: ModuleIncident.h:50
ModuleIncident
base class for Module-related incident
Definition: ModuleIncident.h:20
ModuleIncident::ModuleIncident
ModuleIncident(std::string source, std::string type, std::string module)
Definition: ModuleIncident.h:24
ModuleLoadedIncident::TYPE
static std::string TYPE()
Definition: ModuleIncident.h:52
Incident::type
const std::string & type() const
Access to the incident type.
Definition: Incident.h:43
ModuleIncident::m_module
std::string m_module
the model (DLL) being worked on
Definition: ModuleIncident.h:42
Incident.h
Incident
Definition: Incident.h:24