Public Member Functions
RTT::types::ValueFactory Class Reference

#include <ValueFactory.hpp>

Inheritance diagram for RTT::types::ValueFactory:
Inheritance graph

List of all members.

Public Member Functions

virtual ~ValueFactory ()
Type building/factory functions

Used to create objects that hold data of a certain type.

virtual base::AttributeBasebuildConstant (std::string name, base::DataSourceBase::shared_ptr, int sizehint) const
virtual base::AttributeBasebuildConstant (std::string name, base::DataSourceBase::shared_ptr) const =0
virtual base::AttributeBasebuildVariable (std::string name, int sizehint) const
virtual base::AttributeBasebuildVariable (std::string name) const =0
virtual base::AttributeBasebuildAlias (std::string name, base::DataSourceBase::shared_ptr b) const =0
virtual base::PropertyBasebuildProperty (const std::string &name, const std::string &desc, base::DataSourceBase::shared_ptr source=0) const =0
virtual base::AttributeBasebuildAttribute (std::string name, base::DataSourceBase::shared_ptr source=0) const =0
buildValue () const =0
buildReference (void *ptr) const =0
buildActionAlias (base::ActionInterface *action, base::DataSourceBase::shared_ptr source) const =0

Detailed Description

Creates all value objects of a certain type.

Definition at line 18 of file ValueFactory.hpp.

Constructor & Destructor Documentation

virtual RTT::types::ValueFactory::~ValueFactory ( ) [inline, virtual]

Definition at line 21 of file ValueFactory.hpp.

Member Function Documentation

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]
virtual base::AttributeBase* RTT::types::ValueFactory::buildAttribute ( std::string  name,
base::DataSourceBase::shared_ptr  source = 0 
) const [pure virtual]
AttributeBase * RTT::ValueFactory::buildConstant ( std::string  name,
base::DataSourceBase::shared_ptr  dsb,
int  sizehint 
) const [virtual]

Build a non modifyable instance of this type.

sizehintFor 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,
) const [pure virtual]
virtual base::PropertyBase* RTT::types::ValueFactory::buildProperty ( const std::string &  name,
const std::string &  desc,
base::DataSourceBase::shared_ptr  source = 0 
) const [pure virtual]
virtual base::DataSourceBase::shared_ptr RTT::types::ValueFactory::buildReference ( void *  ptr) const [pure virtual]
AttributeBase * RTT::ValueFactory::buildVariable ( std::string  name,
int  sizehint 
) const [virtual]
virtual base::AttributeBase* RTT::types::ValueFactory::buildVariable ( std::string  name) const [pure virtual]

The documentation for this class was generated from the following files:

Author(s): RTT Developers
autogenerated on Sat Jun 8 2019 18:46:40