Loading [MathJax]/extensions/tex2jax.js
The Gaudi Framework  v28r2p1 (f1a77ff4)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 <string>
10 #include <list>
11 
12 // Forward class declaration
13 class IAlgorithm;
14 
27 class GAUDI_API IAlgResourcePool: virtual public IInterface {
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 beginRun() = 0;
45 
47  virtual StatusCode endRun() = 0;
48 
50  virtual StatusCode acquireResource(const std::string& name) = 0;
52  virtual StatusCode releaseResource(const std::string& name) = 0;
53 
54 };
55 
56 #endif // GAUDIKERNEL_IALGRESOURCEPOOL_H
#define DeclareInterfaceID(iface, major, minor)
Macro to declare the interface ID when using the new mechanism of extending and implementing interfac...
Definition: IInterface.h:14
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:26
Definition of the basic interface.
Definition: IInterface.h:234
The IAlgorithm is the interface implemented by the Algorithm base class.
Definition: IAlgorithm.h:27
#define GAUDI_API
Definition: Kernel.h:107