1 #ifndef CORELIB_DATASOURCE_INL 2 #define CORELIB_DATASOURCE_INL 6 #include "../types/TypeTransporter.hpp" 8 #include "../rtt-config.h" 79 if (!other)
return false;
85 this->
set( o->
value() );
DataSource is a base class representing a generic way to read data of type T.
base::DataSourceBase::shared_ptr convert(base::DataSourceBase::shared_ptr arg) const
Automatic conversion: convert a internal::DataSource to this type.
The base class for all internal data representations.
static const std::string & getQualifier()
Return the 'const', 'ref', 'pointer' qualifier for this type.
static std::string GetTypeName()
Return the Orocos type name, without const, pointer or reference qualifiers.
This exception is thrown if the target and source type of an assignment of a DataSource with a base::...
static const types::TypeInfo * GetTypeInfo()
Return the Orocos type info.
virtual std::string getType() const
Return useful type info in a human readable format.
static const types::TypeInfo * getTypeInfo()
Return the typeinfo object.
Based on the software pattern 'command', this interface allows execution of action objects...
A class for representing a user type, and which can build instances of that type. ...
virtual base::ActionInterface * updateAction(base::DataSourceBase *other)
Generate a ActionInterface object which will update this internal::DataSource with the value of anoth...
boost::intrusive_ptr< DataSource< T > > shared_ptr
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.
static DataSource< T > * narrow(base::DataSourceBase *db)
This method narrows a base::DataSourceBase to a typeded DataSource, possibly returning a new object...
virtual result_t value() const =0
Return the result of the last evaluate() function.
boost::intrusive_ptr< DataSourceBase > shared_ptr
Use this type to store a pointer to a DataSourceBase.
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
This is a command that will assign the value of an expression to another at runtime.
void const * getRawConstPointer()
Generic implementation of getRawConstPointer() based on rvalue()
virtual bool evaluate() const
Force an evaluation of the DataSourceBase.
virtual bool update(base::DataSourceBase *other)
Update the value of this internal::DataSource with the value of an other DataSource.
static std::string GetType()
Return usefull type info in a human readable format.
static const std::string & getTypeName()
Return the unqualified typename.
virtual std::string getTypeName() const
Return the Orocos type name, without const, pointer or reference qualifiers.
virtual const types::TypeInfo * getTypeInfo() const
Return the Orocos type info object.