The Gaudi Framework
v41r0 (bdbe7744)
Toggle main menu visibility
Loading...
Searching...
No Matches
IncidentListenerTest.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/IIncidentListener.h
>
14
#include <
GaudiKernel/SmartIF.h
>
15
16
class
ISvcLocator
;
17
class
IMessageSvc
;
18
class
IIncidentSvc
;
19
23
class
IncidentListenerTest
:
public
implements
<IIncidentListener> {
24
25
public
:
27
IncidentListenerTest
(
const
std::string& name,
ISvcLocator
* svcloc,
long
shots = -1 );
28
30
~IncidentListenerTest
()
override
;
31
33
void
handle
(
const
Incident
& incident )
override
;
34
35
private
:
36
std::string
m_name
;
37
long
m_shots
;
38
SmartIF<IMessageSvc>
m_msgSvc
;
39
SmartIF<IIncidentSvc>
m_incSvc
;
40
};
IIncidentListener.h
SmartIF.h
IIncidentSvc
The interface implemented by the IncidentSvc service.
Definition
IIncidentSvc.h:30
IMessageSvc
The IMessage is the interface implemented by the message service.
Definition
IMessageSvc.h:34
ISvcLocator
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition
ISvcLocator.h:42
Incident
Base class for all Incidents (computing events).
Definition
Incident.h:24
IncidentListenerTest::m_incSvc
SmartIF< IIncidentSvc > m_incSvc
Definition
IncidentListenerTest.h:39
IncidentListenerTest::m_msgSvc
SmartIF< IMessageSvc > m_msgSvc
Definition
IncidentListenerTest.h:38
IncidentListenerTest::IncidentListenerTest
IncidentListenerTest(const std::string &name, ISvcLocator *svcloc, long shots=-1)
Constructor.
Definition
IncidentListenerTest.cpp:23
IncidentListenerTest::~IncidentListenerTest
~IncidentListenerTest() override
Destructor.
Definition
IncidentListenerTest.cpp:30
IncidentListenerTest::handle
void handle(const Incident &incident) override
Reimplements from IIncidentListener.
Definition
IncidentListenerTest.cpp:33
IncidentListenerTest::m_name
std::string m_name
Definition
IncidentListenerTest.h:36
IncidentListenerTest::m_shots
long m_shots
Definition
IncidentListenerTest.h:37
SmartIF
Small smart pointer class with automatic reference counting for IInterface.
Definition
SmartIF.h:28
implements< IIncidentListener >::implements
implements()=default
GaudiTestSuite
src
IncidentSvc
IncidentListenerTest.h
Generated on
for The Gaudi Framework by
1.17.0