dynamicgraph::python Namespace Reference

Namespaces

 convert
 
 debug
 
 entity
 
 factory
 
 pool
 
 signalBase
 
 signalCaster
 
 signalWrapper
 

Classes

class  ExceptionPython
 Generic error class. More...
 
class  Interpreter
 This class implements a basis python interpreter. More...
 
struct  module_state
 
class  PythonSignalContainer
 
class  SignalWrapper
 

Functions

PyObject * plug (PyObject *, PyObject *args)
 plug a signal into another one. More...
 
PyObject * enableTrace (PyObject *, PyObject *args)
 
PyObject * error_out (PyObject *, PyObject *)
 
 __attribute__ ((unused)) static PyMethodDef dynamicGraphMethods[]
 List of python functions. More...
 
std::string libpython ("/usr/lib/x86_64-linux-gnu/libpython3.6m.so")
 
 DYNAMICGRAPH_FACTORY_ENTITY_PLUGIN (PythonSignalContainer, "PythonSignalContainer")
 
bool HandleErr (std::string &err, PyObject *globals_, int PythonInputType)
 

Variables

static const std::string pythonPrefix [8]
 

Function Documentation

◆ __attribute__()

dynamicgraph::python::__attribute__ ( (unused)  )

List of python functions.

◆ DYNAMICGRAPH_FACTORY_ENTITY_PLUGIN()

dynamicgraph::python::DYNAMICGRAPH_FACTORY_ENTITY_PLUGIN ( PythonSignalContainer  ,
"PythonSignalContainer"   
)

◆ enableTrace()

PyObject * dynamicgraph::python::enableTrace ( PyObject *  ,
PyObject *  args 
)

◆ error_out()

PyObject * dynamicgraph::python::error_out ( PyObject *  ,
PyObject *   
)

References DGPYERROR.

◆ HandleErr()

bool dynamicgraph::python::HandleErr ( std::string &  err,
PyObject *  globals_,
int  PythonInputType 
)

◆ libpython()

std::string dynamicgraph::python::libpython ( "/usr/lib/x86_64-linux-gnu/libpython3.6m.so"  )

◆ plug()

PyObject * dynamicgraph::python::plug ( PyObject *  ,
PyObject *  args 
)

plug a signal into another one.

References CATCH_ALL_EXCEPTIONS, and SignalBase< int >::plug().

Variable Documentation

◆ pythonPrefix

const std::string dynamicgraph::python::pythonPrefix[8]
static
Initial value:
= {"from __future__ import print_function\n",
"import traceback\n",
"class StdoutCatcher:\n"
" def __init__(self):\n"
" self.data = ''\n"
" def write(self, stuff):\n"
" self.data = self.data + stuff\n"
" def fetch(self):\n"
" s = self.data[:]\n"
" self.data = ''\n"
" return s\n",
"stdout_catcher = StdoutCatcher()\n",
"stderr_catcher = StdoutCatcher()\n",
"import sys\n",
"sys.stdout = stdout_catcher",
"sys.stderr = stderr_catcher"}