Orocos Real-Time Toolkit
2.6.0
|
Creates all value objects of a certain type. More...
#include <rtt/types/ValueFactory.hpp>
Inherited by RTT::types::TemplateValueFactory< T >, RTT::types::TemplateValueFactory< bool >, RTT::types::TemplateValueFactory< rt_string >, RTT::types::TemplateValueFactory< std::string >, RTT::types::TemplateValueFactory< std::vector< double > >, and RTT::types::TemplateValueFactory< std::vector< T > >.
Public Member Functions | |
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. | |
virtual base::AttributeBase * | buildConstant (std::string name, base::DataSourceBase::shared_ptr) const =0 |
Build a non modifyable instance of this type. | |
virtual base::AttributeBase * | buildVariable (std::string name, int sizehint) const |
Build a modifyable instance of this type. | |
virtual base::AttributeBase * | buildVariable (std::string name) const =0 |
Build a non modifyable instance of this type. | |
virtual base::AttributeBase * | buildAlias (std::string name, base::DataSourceBase::shared_ptr b) const =0 |
build an alias with b as the value. | |
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. | |
virtual base::AttributeBase * | buildAttribute (std::string name, base::DataSourceBase::shared_ptr source=0) const =0 |
Build an Attribute of this type. | |
virtual base::DataSourceBase::shared_ptr | buildValue () const =0 |
Build a internal::ValueDataSource of this type. | |
virtual base::DataSourceBase::shared_ptr | buildReference (void *ptr) const =0 |
Build a internal::ReferenceDataSource of this type, pointing to the given pointer. | |
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. |
Creates all value objects of a certain type.
Definition at line 18 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.
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..
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] |
Build a non modifyable instance of this type.
sizehint | For variable size instances, use it to hint the size of the instance. |
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::CArrayTypeInfo< T, has_ostream >.
Definition at line 10 of file ValueFactory.cpp.
virtual base::AttributeBase* RTT::types::ValueFactory::buildVariable | ( | std::string | name | ) | const [pure virtual] |
Build a non modifyable instance of this type.
sizehint | For variable size instances, use it to hint the size of the instance. |