11#ifndef ATHENAPYTHON_PYATHENASVC_H
12#define ATHENAPYTHON_PYATHENASVC_H
18#include "GaudiKernel/IIncidentListener.h"
32 :
public extends<SvcBase_t, ::IPyComponent, ::IIncidentListener>
43 Svc(
const std::string& name, ISvcLocator* svcLocator );
52 virtual StatusCode
start()
override;
53 virtual StatusCode
stop()
override;
54 virtual StatusCode
finalize()
override;
64 const char*
typeName()
const override;
72 virtual void handle(
const Incident& incident )
override;
79 virtual bool setPyAttr(
PyObject* pyobj )
override;
Define macros for attributes used to control the static checker.
PyObject * m_self
Pointer to self (from the python world)
virtual StatusCode finalize() override
virtual StatusCode start() override
virtual StatusCode reinitialize() override
virtual StatusCode sysInitialize() override
Svc(const std::string &name, ISvcLocator *svcLocator)
Constructor with parameters:
virtual StatusCode stop() override
Svc()=delete
Default constructor:
virtual PyObject * self() override
return associated python object.
const char * typeName() const override
return the std::type_info name of the underlying py-component This is used by concrete implementation...
StatusCode callPyMethod ATLAS_NOT_THREAD_SAFE(PyObject *self, const char *method, PyObject *arg=nullptr)
call the python method