| # Gaudi Framework, version v20r2
Generated: 18 Jul 2008

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

- Search for |

- File List
- File Members

# IncidentSvc.cpp File Reference

`#include "GaudiKernel/MsgStream.h"`
`#include "GaudiKernel/ISvcLocator.h"`
`#include "GaudiKernel/SmartIF.h"`
`#include "GaudiKernel/IIncidentListener.h"`
`#include "GaudiKernel/Incident.h"`
`#include "GaudiKernel/GaudiException.h"`
`#include "IncidentSvc.h"`

Include dependency graph for IncidentSvc.cpp:

Go to the source code of this file.

## Functions
std::string | getListenerName (IIncidentListener *lis)

## Function Documentation

std::string @583::getListenerName | ( | IIncidentListener * | lis | ) | `[static]`

Definition at line 18 of file IncidentSvc.cpp.

References SmartIFBase< TYPE >::isValid().

Referenced by IncidentSvc::addListener(), IncidentSvc::fireIncident(), and IncidentSvc::removeListener().

    00019   {
    00020     SmartIF<INamedInterface> iNamed(lis);
    00021     if (iNamed.isValid()) return iNamed->name();
    00022     else return "<unknown>";
    00023   }