The Gaudi Framework
v26r1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
AlgContextSvc.h
Go to the documentation of this file.
1
// $Id: AlgContextSvc.h,v 1.4 2007/05/24 13:49:47 hmd Exp $
2
// ============================================================================
3
#ifndef GAUDISVC_ALGCONTEXTSVC_H
4
#define GAUDISVC_ALGCONTEXTSVC_H 1
5
// ============================================================================
6
// Include files
7
// ============================================================================
8
// GaudiKernel
9
// ============================================================================
10
#include "GaudiKernel/StatusCode.h"
11
#include "GaudiKernel/IAlgContextSvc.h"
12
#include "GaudiKernel/IAlgorithm.h"
13
#include "GaudiKernel/IIncidentListener.h"
14
#include "GaudiKernel/Service.h"
15
// ============================================================================
16
// Forward declarations
17
// ============================================================================
18
class
IIncidentSvc
;
19
// ============================================================================
27
class
AlgContextSvc
:
public
extends2
<Service, IAlgContextSvc, IIncidentListener>
28
{
29
public
:
31
virtual
StatusCode
setCurrentAlg
(
IAlgorithm
* a ) ;
33
virtual
StatusCode
unSetCurrentAlg
(
IAlgorithm
* a ) ;
35
virtual
IAlgorithm
*
currentAlg
()
const
;
37
virtual
const
IAlgContextSvc::Algorithms
&
algorithms
()
const
38
{
return
m_algorithms
; }
39
public
:
41
virtual
void
handle
(
const
Incident
& ) ;
42
public
:
44
virtual
StatusCode
initialize
() ;
46
virtual
StatusCode
finalize
() ;
47
public
:
49
AlgContextSvc
50
(
const
std::string&
name
,
51
ISvcLocator
* svc ) ;
53
virtual
~AlgContextSvc
();
54
private
:
55
// default constructor is disabled
56
AlgContextSvc
() ;
57
// copy constructor is disabled
58
AlgContextSvc
(
const
AlgContextSvc
& );
59
// assignment operator is disabled
60
AlgContextSvc
&
operator=
(
const
AlgContextSvc
& );
61
private
:
62
// the stack of current algorithms
63
IAlgContextSvc::Algorithms
m_algorithms
;
64
// pointer to Incident Service
65
IIncidentSvc
*
m_inc
;
66
// flag to perform more checking
67
bool
m_check
;
68
} ;
69
70
// ============================================================================
71
// The END
72
// ============================================================================
73
#endif // GAUDISVC_ALGCONTEXTSVC_H
74
// ============================================================================
75
GaudiCommonSvc
src
AlgContextSvc.h
Generated on Mon Feb 16 2015 11:56:52 for The Gaudi Framework by
1.8.2