OutPortCorbaCdrProvider class. More...
#include <OutPortCorbaCdrProvider.h>
Public Member Functions | |
OutPortCorbaCdrProvider (void) | |
Constructor. | |
virtual | ~OutPortCorbaCdrProvider (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 void | setConnector (OutPortConnector *connector) |
set Connector | |
virtual ::OpenRTM::PortStatus | get (::OpenRTM::CdrData_out data) throw (CORBA::SystemException) |
[CORBA interface] Get data from the buffer |
OutPortCorbaCdrProvider class.
The OutPort provider class which uses the OpenRTM::OutPortCdr interface in CORBA for data transfer and realizes a pull-type dataflow.
RTC::OutPortCorbaCdrProvider::OutPortCorbaCdrProvider | ( | void | ) |
Constructor.
Constructor
virtual RTC::OutPortCorbaCdrProvider::~OutPortCorbaCdrProvider | ( | void | ) | [virtual] |
Destructor.
Destructor
virtual ::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.
virtual void RTC::OutPortCorbaCdrProvider::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.
prop | Configuration information |
Reimplemented from RTC::OutPortProvider.
virtual void RTC::OutPortCorbaCdrProvider::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.
buffer | A pointer to a data buffer to be used by OutPortProvider |
Implements RTC::OutPortProvider.
virtual void RTC::OutPortCorbaCdrProvider::setConnector | ( | OutPortConnector * | connector | ) | [virtual] |
set Connector
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.
connector | OutPortConnector |
Implements RTC::OutPortProvider.
virtual 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.
info | Connector information | |
listeners | Listener objects |
Implements RTC::OutPortProvider.