#include <PyAthenaAud.h>
|
virtual bool | setPyAttr (PyObject *pyobj) override |
| attach the C++ component to its python cousin More...
|
|
virtual void | before (StandardEventType, INamedInterface *) override |
| Auditor interface More...
|
|
virtual void | before (StandardEventType, const std::string &) override |
|
virtual void | before (CustomEventTypeRef, INamedInterface *) override |
|
virtual void | before (CustomEventTypeRef, const std::string &) override |
|
virtual void | after (StandardEventType, INamedInterface *, const StatusCode &) override |
|
virtual void | after (StandardEventType, const std::string &, const StatusCode &) override |
|
virtual void | after (CustomEventTypeRef, INamedInterface *, const StatusCode &) override |
|
virtual void | after (CustomEventTypeRef, const std::string &, const StatusCode &) override |
|
Definition at line 30 of file PyAthenaAud.h.
◆ Aud() [1/2]
PyAthena::Aud::Aud |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
svcLocator |
|
) |
| |
Constructor with parameters:
Definition at line 41 of file PyAthenaAud.cxx.
42 ::Auditor(
name, svcLocator ),
◆ ~Aud()
◆ Aud() [2/2]
◆ after() [1/4]
void PyAthena::Aud::after |
( |
CustomEventTypeRef |
evt, |
|
|
const std::string & |
comp, |
|
|
const StatusCode & |
sc |
|
) |
| |
|
overrideprotectedvirtual |
◆ after() [2/4]
void PyAthena::Aud::after |
( |
CustomEventTypeRef |
evt, |
|
|
INamedInterface * |
comp, |
|
|
const StatusCode & |
sc |
|
) |
| |
|
overrideprotectedvirtual |
◆ after() [3/4]
void PyAthena::Aud::after |
( |
StandardEventType |
evt, |
|
|
const std::string & |
comp, |
|
|
const StatusCode & |
sc |
|
) |
| |
|
overrideprotectedvirtual |
◆ after() [4/4]
void PyAthena::Aud::after |
( |
StandardEventType |
evt, |
|
|
INamedInterface * |
comp, |
|
|
const StatusCode & |
sc |
|
) |
| |
|
overrideprotectedvirtual |
◆ before() [1/4]
void PyAthena::Aud::before |
( |
CustomEventTypeRef |
evt, |
|
|
const std::string & |
comp |
|
) |
| |
|
overrideprotectedvirtual |
◆ before() [2/4]
void PyAthena::Aud::before |
( |
CustomEventTypeRef |
evt, |
|
|
INamedInterface * |
comp |
|
) |
| |
|
overrideprotectedvirtual |
◆ before() [3/4]
void PyAthena::Aud::before |
( |
StandardEventType |
evt, |
|
|
const std::string & |
comp |
|
) |
| |
|
overrideprotectedvirtual |
◆ before() [4/4]
void PyAthena::Aud::before |
( |
StandardEventType |
evt, |
|
|
INamedInterface * |
comp |
|
) |
| |
|
overrideprotectedvirtual |
◆ DeclareInterfaceID()
◆ finalize()
StatusCode PyAthena::Aud::finalize |
( |
| ) |
|
|
overridevirtual |
◆ initialize()
StatusCode PyAthena::Aud::initialize |
( |
| ) |
|
|
overridevirtual |
◆ py_after() [1/2]
void PyAthena::Aud::py_after |
( |
IAuditor::CustomEventTypeRef |
evt, |
|
|
const std::string & |
component, |
|
|
const StatusCode & |
sc |
|
) |
| |
|
virtual |
Audit the end of a custom "event".
Definition at line 197 of file PyAthenaAud.cxx.
201 return PyAthena::pyAudit (
m_self,
202 "after",
evt.c_str(), component.c_str(),
sc);
◆ py_after() [2/2]
void PyAthena::Aud::py_after |
( |
IAuditor::StandardEventType |
evt, |
|
|
const std::string & |
component, |
|
|
const StatusCode & |
sc |
|
) |
| |
|
virtual |
Audit the end of a standard "event".
Definition at line 179 of file PyAthenaAud.cxx.
183 const char* evtname = 0;
185 case Initialize: evtname =
"initialize";
break;
186 case ReInitialize: evtname =
"reinitialize";
break;
187 case Execute: evtname =
"execute";
break;
188 case Finalize: evtname =
"finalize";
break;
189 case Start: evtname =
"start";
break;
190 case Stop: evtname =
"stop";
break;
191 case ReStart: evtname =
"restart";
break;
193 return PyAthena::pyAudit (
m_self,
"after", evtname, component.c_str(),
sc);
◆ py_before() [1/2]
void PyAthena::Aud::py_before |
( |
IAuditor::CustomEventTypeRef |
evt, |
|
|
const std::string & |
component |
|
) |
| |
|
virtual |
Audit the start of a custom "event".
Definition at line 173 of file PyAthenaAud.cxx.
175 return PyAthena::pyAudit (
m_self,
"before",
evt.c_str(), component.c_str());
◆ py_before() [2/2]
void PyAthena::Aud::py_before |
( |
IAuditor::StandardEventType |
evt, |
|
|
const std::string & |
component |
|
) |
| |
|
virtual |
Audit the start of a standard "event".
Definition at line 157 of file PyAthenaAud.cxx.
159 const char* evtname = 0;
161 case Initialize: evtname =
"initialize";
break;
162 case ReInitialize: evtname =
"reinitialize";
break;
163 case Execute: evtname =
"execute";
break;
164 case Finalize: evtname =
"finalize";
break;
165 case Start: evtname =
"start";
break;
166 case Stop: evtname =
"stop";
break;
167 case ReStart: evtname =
"restart";
break;
169 return PyAthena::pyAudit (
m_self,
"before", evtname, component.c_str());
◆ self()
virtual PyObject* PyAthena::Aud::self |
( |
| ) |
|
|
inlineoverridevirtual |
◆ setPyAttr()
bool PyAthena::Aud::setPyAttr |
( |
PyObject * |
pyobj | ) |
|
|
overrideprotectedvirtual |
attach the C++ component to its python cousin
Implements IPyComponent.
Definition at line 211 of file PyAthenaAud.cxx.
215 PyObject* pyobj = TPython::CPPInstance_FromVoidPtr
220 pyobj = TPython::CPPInstance_FromVoidPtr ((
void*)
this,
"PyAthena::Aud");
223 <<
"could not dyncast component [" <<
name() <<
"] to a python "
224 <<
"object of type [" << this->
typeName() <<
"] (probably a missing "
225 <<
"dictionary)" <<
endmsg
226 <<
"fallback to [PyAthena::Aud]..."
232 msg << MSG::WARNING <<
"Could not dyncast component ["
233 <<
name() <<
"] to a pyobject of type ["
237 if ( -1 == PyObject_SetAttrString(o,
"_cppHandle", pyobj) ) {
241 <<
"Could not attach C++ handle [" <<
name() <<
"] to its python "
244 if ( -1 == PyObject_SetAttrString(o,
"_cppHandle", Py_None) ) {
247 <<
"could not attach a dummy C++ handle [" <<
name() <<
"] to its "
◆ sysInitialize()
StatusCode PyAthena::Aud::sysInitialize |
( |
| ) |
|
|
overridevirtual |
Definition at line 66 of file PyAthenaAud.cxx.
69 (
"PyAthena::PyComponentMgr/PyComponentMgr",
name() );
70 if ( !pyMgr.retrieve().isSuccess() ) {
71 return StatusCode::FAILURE;
75 m_self = pyMgr->pyObject(
this );
78 return StatusCode::FAILURE;
82 return ::Auditor::sysInitialize();
◆ typeName()
const char * PyAthena::Aud::typeName |
( |
| ) |
const |
|
overridevirtual |
return the std::type_info
name of the underlying py-component This is used by concrete implementations to connect a python component to its C++ counter-part
Implements IPyComponent.
Definition at line 96 of file PyAthenaAud.cxx.
◆ m_self
Pointer to self (from the python world)
Definition at line 112 of file PyAthenaAud.h.
The documentation for this class was generated from the following files: