Orocos Real-Time Toolkit
2.9.0
|
Creates all value objects of a certain type. More...
#include <rtt/types/ValueFactory.hpp>
Public Member Functions | |
virtual | ~ValueFactory () |
Type building/factory functions | |
Used to create objects that hold data of a certain type. | |
virtual base::AttributeBase * | buildConstant (std::string name, base::DataSourceBase::shared_ptr, int sizehint) const |
Build a non modifyable instance of this type. More... | |
virtual base::AttributeBase * | buildConstant (std::string name, base::DataSourceBase::shared_ptr) const =0 |
Build a non modifyable instance of this type. More... | |
virtual base::AttributeBase * | buildVariable (std::string name, int sizehint) const |
Build a modifyable instance of this type. More... | |
virtual base::AttributeBase * | buildVariable (std::string name) const =0 |
Build a non modifyable instance of this type. More... | |
virtual base::AttributeBase * | buildAlias (std::string name, base::DataSourceBase::shared_ptr b) const =0 |
build an alias with b as the value. More... | |
virtual base::PropertyBase * | buildProperty (const std::string &name, const std::string &desc, base::DataSourceBase::shared_ptr source=0) const =0 |
Build a Property of this type. More... | |
virtual base::AttributeBase * | buildAttribute (std::string name, base::DataSourceBase::shared_ptr source=0) const =0 |
Build an Attribute of this type. More... | |
virtual base::DataSourceBase::shared_ptr | buildValue () const =0 |
Build a internal::ValueDataSource of this type. More... | |
virtual base::DataSourceBase::shared_ptr | buildReference (void *ptr) const =0 |
Build a internal::ReferenceDataSource of this type, pointing to the given pointer. More... | |
virtual base::DataSourceBase::shared_ptr | buildActionAlias (base::ActionInterface *action, base::DataSourceBase::shared_ptr source) const =0 |
Returns a DataSource that first executes an action and returns the result of another data source. More... | |
Creates all value objects of a certain type.
Definition at line 18 of file ValueFactory.hpp.
|
inlinevirtual |
Definition at line 21 of file ValueFactory.hpp.
|
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 >.
|
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 >.
|
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 >.
|
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.
|
pure virtual |
Build a non modifyable instance of this type.
sizehint | For variable size instances, use it to hint the size of the instance. |
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 >.
|
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 >.
|
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 >.
|
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 >.
|
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::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.
|
pure virtual |
Build a non modifyable instance of this type.
sizehint | For variable size instances, use it to hint the size of the instance. |
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 >.