GaudiPython.h GaudiPython/GaudiPython.h.
More...
GaudiPython.h GaudiPython/GaudiPython.h.
Namespace for all classes interfacing Gaudi to Python.
The general namespace to hide all Gaudi-python related classes
- Author
- Vanya BELYAEV Ivan..nosp@m.Bely.nosp@m.aev@l.nosp@m.app..nosp@m.in2p3.nosp@m..fr
- Date
- 2005-08-04
useful type definition for implicit loos
Definition at line 19 of file Vector.h.
int GaudiPython::call_python_method |
( |
PyObject * |
self, |
|
|
const char * |
method, |
|
|
char * |
buf |
|
) |
| |
call a python method with a string as an argument
Definition at line 12 of file CallbackStreamBuf.cpp.
14 if ( !
self || !method ) {
17 PyObject* r = PyObject_CallMethod(
self, const_cast<char*>( method ), const_cast<char*>(
"s" ), buf );
19 std::string err(
"Unsuccessful call to bound Python method" );
21 PyErr_SetString( PyExc_TypeError, err.c_str() );
StatusCode GaudiPython::call_python_method |
( |
PyObject * |
self, |
|
|
const char * |
method |
|
) |
| |
call the python method
Definition at line 29 of file Algorithm.cpp.
33 if ( !
self || !method ) {
38 PyObject* r = PyObject_CallMethod(
self, chr( method ),
nullptr );
45 if ( PyInt_Check( r ) ) {
53 PyObject*
c = PyObject_CallMethod( r, chr(
"getCode" ),
nullptr );
57 }
else if ( PyLong_Check( c ) ) {
62 msg +=
"().getCode()' ";
63 PyErr_SetString( PyExc_TypeError,
msg.c_str() );
constexpr static const auto FAILURE
This class is used for returning status codes from appropriate routines.
list GaudiPython.__path__ |
|
private |
Initial value: 1 = [d
for d
in [os.path.join(d,
'GaudiPython')
for d
in sys.path
if d]
2 if (d.startswith(
'/builds/gaudi/Gaudi/build-gcc62')
or 3 d.startswith(
'/builds/gaudi/Gaudi'))
and 4 (os.path.exists(d)
or 'python.zip' in d)]
Definition at line 3 of file __init__.py.