OpenRTM-aist 2.1.0
Public Member Functions | List of all members
RTC::OutPortDirectConsumer Class Reference

OutPortDirectConsumer class. More...

#include <OutPortDirectConsumer.h>

Inheritance diagram for RTC::OutPortDirectConsumer:
Inheritance graph
[legend]
Collaboration diagram for RTC::OutPortDirectConsumer:
Collaboration graph
[legend]

Public Member Functions

 OutPortDirectConsumer ()
 Constructor. More...
 
 ~OutPortDirectConsumer () override
 Destructor. More...
 
void init (coil::Properties &prop) override
 Initializing configuration. More...
 
void setBuffer (CdrBufferBase *buffer) override
 Setting outside buffer's pointer. More...
 
void setListener (ConnectorInfo &info, ConnectorListenersBase *listeners) override
 Set the listener. More...
 
DataPortStatus get (ByteData &data) override
 Read data. More...
 
bool subscribeInterface (const SDOPackage::NVList &properties) override
 Subscribe the data receive notification. More...
 
void unsubscribeInterface (const SDOPackage::NVList &properties) override
 Unsubscribe the data receive notification. More...
 
- Public Member Functions inherited from RTC::OutPortConsumer
virtual ~OutPortConsumer ()=default
 Destructor. More...
 
virtual void init (coil::Properties &prop)=0
 Initializing configuration. More...
 
virtual void setBuffer (CdrBufferBase *buffer)=0
 Setting outside buffer's pointer. More...
 
virtual void setListener (ConnectorInfo &info, ConnectorListenersBase *listeners)=0
 Set the listener. More...
 
virtual DataPortStatus get (ByteData &data)=0
 Receive data. More...
 
virtual bool subscribeInterface (const SDOPackage::NVList &properties)=0
 Subscribe the data receive notification. More...
 
virtual void unsubscribeInterface (const SDOPackage::NVList &properties)=0
 Unsubscribe the data receive notification. More...
 

Detailed Description

OutPortDirectConsumer class.

The OutPort consumer class which uses the OpenRTM::OutPortCdr interface in CORBA for data transfer and realizes a pull-type dataflow.

Since
1.2.0

Constructor & Destructor Documentation

◆ OutPortDirectConsumer()

RTC::OutPortDirectConsumer::OutPortDirectConsumer ( )

Constructor.

Constructor

◆ ~OutPortDirectConsumer()

RTC::OutPortDirectConsumer::~OutPortDirectConsumer ( )
override

Destructor.

Destructor

Member Function Documentation

◆ get()

DataPortStatus RTC::OutPortDirectConsumer::get ( ByteData data)
overridevirtual

Read data.

Read set data

Parameters
dataObject to receive the read data
Returns
Read result (Successful:true, Failed:false)

Implements RTC::OutPortConsumer.

◆ init()

void RTC::OutPortDirectConsumer::init ( coil::Properties &  prop)
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.

Parameters
propConfiguration information

Implements RTC::OutPortConsumer.

◆ setBuffer()

void RTC::OutPortDirectConsumer::setBuffer ( CdrBufferBase buffer)
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.

Parameters
bufferA pointer to a data buffer to be used by OutPortProvider

Implements RTC::OutPortConsumer.

◆ setListener()

void RTC::OutPortDirectConsumer::setListener ( ConnectorInfo info,
ConnectorListenersBase listeners 
)
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.

  • ON_BUFFER_WRITE
  • ON_BUFFER_FULL
  • ON_RECEIVED
  • ON_RECEIVER_FULL
  • ON_SENDER_EMPTY
  • ON_SENDER_TIMEOUT
  • ON_SENDER_ERROR
Parameters
infoConnector information
listenersListener objects

Implements RTC::OutPortConsumer.

◆ subscribeInterface()

bool RTC::OutPortDirectConsumer::subscribeInterface ( const SDOPackage::NVList &  properties)
overridevirtual

Subscribe the data receive notification.

Subscribe the data receive notification based on specified property information

Parameters
propertiesSubscription information
Returns
Subscription result (Successful:true, Failed:false)

Implements RTC::OutPortConsumer.

◆ unsubscribeInterface()

void RTC::OutPortDirectConsumer::unsubscribeInterface ( const SDOPackage::NVList &  properties)
overridevirtual

Unsubscribe the data receive notification.

Unsubscribe the data receive notification.

Parameters
propertiesUnsubscription information

Implements RTC::OutPortConsumer.


The documentation for this class was generated from the following file: