The Gaudi Framework  master (37c0b60a)
ISignalMonitor.h
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2024 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 #ifndef GAUDIUTILS_ISIGNALMONITOR_H
12 #define GAUDIUTILS_ISIGNALMONITOR_H
13 
14 #include <GaudiKernel/IInterface.h>
15 
16 namespace Gaudi {
17 
29  class GAUDI_API ISignalMonitor : virtual public IInterface {
30  public:
33 
41  virtual void monitorSignal( int signum, bool propagate = true ) = 0;
42 
46  virtual void ignoreSignal( int signum ) = 0;
47 
51  virtual bool gotSignal( int signum ) const = 0;
52 
56  virtual void setSignal( int signum ) = 0;
57 
61  virtual void clearSignal( int signum ) = 0;
62  };
63 
64 } // namespace Gaudi
65 
66 #endif /* GAUDIUTILS_ISIGNALMONITOR_H */
Gaudi::ISignalMonitor::ignoreSignal
virtual void ignoreSignal(int signum)=0
Ignore future occurrences of the given signal number.
Gaudi::ISignalMonitor::gotSignal
virtual bool gotSignal(int signum) const =0
Tell if the given signal has been received or not.
Gaudi::ISignalMonitor
Interface for the service that monitors the occurrences of system signals.
Definition: ISignalMonitor.h:29
Gaudi::ISignalMonitor::monitorSignal
virtual void monitorSignal(int signum, bool propagate=true)=0
Add a signal (number) to the list of signals to be monitored.
IInterface.h
Gaudi::ISignalMonitor::DeclareInterfaceID
DeclareInterfaceID(ISignalMonitor, 1, 0)
InterfaceID.
Gaudi
This file provides a Grammar for the type Gaudi::Accumulators::Axis It allows to use that type from p...
Definition: __init__.py:1
IInterface
Definition: IInterface.h:239
Gaudi::ISignalMonitor::clearSignal
virtual void clearSignal(int signum)=0
Clear the flag for the given signal, so that a new occurrence can be identified.
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:81
Gaudi::ISignalMonitor::setSignal
virtual void setSignal(int signum)=0
Set the flag for the given signal, as if the signal was received.