39 #ifndef ORO_CHANNEL_DATA_ELEMENT_HPP 40 #define ORO_CHANNEL_DATA_ELEMENT_HPP 42 #include "../base/ChannelElement.hpp" 43 #include "../base/DataObjectInterface.hpp" 60 : written(false), mread(false), data(sample) {}
64 virtual bool write(param_t sample)
117 return "ChannelDataElement";
boost::call_traits< T >::param_type param_t
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 void clear()
Clears any data stored by the channel.
ChannelDataElement(typename base::DataObjectInterface< T >::shared_ptr sample)
virtual void clear()
Resets the stored sample.
virtual bool data_sample(param_t sample)
Provides a data sample to initialize this connection.
FlowStatus
Returns the status of a data flow read.
virtual bool write(param_t sample)
Update the data sample stored in this element.
virtual bool signal()
Signals that there is new data available on this channel By default, the channel element forwards the...
A typed version of ChannelElementBase.
boost::call_traits< T >::reference reference_t
virtual value_t data_sample()
virtual std::string getElementName() const
Returns the class name of this element.
virtual void Get(DataType &pull) const =0
Get a copy of the Data of this data object.
A connection element that stores a single data sample.
virtual FlowStatus read(reference_t sample, bool copy_old_data)
Reads the last sample given to write()
virtual void Set(const DataType &push)=0
Set the data to a certain value.
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
base::ChannelElement< T >::param_t param_t
base::ChannelElement< T >::reference_t reference_t