1 |
|
|
// Copyright (C) 2008-2014 LAAS-CNRS, JRL AIST-CNRS. |
2 |
|
|
// |
3 |
|
|
// This file is part of jrl-cmakemodules. |
4 |
|
|
// jrl-mathtools is free software: you can redistribute it and/or modify |
5 |
|
|
// it under the terms of the GNU Lesser General Public License as published by |
6 |
|
|
// the Free Software Foundation, either version 3 of the License, or |
7 |
|
|
// (at your option) any later version. |
8 |
|
|
// |
9 |
|
|
// jrl-mathtools is distributed in the hope that it will be useful, |
10 |
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 |
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 |
|
|
// GNU Lesser General Public License for more details. |
13 |
|
|
// You should have received a copy of the GNU Lesser General Public License |
14 |
|
|
// along with jrl-mathtools. If not, see <http://www.gnu.org/licenses/>. |
15 |
|
|
|
16 |
|
|
#include "dynamic-graph/python/module.hh" |
17 |
|
|
|
18 |
|
|
#include "/root/robotpkg/wip/py-dynamic-graph-v3/work/dynamic-graph-python-4.0.10/tests/custom_entity_module.h" |
19 |
|
|
|
20 |
|
|
struct register_entity |
21 |
|
|
{ |
22 |
|
2 |
template<typename T> inline void operator()(boost::type<T>) const |
23 |
|
|
{ |
24 |
|
2 |
dynamicgraph::python::exposeEntity<T>(); |
25 |
|
2 |
} |
26 |
|
|
}; |
27 |
|
|
|
28 |
✓✗✓✗
|
8 |
BOOST_PYTHON_MODULE(wrap) |
29 |
|
|
{ |
30 |
✓✗ |
4 |
bp::import("dynamic_graph"); |
31 |
✓✗ |
4 |
boost::mpl::for_each<entities_t, boost::type<boost::mpl::_> >(register_entity()); |
32 |
|
4 |
} |