OpenRTM-aist 2.0.2
|
OutPortDirectConsumer class. More...
#include <OutPortDirectConsumer.h>
Public Member Functions | |
OutPortDirectConsumer () | |
Constructor. | |
~OutPortDirectConsumer () override | |
Destructor. | |
void | init (coil::Properties &prop) override |
Initializing configuration. | |
void | setBuffer (CdrBufferBase *buffer) override |
Setting outside buffer's pointer. | |
void | setListener (ConnectorInfo &info, ConnectorListenersBase *listeners) override |
Set the listener. | |
DataPortStatus | get (ByteData &data) override |
Read data. | |
bool | subscribeInterface (const SDOPackage::NVList &properties) override |
Subscribe the data receive notification. | |
void | unsubscribeInterface (const SDOPackage::NVList &properties) override |
Unsubscribe the data receive notification. | |
![]() | |
virtual | ~OutPortConsumer ()=default |
Destructor. | |
Additional Inherited Members | |
![]() | |
Logger | rtclog |
Logger stream . | |
OutPortDirectConsumer class.
The OutPort consumer class which uses the OpenRTM::OutPortCdr interface in CORBA for data transfer and realizes a pull-type dataflow.
RTC::OutPortDirectConsumer::OutPortDirectConsumer | ( | ) |
Constructor.
Constructor
|
override |
Destructor.
Destructor
|
overridevirtual |
Read data.
Read set data
data | Object to receive the read data |
Implements RTC::OutPortConsumer.
|
overridevirtual |
Initializing configuration.
This operation would be called to configure in initialization. In the concrete class, configuration should be performed getting appropriate information from the given Properties data. This function might be called right after instantiation and connection sequence respectivly. Therefore, this function should be implemented assuming multiple call.
prop | Configuration information |
Implements RTC::OutPortConsumer.
|
overridevirtual |
Setting outside buffer's pointer.
A pointer to a buffer from which OutPortProvider retrieve data. If already buffer is set, previous buffer's pointer will be overwritten by the given pointer to a buffer. Since OutPortProvider does not assume ownership of the buffer pointer, destructor of the buffer should be done by user.
buffer | A pointer to a data buffer to be used by OutPortProvider |
Implements RTC::OutPortConsumer.
|
overridevirtual |
Set the listener.
OutPort provides callback functionality that calls specific listener objects according to the events in the data publishing process. For details, see documentation of ConnectorDataListener class and ConnectorListener class in ConnectorListener.h. In this OutPortCorbaCdrProvider provides the following callbacks.
info | Connector information |
listeners | Listener objects |
Implements RTC::OutPortConsumer.
|
overridevirtual |
Subscribe the data receive notification.
Subscribe the data receive notification based on specified property information
properties | Subscription information |
Implements RTC::OutPortConsumer.
|
overridevirtual |
Unsubscribe the data receive notification.
Unsubscribe the data receive notification.
properties | Unsubscription information |
Implements RTC::OutPortConsumer.