The Gaudi Framework  master (181af51f)
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
14#include <string>
15
20class ModuleIncident : public Incident {
21protected:
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
32public:
34
35 using Incident::source;
36 using Incident::type;
38 const std::string& module() const { return m_module; }
40private:
42 std::string m_module;
43};
44
51public:
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(const std::string &source, const std::string &type)
Default Constructor.
Definition Incident.cpp:15
const std::string & type() const
Access to the incident type.
Definition Incident.h:43
const std::string & source() const
Access to the source of the incident.
Definition Incident.h:49
ModuleIncident(std::string source, std::string type, std::string module)
const std::string & type() const
Access to the incident type.
Definition Incident.h:43
std::string m_module
the model (DLL) being worked on
const std::string & source() const
Access to the source of the incident.
Definition Incident.h:49
const std::string & module() const
the model (DLL) being worked on
virtual ~ModuleIncident()=default
ModuleLoadedIncident(std::string source, std::string module)
static std::string TYPE()
STL namespace.