The Gaudi Framework  master (ff829712)
Loading...
Searching...
No Matches
Incident Class Reference

Base class for all Incidents (computing events). More...

#include <GaudiKernel/Incident.h>

Inheritance diagram for Incident:
Collaboration diagram for Incident:

Public Member Functions

 Incident (const std::string &source, const std::string &type)
 Default Constructor.
 
 Incident (const std::string &source, const std::string &type, const EventContext &ctx)
 
virtual ~Incident ()=default
 
const std::string & type () const
 Access to the incident type.
 
const std::string & source () const
 Access to the source of the incident.
 
EventContext context () const
 Access to the EventContext of the source of the incident.
 

Private Attributes

std::string m_source
 Incident source.
 
std::string m_type
 incident type
 
EventContext m_ctx
 Event Context when Incident created.
 

Detailed Description

Base class for all Incidents (computing events).

Author
P. Mato
Date
2001/01/19

Definition at line 24 of file Incident.h.

Constructor & Destructor Documentation

◆ Incident() [1/2]

Incident::Incident ( const std::string & source,
const std::string & type )

Default Constructor.

Parameters
sourceIncident source (service or algorithm name)
typeIncident type

Definition at line 15 of file Incident.cpp.

EventContext m_ctx
Event Context when Incident created.
Definition Incident.h:60
const std::string & type() const
Access to the incident type.
Definition Incident.h:43
std::string m_type
incident type
Definition Incident.h:59
const std::string & source() const
Access to the source of the incident.
Definition Incident.h:49
std::string m_source
Incident source.
Definition Incident.h:58
GAUDI_API const EventContext & currentContext()

◆ Incident() [2/2]

Incident::Incident ( const std::string & source,
const std::string & type,
const EventContext & ctx )
inline
Parameters
sourceIncident source (service or algorithm name)
typeIncident type
ctxEventContext

Definition at line 31 of file Incident.h.

35 : m_source( source ), m_type( type ), m_ctx( ctx ) {}

◆ ~Incident()

virtual Incident::~Incident ( )
virtualdefault

Member Function Documentation

◆ context()

EventContext Incident::context ( ) const
inline

Access to the EventContext of the source of the incident.

Returns
EventContext of the component that initiated the incident

Definition at line 55 of file Incident.h.

55{ return m_ctx; }

◆ source()

const std::string & Incident::source ( ) const
inline

Access to the source of the incident.

Returns
service or algorithm name that initiated the incident

Definition at line 49 of file Incident.h.

49{ return m_source; }

◆ type()

const std::string & Incident::type ( ) const
inline

Access to the incident type.

Returns
string descriptor for the incident type

Definition at line 43 of file Incident.h.

43{ return m_type; }

Member Data Documentation

◆ m_ctx

EventContext Incident::m_ctx
private

Event Context when Incident created.

Definition at line 60 of file Incident.h.

◆ m_source

std::string Incident::m_source
private

Incident source.

Definition at line 58 of file Incident.h.

◆ m_type

std::string Incident::m_type
private

incident type

Definition at line 59 of file Incident.h.


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