#include <ValueFactory.hpp>
Creates all value objects of a certain type.
Definition at line 18 of file ValueFactory.hpp.
virtual RTT::types::ValueFactory::~ValueFactory | ( | ) | [inline, virtual] |
Definition at line 21 of file ValueFactory.hpp.
virtual base::DataSourceBase::shared_ptr RTT::types::ValueFactory::buildActionAlias | ( | base::ActionInterface * | action, |
base::DataSourceBase::shared_ptr | source | ||
) | const [pure virtual] |
Returns a DataSource that first executes an action and returns the result of another data source. If source is an AssignableDataSource, an AssignableDataSource is returned of the same type, otherwise, a plain DataSource is returned.
Implemented in RTT::types::TemplateValueFactory< T >, RTT::types::TemplateValueFactory< rt_string >, RTT::types::TemplateValueFactory< std::string >, RTT::types::TemplateValueFactory< std::vector< T > >, RTT::types::TemplateValueFactory< std::vector< double > >, and RTT::types::TemplateValueFactory< bool >.
virtual base::AttributeBase* RTT::types::ValueFactory::buildAlias | ( | std::string | name, |
base::DataSourceBase::shared_ptr | b | ||
) | const [pure virtual] |
build an alias with b as the value. If b is of the wrong type, 0 will be returned..
Implemented in RTT::types::TemplateValueFactory< T >, RTT::types::TemplateValueFactory< rt_string >, RTT::types::TemplateValueFactory< std::string >, RTT::types::TemplateValueFactory< std::vector< T > >, RTT::types::TemplateValueFactory< std::vector< double > >, and RTT::types::TemplateValueFactory< bool >.
virtual base::AttributeBase* RTT::types::ValueFactory::buildAttribute | ( | std::string | name, |
base::DataSourceBase::shared_ptr | source = 0 |
||
) | const [pure virtual] |
Build an Attribute of this type.
Implemented in RTT::types::TemplateValueFactory< T >, RTT::types::TemplateValueFactory< rt_string >, RTT::types::TemplateValueFactory< std::string >, RTT::types::TemplateValueFactory< std::vector< T > >, RTT::types::TemplateValueFactory< std::vector< double > >, and RTT::types::TemplateValueFactory< bool >.
AttributeBase * RTT::ValueFactory::buildConstant | ( | std::string | name, |
base::DataSourceBase::shared_ptr | dsb, | ||
int | sizehint | ||
) | const [virtual] |
Build a non modifyable instance of this type.
sizehint | For variable size instances, use it to hint the size of the instance. |
Definition at line 14 of file ValueFactory.cpp.
virtual base::AttributeBase* RTT::types::ValueFactory::buildConstant | ( | std::string | name, |
base::DataSourceBase::shared_ptr | |||
) | const [pure virtual] |
Implemented in RTT::types::TemplateValueFactory< T >, RTT::types::TemplateValueFactory< rt_string >, RTT::types::TemplateValueFactory< std::string >, RTT::types::TemplateValueFactory< std::vector< T > >, RTT::types::TemplateValueFactory< std::vector< double > >, and RTT::types::TemplateValueFactory< bool >.
virtual base::PropertyBase* RTT::types::ValueFactory::buildProperty | ( | const std::string & | name, |
const std::string & | desc, | ||
base::DataSourceBase::shared_ptr | source = 0 |
||
) | const [pure virtual] |
Build a Property of this type.
Implemented in RTT::types::TemplateValueFactory< T >, RTT::types::TemplateValueFactory< rt_string >, RTT::types::TemplateValueFactory< std::string >, RTT::types::TemplateValueFactory< std::vector< T > >, RTT::types::TemplateValueFactory< std::vector< double > >, and RTT::types::TemplateValueFactory< bool >.
virtual base::DataSourceBase::shared_ptr RTT::types::ValueFactory::buildReference | ( | void * | ptr | ) | const [pure virtual] |
Build a internal::ReferenceDataSource of this type, pointing to the given pointer
Implemented in RTT::types::TemplateValueFactory< T >, RTT::types::TemplateValueFactory< rt_string >, RTT::types::TemplateValueFactory< std::string >, RTT::types::TemplateValueFactory< std::vector< T > >, RTT::types::TemplateValueFactory< std::vector< double > >, and RTT::types::TemplateValueFactory< bool >.
virtual base::DataSourceBase::shared_ptr RTT::types::ValueFactory::buildValue | ( | ) | const [pure virtual] |
Build a internal::ValueDataSource of this type.
Implemented in RTT::types::TemplateValueFactory< T >, RTT::types::TemplateValueFactory< rt_string >, RTT::types::TemplateValueFactory< std::string >, RTT::types::TemplateValueFactory< std::vector< T > >, RTT::types::TemplateValueFactory< std::vector< double > >, and RTT::types::TemplateValueFactory< bool >.
AttributeBase * RTT::ValueFactory::buildVariable | ( | std::string | name, |
int | sizehint | ||
) | const [virtual] |
Build a modifyable instance of this type.
sizehint | For variable size instances, use it to hint the size of the instance. |
Reimplemented in RTT::types::MatrixTypeInfo< T, has_ostream >, RTT::types::CArrayTypeInfo< T, has_ostream >, RTT::types::StdStringTypeInfo, RTT::types::RTStringTypeInfo, 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 >, and RTT::types::SequenceTypeInfo< std::vector< T >, has_ostream >.
Definition at line 10 of file ValueFactory.cpp.
virtual base::AttributeBase* RTT::types::ValueFactory::buildVariable | ( | std::string | name | ) | const [pure virtual] |
Implemented in RTT::types::TemplateValueFactory< T >, RTT::types::TemplateValueFactory< rt_string >, RTT::types::TemplateValueFactory< std::string >, RTT::types::TemplateValueFactory< std::vector< T > >, RTT::types::TemplateValueFactory< std::vector< double > >, and RTT::types::TemplateValueFactory< bool >.