Commit 45f00cff authored by olivier stasse's avatar olivier stasse
Browse files

Add mapping to getClassName.

parent 7194cb6e
......@@ -242,6 +242,26 @@ namespace dynamicgraph {
return Py_BuildValue("s", name.c_str());
PyObject* getClassName(PyObject* /*self*/, PyObject* args)
void* pointer = NULL;
PyObject* object = NULL;
if (!PyArg_ParseTuple(args,"O", &object))
return NULL;
if (!PyCObject_Check(object))
return NULL;
pointer = PyCObject_AsVoidPtr(object);
SignalBase<int>* signal = (SignalBase<int>*)pointer;
std::string name;
try {
return Py_BuildValue("s", name.c_str());
PyObject* setValue(PyObject* /*self*/, PyObject* args)
void * pointer = NULL;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment