38 #ifndef CORELIB_DATAOBJECTINTERFACE_HPP 39 #define CORELIB_DATAOBJECTINTERFACE_HPP 42 #include <boost/shared_ptr.hpp> 62 typedef typename boost::shared_ptr<DataObjectInterface<T> >
shared_ptr;
85 virtual void Get( DataType& pull )
const = 0;
92 virtual DataType
Get()
const = 0;
99 virtual void Set(
const DataType& push ) = 0;
108 virtual void data_sample(
const DataType& sample ) = 0;
virtual void data_sample(const DataType &sample)=0
Provides a data sample to initialize this data object.
boost::shared_ptr< DataObjectInterface< T > > shared_ptr
Used for shared_ptr management.
virtual ~DataObjectInterface()
Destructor.
T DataType
The type of the data.
A DataObjectInterface implements multi-threaded read/write solutions.
DataObjectInterface()
Create a DataObject which is initially not reference counted.
virtual void Set(const DataType &push)=0
Set the data to a certain value.
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
virtual DataType Get() const =0
Get a copy of the data of this data object.