| The Gaudi Framework v29r0 (ff2e7097)

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

- File List
- File Members

IAlgResourcePool.h
Go to the documentation of this file.
1 // $Id: IAlgManager.h,v 1.7 2008/06/02 14:20:38 marcocle Exp $
2 #ifndef GAUDIKERNEL_IALGRESOURCEPOOL_H
3 #define GAUDIKERNEL_IALGRESOURCEPOOL_H
4
5 // Framework includes
6 #include "GaudiKernel/IInterface.h"
7
8 // C++ includes
9 #include <list>
10 #include <string>
11
12 // Forward class declaration
13 class IAlgorithm;
14
27 class GAUDI_API IAlgResourcePool : virtual public IInterface
28 {
29 public:
31 DeclareInterfaceID( IAlgResourcePool, 1, 0 );
32
34 virtual StatusCode acquireAlgorithm( const std::string& name, IAlgorithm*& algo, bool blocking = false ) = 0;
36 virtual StatusCode releaseAlgorithm( const std::string& name, IAlgorithm*& algo ) = 0;
37
39 virtual std::list<IAlgorithm*> getFlatAlgList() = 0;
40
42 virtual std::list<IAlgorithm*> getTopAlgList() = 0;
43
45 virtual StatusCode beginRun() = 0;
46
48 virtual StatusCode endRun() = 0;
49
51 virtual StatusCode acquireResource( const std::string& name ) = 0;
53 virtual StatusCode releaseResource( const std::string& name ) = 0;
54 };
55
56 #endif // GAUDIKERNEL_IALGRESOURCEPOOL_H
gaudiComponentHelp.name
name
Definition: gaudiComponentHelp.py:32
std::string
STL class.
IAlgResourcePool
The IAlgResourcePool is the interface for managing algorithm instances, in particular if clones of th...
Definition: IAlgResourcePool.h:27
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:28
DeclareInterfaceID
#define DeclareInterfaceID(iface, major, minor)
Macro to declare the interface ID when using the new mechanism of extending and implementing interfac...
Definition: IInterface.h:13
IInterface
Definition of the basic interface.
Definition: IInterface.h:277
std::list< IAlgorithm * >
IAlgorithm
The IAlgorithm is the interface implemented by the Algorithm base class.
Definition: IAlgorithm.h:28
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:110
IInterface.h