All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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...
 
class  PythonSignalContainer
 
class  SignalWrapper
 

Functions

PyObject * plug (PyObject *, PyObject *args)
 plug a signal into another one. More...
 
PyObject * enableTrace (PyObject *, PyObject *args)
 
std::string parse_python_exception ()
 
bool HandleErr (std::string &err, PyObject *traceback_format_exception, PyObject *globals_, int PythonInputType)
 
std::string libpython ("/usr/lib64/libpython2.7.so")
 
 DYNAMICGRAPH_FACTORY_ENTITY_PLUGIN (PythonSignalContainer,"PythonSignalContainer")
 

Variables

PyObject * dgpyError
 
static const std::string pythonPrefix [5]
 

Function Documentation

dynamicgraph::python::DYNAMICGRAPH_FACTORY_ENTITY_PLUGIN ( PythonSignalContainer  ,
"PythonSignalContainer"   
)
PyObject* dynamicgraph::python::enableTrace ( PyObject *  ,
PyObject *  args 
)
bool dynamicgraph::python::HandleErr ( std::string &  err,
PyObject *  traceback_format_exception,
PyObject *  globals_,
int  PythonInputType 
)
std::string dynamicgraph::python::libpython ( "/usr/lib64/libpython2.7.so"  )
std::string dynamicgraph::python::parse_python_exception ( )
PyObject* dynamicgraph::python::plug ( PyObject *  ,
PyObject *  args 
)

plug a signal into another one.

References CATCH_ALL_EXCEPTIONS.

Variable Documentation

const std::string dynamicgraph::python::pythonPrefix[5]
static
Initial value:
= {
"import traceback\n",
"def display(s): return str(s) if not s is None else None",
"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"
"import sys\n"
"sys.stdout = stdout_catcher"
}

Referenced by dynamicgraph::python::Interpreter::Interpreter().