src
dynamic_graph
factory-py.cc
Go to the documentation of this file.
1
// Copyright 2010, Florent Lamiraux, Thomas Moulard, LAAS-CNRS.
2
3
#include <dynamic-graph/factory.h>
4
5
#include <iostream>
6
7
#include "
dynamic-graph/python/dynamic-graph-py.hh
"
8
9
using
dynamicgraph::Entity
;
10
using
dynamicgraph::ExceptionAbstract
;
11
12
namespace
dynamicgraph
{
13
namespace
python
{
14
15
namespace
factory {
16
20
bp::tuple
getEntityClassList
() {
21
std::vector<std::string> classNames;
22
dynamicgraph::FactoryStorage::getInstance
()->
listEntities
(classNames);
23
return
to_py_tuple
(classNames.begin(), classNames.end());
24
}
25
26
}
// namespace factory
27
}
// namespace python
28
}
// namespace dynamicgraph
dynamicgraph::python::to_py_tuple
bp::tuple to_py_tuple(Iterator begin, Iterator end)
Definition:
dynamic-graph-py.hh:29
dynamicgraph
dynamicgraph::Entity
dynamic-graph-py.hh
python
dynamicgraph::ExceptionAbstract
dynamicgraph::FactoryStorage::listEntities
void listEntities(std::vector< std::string > &list) const
dynamicgraph::python::factory::getEntityClassList
bp::tuple getEntityClassList()
Get name of entity.
Definition:
factory-py.cc:20
dynamicgraph::FactoryStorage::getInstance
static FactoryStorage * getInstance()
dynamic-graph-python
Author(s): Nicolas Mansard, Olivier Stasse
autogenerated on Fri Oct 27 2023 02:16:36