39 #include "../types/Types.hpp" 61 #ifdef OS_HAVE_STREAMS 64 return os << std::boolalpha << d->
value();
71 #ifdef OS_HAVE_STREAMS
Write boolean as 'true' or 'false'.
virtual std::ostream & write(std::ostream &os, base::DataSourceBase::shared_ptr in) const
Output this datasource as a human readable string.
virtual void set(param_t t)=0
Set this DataSource with a value.
virtual std::istream & read(std::istream &os, base::DataSourceBase::shared_ptr out) const
Read a new value for this datasource from a human readable string.
boost::intrusive_ptr< DataSource< T > > shared_ptr
boost::intrusive_ptr< AssignableDataSource< T > > shared_ptr
Use this type to store a pointer to an AssignableDataSource.
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.
virtual bool isStreamable() const
Returns true if this type is directly streamable using read()/write() or toString()/fromString().
virtual void updated()
In case the internal::DataSource returns a 'reference' type, call this method to notify it that the d...
Type information for standard C types or structs of which no introspection is required.