ocltoolkit.cpp
Go to the documentation of this file.
1 // Copyright (C) 2008 Ruben Smits <ruben dot smits at mech dot kuleuven dot be>
2 
3 // Version: 1.0
4 // Author: Ruben Smits <ruben dot smits at mech dot kuleuven dot be>
5 // Maintainer: Ruben Smits <ruben dot smits at mech dot kuleuven dot be>
6 
7 // This library is free software; you can redistribute it and/or
8 // modify it under the terms of the GNU Lesser General Public
9 // License as published by the Free Software Foundation; either
10 // version 2.1 of the License, or (at your option) any later version.
11 
12 // This library is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 // Lesser General Public License for more details.
16 
17 // You should have received a copy of the GNU Lesser General Public
18 // License along with this library; if not, write to the Free Software
19 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20 
23 
24 #include <string>
25 #include <vector>
26 
27 namespace OCL
28 {
29  using namespace RTT;
30  using namespace RTT::detail;
31  using namespace std;
32 
33  class OCLTypekit : public TypekitPlugin
34  {
35  public:
36  bool loadTypes() {
37  RTT::types::TypeInfoRepository::Instance()->addType( new types::SequenceTypeInfo<vector<std::string> >("strings") );
38 
39  // segfaults when reading out an element of this type:
40  //RTT::types::TypeInfoRepository::Instance()->addType( new types::SequenceTypeInfo<vector<bool> >("bools") );
41 
42  RTT::types::TypeInfoRepository::Instance()->addType( new types::SequenceTypeInfo<vector<int> >("ints") );
43 
44  return true;
45  }
46 
47  bool loadOperators() { return true; }
48  bool loadConstructors() { return true; }
49 
50  std::string getName() {
51  return "OCLTypekit";
52  }
53  };
54 }
55 
57 
#define ORO_TYPEKIT_PLUGIN(TYPEKIT)
static shared_ptr Instance()
std::string getName()
Definition: ocltoolkit.cpp:50
bool loadConstructors()
Definition: ocltoolkit.cpp:48
bool loadOperators()
Definition: ocltoolkit.cpp:47


ocl
Author(s): OCL Development Team
autogenerated on Mon Mar 23 2020 04:47:19