The Gaudi Framework
master (bdbe7744)
Toggle main menu visibility
Loading...
Searching...
No Matches
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
50
class
ModuleLoadedIncident
:
public
ModuleIncident
{
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
};
Incident.h
Incident::Incident
Incident(const std::string &source, const std::string &type)
Default Constructor.
Definition
Incident.cpp:15
Incident::type
const std::string & type() const
Access to the incident type.
Definition
Incident.h:43
Incident::source
const std::string & source() const
Access to the source of the incident.
Definition
Incident.h:49
ModuleIncident::ModuleIncident
ModuleIncident(std::string source, std::string type, std::string module)
Definition
ModuleIncident.h:24
ModuleIncident::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
ModuleIncident::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
ModuleIncident::~ModuleIncident
virtual ~ModuleIncident()=default
ModuleLoadedIncident::ModuleLoadedIncident
ModuleLoadedIncident(std::string source, std::string module)
Definition
ModuleIncident.h:53
ModuleLoadedIncident::TYPE
static std::string TYPE()
Definition
ModuleIncident.h:52
std
STL namespace.
GaudiKernel
include
GaudiKernel
ModuleIncident.h
Generated on
for The Gaudi Framework by
1.17.0