The Gaudi Framework  v30r4 (9b837755)
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 {
28 public:
31 
33  virtual StatusCode acquireAlgorithm( const std::string& name, IAlgorithm*& algo, bool blocking = false ) = 0;
35  virtual StatusCode releaseAlgorithm( const std::string& name, IAlgorithm*& algo ) = 0;
36 
38  virtual std::list<IAlgorithm*> getFlatAlgList() = 0;
39 
41  virtual std::list<IAlgorithm*> getTopAlgList() = 0;
42 
44  virtual StatusCode acquireResource( const std::string& name ) = 0;
46  virtual StatusCode releaseResource( const std::string& name ) = 0;
47 };
48 
49 #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:51
#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:277
The IAlgorithm is the interface implemented by the Algorithm base class.
Definition: IAlgorithm.h:28
#define GAUDI_API
Definition: Kernel.h:71