#include <TemplateTypeInfo.hpp>
Public Types | |
typedef T | UserType |
Public Member Functions | |
virtual base::ChannelElementBase::shared_ptr | buildRemoteChannelOutput (base::OutputPortInterface &output_port, types::TypeInfo const *type_info, base::InputPortInterface &input, const ConnPolicy &policy) |
bool | installTypeInfoObject (TypeInfo *ti) |
TemplateTypeInfo (std::string name) | |
virtual | ~TemplateTypeInfo () |
This template class allows user types to be used in all Orocos primitives. It provides 'default' implementations for virtual functions of TypeInfo. For user defined types, this is very likely not satisfactory and the user needs to override the methods of this class in a subclass or provide specialised global functions.
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 74 of file TemplateTypeInfo.hpp.
typedef T RTT::types::TemplateTypeInfo< T, use_ostream >::UserType |
The given T parameter is the type for reading DataSources.
Reimplemented from RTT::types::TemplateCompositionFactory< T >.
Definition at line 83 of file TemplateTypeInfo.hpp.
RTT::types::TemplateTypeInfo< T, use_ostream >::TemplateTypeInfo | ( | std::string | name | ) | [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 92 of file TemplateTypeInfo.hpp.
virtual RTT::types::TemplateTypeInfo< T, use_ostream >::~TemplateTypeInfo | ( | ) | [inline, virtual] |
Definition at line 97 of file TemplateTypeInfo.hpp.
virtual base::ChannelElementBase::shared_ptr RTT::types::TemplateTypeInfo< T, use_ostream >::buildRemoteChannelOutput | ( | base::OutputPortInterface & | output_port, |
types::TypeInfo const * | type_info, | ||
base::InputPortInterface & | input, | ||
const ConnPolicy & | policy | ||
) | [inline, virtual] |
Definition at line 102 of file TemplateTypeInfo.hpp.
bool RTT::types::TemplateTypeInfo< T, use_ostream >::installTypeInfoObject | ( | TypeInfo * | ti | ) | [inline, virtual] |
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.
Reimplemented from RTT::types::PrimitiveTypeInfo< T, use_ostream >.
Reimplemented in RTT::types::MatrixTypeInfo< T, has_ostream >, RTT::types::EnumTypeInfo< T >, 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 109 of file TemplateTypeInfo.hpp.