1 #ifndef GAUDIPYTHON_ALGORITHM_H
2 #define GAUDIPYTHON_ALGORITHM_H
12 #include "GaudiKernel/Algorithm.h"
13 #include "GaudiKernel/Bootstrap.h"
17 #include "GaudiPython/GaudiPython.h"
41 const std::string&
name ) ;
61 template <
class ALGORITHM>
73 const std::string&
name )
89 ~PyAlg()
override =
default;
91 PyObject* _obj()
const {
return m_self ; }
110 virtual IAlgorithm* ialgorithm () {
return this ; }
111 virtual IProperty* iproperty () {
return this ; }
115 virtual StatusCode finalize_ () {
return ALGORITHM::finalize () ; }
122 PyAlg (
const PyAlg& ) =
delete;
124 PyAlg& operator=(
const PyAlg& ) =
delete;
137 #endif // GAUDIPYTHON_ALGORITHM_H
GAUDI_API ISvcLocator * svcLocator()
This class is used for returning status codes from appropriate routines.
bool PyHelper() setProperty(IInterface *p, char *name, char *value)
GAUDI_API StatusCode call_python_method(PyObject *self, const char *method)
call the python method
The IAlgorithm is the interface implemented by the Algorithm base class.
GaudiPython.h GaudiPython/GaudiPython.h.
Base class from which all concrete algorithm classes should be derived.
The IProperty is the basic interface for all components which have properties that can be set or get...
Helper functions to set/get the application return code.