Orocos Real-Time Toolkit
2.6.0
|
All generator classes inherit from this object in order to allow them to be added to the TypeInfoRepository. More...
#include <rtt/types/TypeInfoGenerator.hpp>
Public Member Functions | |
virtual const std::string & | getTypeName () const =0 |
Return the type name for which this generator generates type info features. | |
virtual bool | installTypeInfoObject (TypeInfo *ti)=0 |
Installs the type info object in the global data source type info handler and adds any additional features to the type info object. | |
virtual TypeInfo * | getTypeInfoObject () const =0 |
Returns the TypeInfo object of this type, or null if none exists yet. |
All generator classes inherit from this object in order to allow them to be added to the TypeInfoRepository.
This class is solely meant for installing TypeInfo objects, so a helper class to the type system which has no function once the type registration is done.
Definition at line 20 of file TypeInfoGenerator.hpp.
virtual TypeInfo* RTT::types::TypeInfoGenerator::getTypeInfoObject | ( | ) | const [pure virtual] |
Returns the TypeInfo object of this type, or null if none exists yet.
Implemented in RTT::types::TypeInfoName< T >, RTT::types::PrimitiveTypeInfo< T, use_ostream >, RTT::types::PrimitiveTypeInfo< T, has_ostream >, RTT::types::PrimitiveTypeInfo< rt_string, use_ostream >, RTT::types::PrimitiveTypeInfo< bool, false >, RTT::types::PrimitiveTypeInfo< std::vector< double >, use_ostream >, RTT::types::PrimitiveTypeInfo< T, true >, RTT::types::PrimitiveTypeInfo< std::string, use_ostream >, RTT::types::PrimitiveTypeInfo< std::vector< T >, use_ostream >, and RTT::types::EmptyTypeInfo.
Referenced by RTT::types::TypeInfoRepository::addType().
virtual const std::string& RTT::types::TypeInfoGenerator::getTypeName | ( | ) | const [pure virtual] |
Return the type name for which this generator generates type info features.
This name will be aliased by the TypeInfo object.
Implemented in RTT::types::PrimitiveTypeInfo< T, use_ostream >, RTT::types::PrimitiveTypeInfo< T, has_ostream >, RTT::types::PrimitiveTypeInfo< rt_string, use_ostream >, RTT::types::PrimitiveTypeInfo< bool, false >, RTT::types::PrimitiveTypeInfo< std::vector< double >, use_ostream >, RTT::types::PrimitiveTypeInfo< T, true >, RTT::types::PrimitiveTypeInfo< std::string, use_ostream >, RTT::types::PrimitiveTypeInfo< std::vector< T >, use_ostream >, and RTT::types::EmptyTypeInfo.
Referenced by RTT::types::TypeInfoRepository::addType().
virtual bool RTT::types::TypeInfoGenerator::installTypeInfoObject | ( | TypeInfo * | ti | ) | [pure 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.
ti | A valid TypeInfo object into which new features may be installed |
Implemented in RTT::types::TemplateTypeInfo< T, use_ostream >, RTT::types::TemplateTypeInfo< T, has_ostream >, RTT::types::TemplateTypeInfo< rt_string, has_ostream >, RTT::types::TemplateTypeInfo< std::vector< T >, has_ostream >, RTT::types::TemplateTypeInfo< std::string, has_ostream >, RTT::types::TemplateTypeInfo< T, true >, RTT::types::TemplateTypeInfo< bool >, RTT::types::TemplateTypeInfo< std::vector< double >, has_ostream >, RTT::types::TemplateTypeInfo< T, false >, RTT::types::TypeInfoName< T >, RTT::types::BoostArrayTypeInfo< T, has_ostream >, RTT::types::EnumTypeInfo< T >, RTT::types::CArrayTypeInfo< T, has_ostream >, RTT::types::StructTypeInfo< T, has_ostream >, RTT::types::PrimitiveTypeInfo< T, use_ostream >, RTT::types::PrimitiveTypeInfo< T, has_ostream >, RTT::types::PrimitiveTypeInfo< rt_string, use_ostream >, RTT::types::PrimitiveTypeInfo< bool, false >, RTT::types::PrimitiveTypeInfo< std::vector< double >, use_ostream >, RTT::types::PrimitiveTypeInfo< T, true >, RTT::types::PrimitiveTypeInfo< std::string, use_ostream >, RTT::types::PrimitiveTypeInfo< std::vector< T >, use_ostream >, and RTT::types::EmptyTypeInfo.
Referenced by RTT::types::TypeInfoRepository::addType().