OpenRTM-aist 2.0.2
Loading...
Searching...
No Matches
RTC::OutPortDirectConsumer Class Reference

OutPortDirectConsumer class. More...

#include <OutPortDirectConsumer.h>

Inheritance diagram for RTC::OutPortDirectConsumer:
Collaboration diagram for RTC::OutPortDirectConsumer:

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.
 
- Public Member Functions inherited from RTC::OutPortConsumer
virtual ~OutPortConsumer ()=default
 Destructor.
 

Additional Inherited Members

- Protected Attributes inherited from RTC::OutPortConsumer
Logger rtclog
 Logger stream .
 

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: