#include <RTStringTypeInfo.hpp>
Public Member Functions | |
base::AttributeBase * | buildVariable (std::string name, int size) const |
base::AttributeBase * | buildVariable (std::string name, int size) const |
virtual bool | composeType (base::DataSourceBase::shared_ptr source, base::DataSourceBase::shared_ptr result) const |
virtual bool | composeType (base::DataSourceBase::shared_ptr source, base::DataSourceBase::shared_ptr result) const |
virtual base::DataSourceBase::shared_ptr | decomposeType (base::DataSourceBase::shared_ptr source) const |
virtual base::DataSourceBase::shared_ptr | decomposeType (base::DataSourceBase::shared_ptr source) const |
RTStringTypeInfo () | |
RTStringTypeInfo () |
Standard string specialisation that removes decomposition.
Definition at line 45 of file install/include/rtt/typekit/RTStringTypeInfo.hpp.
RTT::types::RTStringTypeInfo::RTStringTypeInfo | ( | ) | [inline] |
Definition at line 42 of file install/include/rtt/typekit/RTStringTypeInfo.hpp.
RTT::types::RTStringTypeInfo::RTStringTypeInfo | ( | ) | [inline] |
Definition at line 41 of file rtt/typekit/RTStringTypeInfo.hpp.
base::AttributeBase* RTT::types::RTStringTypeInfo::buildVariable | ( | std::string | name, | |
int | sizehint | |||
) | const [inline, virtual] |
Build a modifyable instance of this type.
sizehint | For variable size instances, use it to hint the size of the instance. |
Reimplemented from RTT::types::SequenceTypeInfo< rt_string, true >.
Definition at line 46 of file rtt/typekit/RTStringTypeInfo.hpp.
base::AttributeBase* RTT::types::RTStringTypeInfo::buildVariable | ( | std::string | name, | |
int | sizehint | |||
) | const [inline, virtual] |
Build a modifyable instance of this type.
sizehint | For variable size instances, use it to hint the size of the instance. |
Reimplemented from RTT::types::SequenceTypeInfo< rt_string, true >.
Definition at line 47 of file install/include/rtt/typekit/RTStringTypeInfo.hpp.
virtual bool RTT::types::RTStringTypeInfo::composeType | ( | base::DataSourceBase::shared_ptr | source, | |
base::DataSourceBase::shared_ptr | target | |||
) | const [inline, virtual] |
Compose a type (target) from a DataSourceBase (source) containing its members. The default behavior tries to assign source to target. If that fails, it tries to decompose target into its members and update the members of target with the contents of source.
The default implementation in TemplateTypeInfo works for most types, but can be overridden in case there are multiple versions/possibilities to make a target from a source. For example, in order to support legacy formats or in order to do the inverse of decomposeType().
source | A data source of the same type as target OR a PropertyBag that contains the parts of target to be refreshed. | |
target | A data source of the same type as this TypeInfo object which contains the data to be updated from source. |
Reimplemented from RTT::types::TemplateTypeInfo< rt_string, has_ostream >.
Definition at line 57 of file rtt/typekit/RTStringTypeInfo.hpp.
virtual bool RTT::types::RTStringTypeInfo::composeType | ( | base::DataSourceBase::shared_ptr | source, | |
base::DataSourceBase::shared_ptr | target | |||
) | const [inline, virtual] |
Compose a type (target) from a DataSourceBase (source) containing its members. The default behavior tries to assign source to target. If that fails, it tries to decompose target into its members and update the members of target with the contents of source.
The default implementation in TemplateTypeInfo works for most types, but can be overridden in case there are multiple versions/possibilities to make a target from a source. For example, in order to support legacy formats or in order to do the inverse of decomposeType().
source | A data source of the same type as target OR a PropertyBag that contains the parts of target to be refreshed. | |
target | A data source of the same type as this TypeInfo object which contains the data to be updated from source. |
Reimplemented from RTT::types::TemplateTypeInfo< rt_string, has_ostream >.
Definition at line 58 of file install/include/rtt/typekit/RTStringTypeInfo.hpp.
virtual base::DataSourceBase::shared_ptr RTT::types::RTStringTypeInfo::decomposeType | ( | base::DataSourceBase::shared_ptr | source | ) | const [inline, virtual] |
An rt_string is decomposed into itself.
Reimplemented from RTT::types::TemplateTypeInfo< rt_string, has_ostream >.
Definition at line 68 of file rtt/typekit/RTStringTypeInfo.hpp.
virtual base::DataSourceBase::shared_ptr RTT::types::RTStringTypeInfo::decomposeType | ( | base::DataSourceBase::shared_ptr | source | ) | const [inline, virtual] |
An rt_string is decomposed into itself.
Reimplemented from RTT::types::TemplateTypeInfo< rt_string, has_ostream >.
Definition at line 69 of file install/include/rtt/typekit/RTStringTypeInfo.hpp.