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::Entity
dynamic-graph-py.hh
dynamicgraph::FactoryStorage::listEntities
void listEntities(std::vector< std::string > &list) const
dynamicgraph::ExceptionAbstract
dynamicgraph::python::to_py_tuple
bp::tuple to_py_tuple(Iterator begin, Iterator end)
Definition:
dynamic-graph-py.hh:29
dynamicgraph::python::factory::getEntityClassList
bp::tuple getEntityClassList()
Get name of entity.
Definition:
factory-py.cc:20
dynamicgraph::FactoryStorage::getInstance
static FactoryStorage * getInstance()
dynamicgraph
python
dynamic-graph-python
Author(s): Nicolas Mansard, Olivier Stasse
autogenerated on Sun Jun 25 2023 02:55:50