Skip to content
Snippets Groups Projects
Commit 01830171 authored by florent's avatar florent
Browse files

Add a function to get the list of type names registered for signals.

    * src/CMakeLists.txt,
    * src/dynamic-graph-py.cc.
parent 895cda35
No related branches found
No related tags found
No related merge requests found
......@@ -35,6 +35,7 @@ ADD_LIBRARY(${PYTHON_MODULE}
signal-base-py.cc
entity-py.cc
factory-py.cc
signal-caster-py.cc
)
# Remove prefix lib
......
......@@ -35,6 +35,10 @@ namespace dynamicgraph {
namespace factory {
PyObject* getEntityClassList(PyObject* self, PyObject* args);
}
namespace signalCaster {
PyObject* getSignalTypeList(PyObject* self, PyObject* args);
}
PyObject* error;
/**
......@@ -150,6 +154,10 @@ static PyMethodDef dynamicGraphMethods[] = {
dynamicgraph::python::factory::getEntityClassList,
METH_VARARGS,
"return the list of entity classes"},
{"signal_caster_get_type_list",
dynamicgraph::python::signalCaster::getSignalTypeList,
METH_VARARGS,
"return the list of signal type names"},
{NULL, NULL, 0, NULL} /* Sentinel */
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment