Loading [MathJax]/extensions/tex2jax.js
The Gaudi Framework  v31r0 (aeb156f0)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
IAlgResourcePool.h
Go to the documentation of this file.
1 #ifndef GAUDIKERNEL_IALGRESOURCEPOOL_H
2 #define GAUDIKERNEL_IALGRESOURCEPOOL_H
3 
4 // Framework includes
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:
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
STL class.
The IAlgResourcePool is the interface for managing algorithm instances, in particular if clones of th...
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:50
#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
Definition of the basic interface.
Definition: IInterface.h:244
The IAlgorithm is the interface implemented by the Algorithm base class.
Definition: IAlgorithm.h:28
#define GAUDI_API
Definition: Kernel.h:71