| The Gaudi Framework v32r1 (f65d50dc)

IAlgResourcePool.h
Go to the documentation of this file.
1 #ifndef GAUDIKERNEL_IALGRESOURCEPOOL_H
2 #define GAUDIKERNEL_IALGRESOURCEPOOL_H
3
4 // Framework includes
5 #include "GaudiKernel/IInterface.h"
6
7 // C++ includes
8 #include <list>
9 #include <string>
10
11 // Forward class declaration
12 class IAlgorithm;
13
26 class GAUDI_API IAlgResourcePool : virtual public IInterface {
27 public:
29 DeclareInterfaceID( IAlgResourcePool, 1, 0 );
30
32 virtual StatusCode acquireAlgorithm( const std::string& name, IAlgorithm*& algo, bool blocking = false ) = 0;
34 virtual StatusCode releaseAlgorithm( const std::string& name, IAlgorithm*& algo ) = 0;
35
37 virtual std::list<IAlgorithm*> getFlatAlgList() = 0;
38
40 virtual std::list<IAlgorithm*> getTopAlgList() = 0;
41
43 virtual StatusCode acquireResource( const std::string& name ) = 0;
45 virtual StatusCode releaseResource( const std::string& name ) = 0;
46 };
47
48 #endif // GAUDIKERNEL_IALGRESOURCEPOOL_H
gaudiComponentHelp.name
name
Definition: gaudiComponentHelp.py:41
std::string
STL class.
IAlgResourcePool
The IAlgResourcePool is the interface for managing algorithm instances, in particular if clones of th...
Definition: IAlgResourcePool.h:26
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:50
IInterface
Definition of the basic interface.
Definition: IInterface.h:244
std::list< IAlgorithm * >
IAlgorithm
The IAlgorithm is the interface implemented by the Algorithm base class.
Definition: IAlgorithm.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
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:71
IInterface.h