#include <PrimitiveTypeInfo.hpp>
Public Types | |
typedef T | DataType |
Public Types inherited from RTT::types::TemplateValueFactory< T > | |
typedef T | DataType |
Protected Attributes | |
boost::shared_ptr< PrimitiveTypeInfo< T, use_ostream > > | mshared |
const std::string | tname |
This template class allows primitive types, which are not sent over ports, to be added to Orocos. The type is known to the type system, but you can not use it in flow ports.
T | The user class type. |
use_ostream | When set to true, the class will use operator<<(std::ostream&, T) to write out the type to a stream. When set to false, the class will use this function and write '( type name )' to a stream instead. Defaults to false. Set to true if your class T has the above mentioned function. |
Definition at line 70 of file PrimitiveTypeInfo.hpp.
typedef T RTT::types::PrimitiveTypeInfo< T, use_ostream >::DataType |
The given T parameter is the type of the DataSources.
Definition at line 82 of file PrimitiveTypeInfo.hpp.
|
inline |
Setup Type Information for type name. This causes a switch from 'unknown' type to basic type information for type T.
name | the 'Orocos' type name. |
Definition at line 91 of file PrimitiveTypeInfo.hpp.
|
inlinevirtual |
Definition at line 96 of file PrimitiveTypeInfo.hpp.
|
inlinevirtual |
Reimplemented in RTT::types::CArrayTypeInfo< T, has_ostream >, RTT::types::BoostArrayTypeInfo< T, has_ostream >, RTT::types::EnumTypeInfo< T >, RTT::types::PrimitiveSequenceTypeInfo< T, has_ostream >, RTT::types::SequenceTypeInfo< T, has_ostream >, RTT::types::SequenceTypeInfo< rt_string, true >, RTT::types::SequenceTypeInfo< std::string, true >, RTT::types::SequenceTypeInfo< std::vector< double >, true >, RTT::types::SequenceTypeInfo< std::vector< T >, has_ostream >, RTT::types::StdStringTypeInfo, RTT::types::RTStringTypeInfo, RTT::types::StdTypeInfo< T >, RTT::types::StdTypeInfo< bool >, RTT::types::StdVectorTemplateTypeInfo< T, has_ostream >, and RTT::types::StdVectorTypeInfo.
Definition at line 149 of file PrimitiveTypeInfo.hpp.
|
inlinevirtual |
A primitive type is decomposed into itself.
Reimplemented in RTT::types::CArrayTypeInfo< T, has_ostream >, RTT::types::BoostArrayTypeInfo< T, has_ostream >, RTT::types::EnumTypeInfo< T >, RTT::types::PrimitiveSequenceTypeInfo< T, has_ostream >, RTT::types::SequenceTypeInfo< T, has_ostream >, RTT::types::SequenceTypeInfo< rt_string, true >, RTT::types::SequenceTypeInfo< std::string, true >, RTT::types::SequenceTypeInfo< std::vector< double >, true >, RTT::types::SequenceTypeInfo< std::vector< T >, has_ostream >, RTT::types::StdStringTypeInfo, RTT::types::RTStringTypeInfo, RTT::types::StdTypeInfo< T >, and RTT::types::StdTypeInfo< bool >.
Definition at line 156 of file PrimitiveTypeInfo.hpp.
|
inlinevirtual |
Definition at line 161 of file PrimitiveTypeInfo.hpp.
|
inline |
Definition at line 100 of file PrimitiveTypeInfo.hpp.
|
inlinevirtual |
Returns the TypeInfo object of this type, or null if none exists yet.
Implements RTT::types::TypeInfoGenerator.
Definition at line 122 of file PrimitiveTypeInfo.hpp.
|
inlinevirtual |
Return the type name for which this generator generates type info features. This name will be aliased by the TypeInfo object.
Implements RTT::types::TypeInfoGenerator.
Definition at line 126 of file PrimitiveTypeInfo.hpp.
|
inlinevirtual |
Installs the type info object in the global data source type info handler and adds any additional features to the type info object. This method will be called by the TypeInfoRepository, in order to register this type's factories into the TypeInfo object.
Implements RTT::types::TypeInfoGenerator.
Reimplemented in RTT::types::TemplateTypeInfo< T, use_ostream >, RTT::types::TemplateTypeInfo< T, has_ostream >, RTT::types::TemplateTypeInfo< std::string, has_ostream >, RTT::types::TemplateTypeInfo< bool, true >, RTT::types::TemplateTypeInfo< rt_string, has_ostream >, RTT::types::TemplateTypeInfo< std::vector< double >, has_ostream >, RTT::types::TemplateTypeInfo< T, true >, RTT::types::TemplateTypeInfo< std::vector< T >, has_ostream >, RTT::types::TemplateTypeInfo< T, false >, RTT::types::MatrixTypeInfo< T, has_ostream >, RTT::types::StructTypeInfo< T, has_ostream >, RTT::types::SequenceTypeInfo< T, has_ostream >, RTT::types::SequenceTypeInfo< rt_string, true >, RTT::types::SequenceTypeInfo< std::string, true >, RTT::types::SequenceTypeInfo< std::vector< double >, true >, and RTT::types::SequenceTypeInfo< std::vector< T >, has_ostream >.
Definition at line 106 of file PrimitiveTypeInfo.hpp.
|
inlinevirtual |
Returns true if this type is directly streamable using read()/write() or toString()/fromString().
Implements RTT::types::StreamFactory.
Reimplemented in RTT::types::BoolTypeInfo.
Definition at line 145 of file PrimitiveTypeInfo.hpp.
|
inlinevirtual |
Read a new value for this datasource from a human readable string. The default does nothing.
Implements RTT::types::StreamFactory.
Reimplemented in RTT::types::BoolTypeInfo.
Definition at line 136 of file PrimitiveTypeInfo.hpp.
|
inlinevirtual |
Output this datasource as a human readable string. The default just writes the type name in parentheses to os.
Implements RTT::types::StreamFactory.
Reimplemented in RTT::types::BoolTypeInfo.
Definition at line 128 of file PrimitiveTypeInfo.hpp.
|
protected |
Definition at line 77 of file PrimitiveTypeInfo.hpp.
|
protected |
Definition at line 76 of file PrimitiveTypeInfo.hpp.