| # Gaudi Framework, version v25r0 |

Home |  | Generated: Mon Feb 17 2014

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | List of all members
Gaudi::ISignalMonitor Class Referenceabstract

Interface for the service that monitors the occurrences of system signals. More...

`#include <ISignalMonitor.h>`

Inheritance diagram for Gaudi::ISignalMonitor:
[legend]
Collaboration diagram for Gaudi::ISignalMonitor:
[legend]

## Public Member Functions
| DeclareInterfaceID (ISignalMonitor, 1, 0)
| InterfaceID.
virtual void | monitorSignal (int signum, bool propagate=true)=0
| Add a signal (number) to the list of signals to be monitored.
virtual void | ignoreSignal (int signum)=0
| Ignore future occurrences of the given signal number.
virtual bool | gotSignal (int signum) const =0
| Tell if the given signal has been received or not.
virtual void | setSignal (int signum)=0
| Set the flag for the given signal, as if the signal was received.
virtual void | clearSignal (int signum)=0
| Clear the flag for the given signal, so that a new occurrence can be identified.
Public Member Functions inherited from IInterface
virtual void * | i_cast (const InterfaceID &) const =0
| main cast function
virtual std::vector< std::string > | getInterfaceNames () const =0
| Returns a vector of strings containing the names of all the implemented interfaces.
virtual unsigned long | addRef ()=0
| Increment the reference count of Interface instance.
virtual unsigned long | release ()=0
| Release Interface instance.
virtual unsigned long | refCount () const =0
| Current reference count.
virtual StatusCode | queryInterface (const InterfaceID &ti, void **pp)=0
| Set the void** to the pointer to the requested interface of the instance.
virtual | ~IInterface ()
| Virtual destructor.

## Additional Inherited Members
Public Types inherited from IInterface
enum | Status { SUCCESS = 1, NO_INTERFACE, VERSMISMATCH, LAST_ERROR }
| Return status. More...
typedef Gaudi::InterfaceId < IInterface, 0, 0 > | iid
| Interface ID.
typedef mpl::set1< iid > | ext_iids
| Extra interfaces.
Static Public Member Functions inherited from IInterface
static const InterfaceID & | interfaceID ()
| Return an instance of InterfaceID identifying the interface.

## Detailed Description

Interface for the service that monitors the occurrences of system signals.

The signal to be monitored have to be declared via the method monitorSignal(). The method gotSignal() can used to check if a signal has been received.

Note that the service is passive, in the sense that it simply keeps track of received signals without performing any action. So it is responsibility of the users to add a check if the signal has been received or not.

Author
  Marco Clemencic

Definition at line 19 of file ISignalMonitor.h.

## Member Function Documentation

virtual void Gaudi::ISignalMonitor::clearSignal | ( | int | signum | ) |
| pure virtual

Clear the flag for the given signal, so that a new occurrence can be identified.

Parameters

  signum,: | signal number

Implemented in Gaudi::Utils::SignalMonitorSvc.

Gaudi::ISignalMonitor::DeclareInterfaceID | ( | ISignalMonitor | ,
|  | 1 | ,
|  | 0 |
| ) |  |

InterfaceID.

virtual bool Gaudi::ISignalMonitor::gotSignal | ( | int | signum | ) | const
| pure virtual

Tell if the given signal has been received or not.

Parameters

  signum,: | signal number

Implemented in Gaudi::Utils::SignalMonitorSvc.

virtual void Gaudi::ISignalMonitor::ignoreSignal | ( | int | signum | ) |
| pure virtual

Ignore future occurrences of the given signal number.

Parameters

  signum,: | signal number

Implemented in Gaudi::Utils::SignalMonitorSvc.

virtual void Gaudi::ISignalMonitor::monitorSignal | ( | int | signum,
|  | bool | propagate = `true`
| ) |  |
| pure virtual

Add a signal (number) to the list of signals to be monitored.

It possible to choose if a previously installed signal handler should be called or not.

Parameters

  signum,: | signal number
  propagate,: | if true (default) an already present signal handler is called, otherwise the signal is stopped in the service.

Implemented in Gaudi::Utils::SignalMonitorSvc.

virtual void Gaudi::ISignalMonitor::setSignal | ( | int | signum | ) |
| pure virtual

Set the flag for the given signal, as if the signal was received.

Parameters

  signum,: | signal number

Implemented in Gaudi::Utils::SignalMonitorSvc.

The documentation for this class was generated from the following file:

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v25r0/GaudiUtils/GaudiUtils/ISignalMonitor.h