Go to the documentation of this file. 1 #ifndef DYNAMIC_GRAPH_PY
2 #define DYNAMIC_GRAPH_PY
8 #include <boost/python.hpp>
9 #include <boost/python/stl_iterator.hpp>
20 template <
typename Iterator>
21 inline bp::list
to_py_list(Iterator begin, Iterator end) {
22 typedef typename Iterator::value_type T;
24 std::for_each(begin, end, [&](
const T&
t) { lst.append(
t); });
28 template <
typename Iterator>
35 return std::vector<T>(bp::stl_input_iterator<T>(iterable),
36 bp::stl_input_iterator<T>());
42 namespace signalBase {
53 bp::object
executeCmd(bp::tuple args, bp::dict);
bp::tuple to_py_tuple(Iterator begin, Iterator end)
void realTimeLoggerSpinOnce()
std::vector< T > to_std_vector(const bp::object &iterable)
void closeLoggerFileOutputStream()
void addLoggerCoutOutputStream()
void addLoggerFileOutputStream(const char *filename)
void addCommands(boost::python::object obj)
bp::object executeCmd(bp::tuple args, bp::dict)
void addSignals(boost::python::object obj)
SignalBase< sigtime_t > * createSignalWrapper(const char *name, const char *type, bp::object object)
Create an instance of SignalWrapper.
const std::map< std::string, Entity * > * getEntityMap()
bp::tuple getEntityClassList()
Get name of entity.
void realTimeLoggerDestroy()
Entity * create(const char *type, const char *name)
Create an instance of Entity.
void realTimeLoggerInstance()
bp::list getEntityList()
Get list of entities.
bp::list to_py_list(Iterator begin, Iterator end)
void writeGraph(const char *filename)
dynamic-graph-python
Author(s): Nicolas Mansard, Olivier Stasse
autogenerated on Fri Oct 27 2023 02:16:36