RTC::OutPortCorbaCdrConsumer Class Reference

OutPortCorbaCdrConsumer class. More...

#include <OutPortCorbaCdrConsumer.h>

Inheritance diagram for RTC::OutPortCorbaCdrConsumer:
RTC::OutPortConsumer RTC::CorbaConsumer< ::OpenRTM::OutPortCdr > RTC::DataPortStatus RTC::CorbaConsumerBase

List of all members.

Public Member Functions

DATAPORTSTATUS_ENUM OutPortCorbaCdrConsumer ()
 Constructor.
virtual ~OutPortCorbaCdrConsumer (void)
 Destructor.
virtual void init (coil::Properties &prop)
 Initializing configuration.
virtual void setBuffer (CdrBufferBase *buffer)
 Setting outside buffer's pointer.
virtual void setListener (ConnectorInfo &info, ConnectorListeners *listeners)
 Set the listener.
virtual ReturnCode get (cdrMemoryStream &data)
 Read data.
virtual bool subscribeInterface (const SDOPackage::NVList &properties)
 Subscribe the data receive notification.
virtual void unsubscribeInterface (const SDOPackage::NVList &properties)
 Unsubscribe the data receive notification.

Detailed Description

OutPortCorbaCdrConsumer class.

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

Since:
0.4.0

Constructor & Destructor Documentation

DATAPORTSTATUS_ENUM RTC::OutPortCorbaCdrConsumer::OutPortCorbaCdrConsumer (  ) 

Constructor.

Constructor

virtual RTC::OutPortCorbaCdrConsumer::~OutPortCorbaCdrConsumer ( void   )  [virtual]

Destructor.

Destructor


Member Function Documentation

virtual ReturnCode RTC::OutPortCorbaCdrConsumer::get ( cdrMemoryStream &  data  )  [virtual]

Read data.

Read set data

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

Implements RTC::OutPortConsumer.

virtual void RTC::OutPortCorbaCdrConsumer::init ( coil::Properties prop  )  [virtual]

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:
prop Configuration information

Implements RTC::OutPortConsumer.

virtual void RTC::OutPortCorbaCdrConsumer::setBuffer ( CdrBufferBase buffer  )  [virtual]

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:
buffer A pointer to a data buffer to be used by OutPortProvider

Implements RTC::OutPortConsumer.

virtual void RTC::OutPortCorbaCdrConsumer::setListener ( ConnectorInfo info,
ConnectorListeners listeners 
) [virtual]

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:
info Connector information
listeners Listener objects

Implements RTC::OutPortConsumer.

virtual bool RTC::OutPortCorbaCdrConsumer::subscribeInterface ( const SDOPackage::NVList &  properties  )  [virtual]

Subscribe the data receive notification.

Subscribe the data receive notification based on specified property information

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

Implements RTC::OutPortConsumer.

virtual void RTC::OutPortCorbaCdrConsumer::unsubscribeInterface ( const SDOPackage::NVList &  properties  )  [virtual]

Unsubscribe the data receive notification.

Unsubscribe the data receive notification.

Parameters:
properties Unsubscription information

Implements RTC::OutPortConsumer.

Generated on Fri Oct 28 18:31:18 2016 for OpenRTM-aist by  doxygen 1.6.3