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