Line |
Branch |
Exec |
Source |
1 |
|
|
// Copyright (c) 2017, Joseph Mirabel |
2 |
|
|
// Authors: Joseph Mirabel (joseph.mirabel@laas.fr) |
3 |
|
|
|
4 |
|
|
#include <dynamic-graph/factory.h> |
5 |
|
|
|
6 |
|
|
#include <sot/core/switch.hh> |
7 |
|
|
|
8 |
|
|
#include "type-name-helper.hh" |
9 |
|
|
|
10 |
|
|
namespace dynamicgraph { |
11 |
|
|
namespace sot { |
12 |
|
|
template <typename Tin, typename Tout, typename Time> |
13 |
|
✗ |
std::string VariadicAbstract<Tin, Tout, Time>::getTypeInName(void) { |
14 |
|
✗ |
return TypeNameHelper<Tin>::typeName(); |
15 |
|
|
} |
16 |
|
|
template <typename Tin, typename Tout, typename Time> |
17 |
|
✗ |
std::string VariadicAbstract<Tin, Tout, Time>::getTypeOutName(void) { |
18 |
|
✗ |
return TypeNameHelper<Tout>::typeName(); |
19 |
|
|
} |
20 |
|
|
|
21 |
|
|
template class VariadicAbstract<Vector, Vector, int>; |
22 |
|
|
|
23 |
|
|
typedef Switch<Vector, int> SwitchVector; |
24 |
|
|
template <> |
25 |
|
✗ |
DYNAMICGRAPH_FACTORY_ENTITY_PLUGIN(SwitchVector, "SwitchVector"); |
26 |
|
|
|
27 |
|
|
template class VariadicAbstract<bool, bool, int>; |
28 |
|
|
|
29 |
|
|
typedef Switch<bool, int> SwitchBool; |
30 |
|
|
template <> |
31 |
|
✗ |
DYNAMICGRAPH_FACTORY_ENTITY_PLUGIN(SwitchBool, "SwitchBoolean"); |
32 |
|
|
|
33 |
|
|
template class VariadicAbstract<MatrixHomogeneous, MatrixHomogeneous, int>; |
34 |
|
|
|
35 |
|
|
typedef Switch<MatrixHomogeneous, int> SwitchMatrixHomogeneous; |
36 |
|
|
template <> |
37 |
|
✗ |
DYNAMICGRAPH_FACTORY_ENTITY_PLUGIN(SwitchMatrixHomogeneous, |
38 |
|
|
"SwitchMatrixHomogeneous"); |
39 |
|
|
} // namespace sot |
40 |
|
|
} // namespace dynamicgraph |
41 |
|
|
|