Public Member Functions | List of all members
RTT::types::ValueFactory Class Referenceabstract

#include <ValueFactory.hpp>

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

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
virtual base::DataSourceBase::shared_ptr buildValue () const =0
virtual base::DataSourceBase::shared_ptr buildReference (void *ptr) const =0
virtual base::DataSourceBase::shared_ptr buildActionAlias (base::ActionInterface *action, base::DataSourceBase::shared_ptr source) const =0

Detailed Description

Creates all value objects of a certain type.

Definition at line 56 of file ValueFactory.hpp.

Constructor & Destructor Documentation

virtual RTT::types::ValueFactory::~ValueFactory ( )

Definition at line 59 of file ValueFactory.hpp.

Member Function Documentation

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
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

Build a non modifyable instance of this type.

sizehintFor variable size instances, use it to hint the size of the instance.

Definition at line 52 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
virtual base::DataSourceBase::shared_ptr RTT::types::ValueFactory::buildValue ( ) const
pure virtual
AttributeBase * RTT::ValueFactory::buildVariable ( std::string  name,
int  sizehint 
) const
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 Fri Oct 25 2019 03:59:48