#include <MQTemplateProtocolBase.hpp>
Public Types | |
typedef T | UserType |
Public Member Functions | |
virtual base::ChannelElementBase::shared_ptr | createStream (base::PortInterface *port, const ConnPolicy &policy, bool is_sender) const |
For each transportable type T, specify the conversion functions.
Definition at line 60 of file MQTemplateProtocolBase.hpp.
typedef T RTT::mqueue::MQTemplateProtocolBase< T >::UserType |
The given T parameter is the type for reading DataSources.
Reimplemented in RTT::mqueue::MQTemplateProtocol< T >.
Definition at line 67 of file MQTemplateProtocolBase.hpp.
virtual base::ChannelElementBase::shared_ptr RTT::mqueue::MQTemplateProtocolBase< T >::createStream | ( | base::PortInterface * | port, |
const ConnPolicy & | policy, | ||
bool | is_sender | ||
) | const [inline, virtual] |
Creates a streaming channel element for reading or writing over this transport. It returns a ChannelElementBase that provides the implementation of sending or receiving data through the transport. Both sender and receiver find each other using the channel_id argument. Transports that do not support streaming may return null
port | The port for which this channel is setup. |
channel_id | If the transport receives a non-empty channel_id, it will create a channel that connects to this id. If channel id is empty, it will be filled in with a unique identifier that identifies this channel. This allows the local caller to connect to the remote channel in a second invocation of createRemoteChannel. |
is_sender | Set to true in case you will write() to this channel element, set it to false in case you will read() from this channel element. |
Implements RTT::types::TypeTransporter.
Definition at line 69 of file MQTemplateProtocolBase.hpp.