39 #ifndef MQ_CHANNEL_ELEMENT_H 40 #define MQ_CHANNEL_ELEMENT_H 43 #include "../../Logger.hpp" 44 #include "../../base/ChannelElement.hpp" 45 #include "../../internal/DataSource.hpp" 46 #include "../../internal/DataSources.hpp" 90 if (
mqReady(read_sample,
this) ) {
141 if (output &&
mqRead(read_sample))
154 throw std::runtime_error(
"not implemented");
198 return "MQChannelElement";
WriteStatus write(typename base::ChannelElement< T >::param_t sample)
boost::call_traits< T >::param_type param_t
boost::intrusive_ptr< ChannelElement< T > > shared_ptr
virtual void mqNewSample(base::DataSourceBase::shared_ptr ds)
bool mqRead(base::DataSourceBase::shared_ptr ds)
boost::intrusive_ptr< LateConstReferenceDataSource< T > > shared_ptr
void setupStream(base::DataSourceBase::shared_ptr ds, base::PortInterface *port, ConnPolicy const &policy, bool is_sender)
virtual std::string getLocalURI() const
FlowStatus read(typename base::ChannelElement< T >::reference_t sample, bool copy_old_data)
virtual bool inputReady(base::ChannelElementBase::shared_ptr const &caller)
virtual std::string getElementName() const
bool mqWrite(base::DataSourceBase::shared_ptr ds)
void set(typename AssignableDataSource< T >::param_t t)
virtual bool mqReady(base::DataSourceBase::shared_ptr ds, base::ChannelElementBase *chan)
virtual std::string getRemoteURI() const
virtual WriteStatus data_sample(typename base::ChannelElement< T >::param_t sample, bool reset=true)
virtual std::string getLocalURI() const
internal::ValueDataSource< T >::shared_ptr read_sample
virtual FlowStatus read(reference_t sample, bool copy_old_data=true)
boost::call_traits< T >::reference reference_t
boost::intrusive_ptr< ChannelElementBase > shared_ptr
internal::LateConstReferenceDataSource< T >::shared_ptr write_sample
void const * getRawDataConst()
void setPointer(const typename AssignableDataSource< T >::value_t *ptr)
virtual WriteStatus data_sample(param_t sample, bool reset=true)
virtual WriteStatus write(param_t sample)
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
AssignableDataSource< T >::const_reference_t rvalue() const
MQChannelElement(base::PortInterface *port, types::TypeMarshaller const &transport, const ConnPolicy &policy, bool is_sender)
virtual bool isRemoteElement() const
virtual std::string getRemoteURI() const
boost::intrusive_ptr< ValueDataSource< T > > shared_ptr