1 #ifndef RTT_TEMPLATE_TYPE_FACTORY 2 #define RTT_TEMPLATE_TYPE_FACTORY 5 #include "../Property.hpp" 6 #include "../Attribute.hpp" 7 #include "../Logger.hpp" 8 #include "../rtt-config.h" 59 return new Alias( name, ds );
DataSource is a base class representing a generic way to read data of type T.
base::AttributeBase * buildConstant(std::string name, base::DataSourceBase::shared_ptr dsb) const
Build a non modifyable instance of this type.
virtual result_t get() const =0
Return the data as type T.
base::DataSourceBase::shared_ptr convert(base::DataSourceBase::shared_ptr arg) const
Automatic conversion: convert a internal::DataSource to this type.
virtual base::DataSourceBase::shared_ptr buildReference(void *ptr) const
Build a internal::ReferenceDataSource of this type, pointing to the given pointer.
virtual base::PropertyBase * buildProperty(const std::string &name, const std::string &desc, base::DataSourceBase::shared_ptr source=0) const
Build a Property of this type.
Base class for all properties.
base::AttributeBase * buildVariable(std::string name) const
Build a non modifyable instance of this type.
Creates all value objects of a certain type.
A DataSource which is used to manipulate a reference to an external value.
base::DataSourceBase::shared_ptr buildActionAlias(base::ActionInterface *action, base::DataSourceBase::shared_ptr in) const
Returns a DataSource that first executes an action and returns the result of another data source...
An attribute is a minimalistic, named placeholder for data.
A DataSource which is used to execute an action and then return the value of another DataSource...
virtual base::DataSourceBase::shared_ptr buildValue() const
Build a internal::ValueDataSource of this type.
static const types::TypeInfo * getTypeInfo()
Return the typeinfo object.
virtual const_reference_t rvalue() const =0
Get a const reference to the value of this DataSource.
A property represents a named value of any type with a description.
Based on the software pattern 'command', this interface allows execution of action objects...
DataSource< T >::result_t get() const
Return the data as type T.
boost::intrusive_ptr< DataSource< T > > shared_ptr
boost::intrusive_ptr< AssignableDataSource< T > > shared_ptr
Use this type to store a pointer to an AssignableDataSource.
A special DataSource only to be used for if you understand the copy()/clone() semantics very well...
static AssignableDataSource< T > * narrow(base::DataSourceBase *db)
This method narrows a base::DataSourceBase to a typeded AssignableDataSource, possibly returning a ne...
A DataSource which has set() methods.
DataSource< T >::result_t get() const
Return the data as type T.
base::AttributeBase * buildAttribute(std::string name, base::DataSourceBase::shared_ptr in) const
Build an Attribute of this type.
base::AttributeBase * buildAlias(std::string name, base::DataSourceBase::shared_ptr in) const
build an alias with b as the value.
boost::intrusive_ptr< DataSourceBase > shared_ptr
Use this type to store a pointer to a DataSourceBase.
An Attribute has a name and contains data which can be set and get.
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
As opposed to a Attribute, a Constant can not be assigned to a new value after creation.
This class is the most basic Attribute implementation (only suitable for reading a internal::DataSour...
A simple, yet very useful DataSource, which keeps a value, and returns it in its get() method...
An AssignableDataSource which is used to execute an action and then return the value of another DataS...