Orocos Real-Time Toolkit  2.9.0
DataSourceTypeInfo.inl
Go to the documentation of this file.
1 #ifndef DATASOURCE_TYPE_INFO_INL
2 #define DATASOURCE_TYPE_INFO_INL
3 
4 #include "../types/TypeInfo.hpp"
5 #include "../types/TypeInfoRepository.hpp"
6 
7 namespace RTT
8 {
9  namespace internal {
10  template< class T>
11  const std::string& DataSourceTypeInfo<T>::getType() {
12  return getTypeInfo()->getTypeName();
13  }
14 
15  template< class T>
16  const std::string& DataSourceTypeInfo<T>::getTypeName() {
17  return getTypeInfo()->getTypeName();
18  }
19 
20  template< class T>
21  const std::string& DataSourceTypeInfo<T>::getQualifier() {
23  }
24 
25  template< class T>
27  types::TypeInfo* ret;
28  ret = types::TypeInfoRepository::Instance()->getTypeInfo<T>();
29  if (!ret)
31  return ret;
32  }
33 
34  template< class T>
36 
37  template< class T>
39  types::TypeInfo* ret;
40  ret = types::TypeInfoRepository::Instance()->getTypeInfo<T*>();
41  if (!ret)
43  return ret;
44  }
45 
46  template< class T>
48 
49  template< class T>
51  // return carray type info
52  if (!TypeInfoObject) {
54  if (!TypeInfoObject)
56  }
57  return TypeInfoObject;
58  }
59 
60  template< class T>
62 
63  }
64 
65 }
66 
67 #endif
static types::TypeInfo * TypeInfoObject
Defaults to 0.
static const std::string & getQualifier()
Return the &#39;const&#39;, &#39;ref&#39;, &#39;pointer&#39; qualifier for this type.
Wraps a C array such that we can return a C array from a DataSource.
Definition: carray.hpp:70
static const std::string & getType()
Return the qualified type.
static const types::TypeInfo * getTypeInfo()
Return the typeinfo object.
A class for representing a user type, and which can build instances of that type. ...
Definition: TypeInfo.hpp:67
Every DataSource of type T has a type info class which it can ask type information.
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
Definition: Activity.cpp:52
static const std::string & getTypeName()
Return the unqualified typename.