The Gaudi Framework  master (181af51f)
Loading...
Searching...
No Matches
ISignalMonitor.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
15namespace Gaudi {
16
28 class GAUDI_API ISignalMonitor : virtual public IInterface {
29 public:
32
40 virtual void monitorSignal( int signum, bool propagate = true ) = 0;
41
45 virtual void ignoreSignal( int signum ) = 0;
46
50 virtual bool gotSignal( int signum ) const = 0;
51
55 virtual void setSignal( int signum ) = 0;
56
60 virtual void clearSignal( int signum ) = 0;
61 };
62
63} // namespace Gaudi
#define GAUDI_API
Definition Kernel.h:49
Interface for the service that monitors the occurrences of system signals.
virtual void clearSignal(int signum)=0
Clear the flag for the given signal, so that a new occurrence can be identified.
virtual void monitorSignal(int signum, bool propagate=true)=0
Add a signal (number) to the list of signals to be monitored.
virtual void setSignal(int signum)=0
Set the flag for the given signal, as if the signal was received.
virtual bool gotSignal(int signum) const =0
Tell if the given signal has been received or not.
virtual void ignoreSignal(int signum)=0
Ignore future occurrences of the given signal number.
DeclareInterfaceID(ISignalMonitor, 1, 0)
InterfaceID.
Definition of the basic interface.
Definition IInterface.h:225
This file provides a Grammar for the type Gaudi::Accumulators::Axis It allows to use that type from p...
Definition __init__.py:1