The Gaudi Framework  v29r0 (ff2e7097)
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
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:
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
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:28
#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:110