Public Member Functions | Private Member Functions | Private Attributes
RTC::OutPortCorbaCdrProvider Class Reference

OutPortCorbaCdrProvider class. More...

#include <OutPortCorbaCdrProvider.h>

Inheritance diagram for RTC::OutPortCorbaCdrProvider:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual ::OpenRTM::PortStatus get (::OpenRTM::CdrData_out data) throw (CORBA::SystemException)
 [CORBA interface] Get data from the buffer
virtual void init (coil::Properties &prop)
 Initializing configuration.
 OutPortCorbaCdrProvider (void)
 Constructor.
virtual void setBuffer (CdrBufferBase *buffer)
 Setting outside buffer's pointer.
virtual void setConnector (OutPortConnector *connector)
 set Connector
virtual void setListener (ConnectorInfo &info, ConnectorListeners *listeners)
 Set the listener.
virtual ~OutPortCorbaCdrProvider (void)
 Destructor.

Private Member Functions

::OpenRTM::PortStatus convertReturn (BufferStatus::Enum status, const cdrMemoryStream &data)
 Return codes conversion.
void onBufferEmpty ()
 Notify an ON_BUFFER_EMPTY event to listeners.
void onBufferRead (const cdrMemoryStream &data)
 Notify an ON_BUFFER_READ event to listeners.
void onBufferReadTimeout ()
 Notify an ON_BUFFER_READ_TIMEOUT event to listeners.
void onSend (const cdrMemoryStream &data)
 Notify an ON_SEND event to listeners.
void onSenderEmpty ()
 Notify an ON_SENDER_EMPTY event to listeners.
void onSenderError ()
 Notify an ON_SENDER_ERROR event to listeners.
void onSenderTimeout ()
 Notify an ON_SENDER_TIMEOUT event to listeners.

Private Attributes

CdrBufferBasem_buffer
OutPortConnectorm_connector
ConnectorListenersm_listeners
::OpenRTM::OutPortCdr_var m_objref
ConnectorInfo m_profile

Detailed Description

OutPortCorbaCdrProvider class.

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

Since:
0.4.0

Definition at line 61 of file OutPortCorbaCdrProvider.h.


Constructor & Destructor Documentation

Constructor.

Constructor

Definition at line 35 of file OutPortCorbaCdrProvider.cpp.

Destructor.

Destructor

Definition at line 68 of file OutPortCorbaCdrProvider.cpp.


Member Function Documentation

OpenRTM::PortStatus RTC::OutPortCorbaCdrProvider::convertReturn ( BufferStatus::Enum  status,
const cdrMemoryStream &  data 
) [private]

Return codes conversion.

Definition at line 193 of file OutPortCorbaCdrProvider.cpp.

OpenRTM::PortStatus RTC::OutPortCorbaCdrProvider::get ( ::OpenRTM::CdrData_out  data) throw (CORBA::SystemException)

[CORBA interface] Get data from the buffer

Get data from the internal buffer.

Returns:
Data got from the buffer.

Definition at line 148 of file OutPortCorbaCdrProvider.cpp.

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

Reimplemented from RTC::OutPortProvider.

Definition at line 98 of file OutPortCorbaCdrProvider.cpp.

void RTC::OutPortCorbaCdrProvider::onBufferEmpty ( ) [inline, private]

Notify an ON_BUFFER_EMPTY event to listeners.

Definition at line 296 of file OutPortCorbaCdrProvider.h.

void RTC::OutPortCorbaCdrProvider::onBufferRead ( const cdrMemoryStream &  data) [inline, private]

Notify an ON_BUFFER_READ event to listeners.

Parameters:
datacdrMemoryStream

Definition at line 268 of file OutPortCorbaCdrProvider.h.

Notify an ON_BUFFER_READ_TIMEOUT event to listeners.

Definition at line 309 of file OutPortCorbaCdrProvider.h.

void RTC::OutPortCorbaCdrProvider::onSend ( const cdrMemoryStream &  data) [inline, private]

Notify an ON_SEND event to listeners.

Parameters:
datacdrMemoryStream

Definition at line 283 of file OutPortCorbaCdrProvider.h.

void RTC::OutPortCorbaCdrProvider::onSenderEmpty ( ) [inline, private]

Notify an ON_SENDER_EMPTY event to listeners.

Definition at line 322 of file OutPortCorbaCdrProvider.h.

void RTC::OutPortCorbaCdrProvider::onSenderError ( ) [inline, private]

Notify an ON_SENDER_ERROR event to listeners.

Definition at line 348 of file OutPortCorbaCdrProvider.h.

Notify an ON_SENDER_TIMEOUT event to listeners.

Definition at line 335 of file OutPortCorbaCdrProvider.h.

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::OutPortProvider.

Definition at line 109 of file OutPortCorbaCdrProvider.cpp.

set Connector

Setting outside connector's pointer.

OutPort creates OutPortConnector object when it establishes connection between OutPort and InPort, and it calls this function with a pointer to the connector object. Since the OutPort has the ownership of this connector, OutPortProvider should not delete it.

Parameters:
connectorOutPortConnector

Implements RTC::OutPortProvider.

Definition at line 135 of file OutPortCorbaCdrProvider.cpp.

void RTC::OutPortCorbaCdrProvider::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_READ
  • ON_SEND
  • ON_BUFFER_EMPTY
  • ON_BUFFER_READ_TIMEOUT
  • ON_SENDER_EMPTY
  • ON_SENDER_TIMEOUT
  • ON_SENDER_ERROR
Parameters:
infoConnector information
listenersListener objects

Implements RTC::OutPortProvider.

Definition at line 121 of file OutPortCorbaCdrProvider.cpp.


Member Data Documentation

Definition at line 355 of file OutPortCorbaCdrProvider.h.

Definition at line 359 of file OutPortCorbaCdrProvider.h.

Definition at line 357 of file OutPortCorbaCdrProvider.h.

::OpenRTM::OutPortCdr_var RTC::OutPortCorbaCdrProvider::m_objref [private]

Definition at line 356 of file OutPortCorbaCdrProvider.h.

Definition at line 358 of file OutPortCorbaCdrProvider.h.


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


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Sat Jun 8 2019 18:49:14