Gaudi Framework, version v24r2

Home   Generated: Wed Dec 4 2013
 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"
12 #include "GaudiKernel/IAlgorithm.h"
14 #include "GaudiKernel/Service.h"
15 // ============================================================================
16 // Forward declarations
17 // ============================================================================
18 template <class TYPE> class SvcFactory;
19 class IIncidentSvc ;
20 // ============================================================================
28 class AlgContextSvc: public extends2<Service, IAlgContextSvc, IIncidentListener>
29 {
30 public:
32  friend class SvcFactory<AlgContextSvc>;
33 public:
35  virtual StatusCode setCurrentAlg ( IAlgorithm* a ) ;
37  virtual StatusCode unSetCurrentAlg ( IAlgorithm* a ) ;
39  virtual IAlgorithm* currentAlg () const ;
41  virtual const IAlgContextSvc::Algorithms& algorithms () const
42  { return m_algorithms ; }
43 public:
45  virtual void handle ( const Incident& ) ;
46 public:
48  virtual StatusCode initialize () ;
50  virtual StatusCode finalize () ;
51 public:
54  ( const std::string& name ,
55  ISvcLocator* svc ) ;
57  virtual ~AlgContextSvc();
58 private:
59  // default constructor is disabled
60  AlgContextSvc () ;
61  // copy constructor is disabled
62  AlgContextSvc ( const AlgContextSvc& );
63  // assignment operator is disabled
65 private:
66  // the stack of current algorithms
68  // pointer to Incident Service
70  // flag to perform more checking
71  bool m_check ;
72 } ;
73 
74 // ============================================================================
75 // The END
76 // ============================================================================
77 #endif // GAUDISVC_ALGCONTEXTSVC_H
78 // ============================================================================
79 

Generated at Wed Dec 4 2013 14:33:07 for Gaudi Framework, version v24r2 by Doxygen version 1.8.2 written by Dimitri van Heesch, © 1997-2004