Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
tests
testtypes
types
array_types.cpp
Go to the documentation of this file.
1
#include "
types/Types.hpp
"
2
#include "
types/CArrayTypeInfo.hpp
"
3
#include "
types/BoostArrayTypeInfo.hpp
"
4
#include "../../datasource_fixture.hpp"
5
#include <
rtt/types/SequenceTypeInfo.hpp
>
6
7
void
loadArrayTypes
()
8
{
9
// these are all execised by the datasource_fixture:
10
11
// 3 types of arrays: carray, boost array and std::vector
12
Types
()->addType(
new
CArrayTypeInfo
<
carray<int>
>(
"int[]"
) );
13
Types
()->addType(
new
BoostArrayTypeInfo
< boost::array<int,5> >(
"int5"
) );
14
Types
()->addType(
new
SequenceTypeInfo
< vector<int> >(
"ints"
) );
15
16
Types
()->addType(
new
CArrayTypeInfo
<
carray<double>
>(
"double[]"
) );
17
Types
()->addType(
new
CArrayTypeInfo
<
carray<char>
>(
"char[]"
) );
18
}
RTT::types::BoostArrayTypeInfo
Definition:
BoostArrayTypeInfo.hpp:68
RTT::types::carray
Definition:
types/carray.hpp:77
RTT::types::CArrayTypeInfo
Definition:
CArrayTypeInfo.hpp:63
BoostArrayTypeInfo.hpp
SequenceTypeInfo.hpp
CArrayTypeInfo.hpp
RTT::types::Types
TypeInfoRepository::shared_ptr Types()
Definition:
Types.cpp:48
Types.hpp
loadArrayTypes
void loadArrayTypes()
Definition:
array_types.cpp:7
RTT::types::SequenceTypeInfo
Definition:
rtt-types-fwd.hpp:69
rtt
Author(s): RTT Developers
autogenerated on Tue Jun 25 2019 19:33:20