OpenRTM-aist-Python 2.0.2
OpenRTM_aist.OutPortCorbaCdrConsumer.OutPortCorbaCdrConsumer Class Reference

More...

Inheritance diagram for OpenRTM_aist.OutPortCorbaCdrConsumer.OutPortCorbaCdrConsumer:
OpenRTM_aist.OutPortConsumer.OutPortConsumer OpenRTM_aist.CorbaConsumer.CorbaConsumer OpenRTM_aist.DataPortStatus.DataPortStatus OpenRTM_aist.CorbaConsumer.CorbaConsumerBase OpenRTM_aist.OutPortCSPConsumer.OutPortCSPConsumer OpenRTM_aist.OutPortSHMConsumer.OutPortSHMConsumer

Public Member Functions

 __init__ (self)
 
 __del__ (self, CorbaConsumer=OpenRTM_aist.CorbaConsumer)
 
 init (self, prop)
 
 setBuffer (self, buffer)
 
 get (self)
 
 subscribeInterface (self, properties)
 
 unsubscribeInterface (self, properties)
 
 convertReturn (self, status, data)
 
 onBufferWrite (self, data)
 Connector data listener functions.
 
 onSenderEmpty (self)
 Connector listener functions.
 
- Public Member Functions inherited from OpenRTM_aist.DataPortStatus.DataPortStatus
 toString (status)
 
- Public Member Functions inherited from OpenRTM_aist.CorbaConsumer.CorbaConsumer
 equal (self, consumer)
 
 setObject (self, obj)
 
 releaseObject (self)
 
- Public Member Functions inherited from OpenRTM_aist.CorbaConsumer.CorbaConsumerBase
 getObject (self)
 

Additional Inherited Members

- Static Public Attributes inherited from OpenRTM_aist.DataPortStatus.DataPortStatus
int PORT_OK = 0
 
- Protected Member Functions inherited from OpenRTM_aist.CorbaConsumer.CorbaConsumer
 _ptr (self, get_ref=False)
 

Detailed Description

OutPortCorbaCdrConsumer class

This is an implementation class of the output Consumer that uses CORBA for means of communication.

Parameters
DataTypeData type for this port
Since
1.0.0

Constructor & Destructor Documentation

◆ __init__()

OpenRTM_aist.OutPortCorbaCdrConsumer.OutPortCorbaCdrConsumer.__init__ ( self)

Constructor

Constructor

Parameters
bufferBuffer that is attached to this port

Reimplemented from OpenRTM_aist.DataPortStatus.DataPortStatus.

Reimplemented in OpenRTM_aist.OutPortCSPConsumer.OutPortCSPConsumer, and OpenRTM_aist.OutPortSHMConsumer.OutPortSHMConsumer.

◆ __del__()

OpenRTM_aist.OutPortCorbaCdrConsumer.OutPortCorbaCdrConsumer.__del__ ( self,
CorbaConsumer = OpenRTM_aist.CorbaConsumer )

Member Function Documentation

◆ convertReturn()

OpenRTM_aist.OutPortCorbaCdrConsumer.OutPortCorbaCdrConsumer.convertReturn ( self,
status,
data )

Return codes conversion

ReturnCode convertReturn(.OpenRTM.PortStatus status, const cdrMemoryStream& data)

◆ get()

OpenRTM_aist.OutPortCorbaCdrConsumer.OutPortCorbaCdrConsumer.get ( self)

Read data

Read set data

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

virtual ReturnCode get(cdrMemoryStream& data);

Reimplemented from OpenRTM_aist.OutPortConsumer.OutPortConsumer.

Reimplemented in OpenRTM_aist.OutPortCSPConsumer.OutPortCSPConsumer, and OpenRTM_aist.OutPortSHMConsumer.OutPortSHMConsumer.

◆ init()

OpenRTM_aist.OutPortCorbaCdrConsumer.OutPortCorbaCdrConsumer.init ( self,
prop )

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

virtual void init(coil.Properties& prop);

Reimplemented in OpenRTM_aist.OutPortCSPConsumer.OutPortCSPConsumer, and OpenRTM_aist.OutPortSHMConsumer.OutPortSHMConsumer.

◆ onBufferWrite()

OpenRTM_aist.OutPortCorbaCdrConsumer.OutPortCorbaCdrConsumer.onBufferWrite ( self,
data )

Connector data listener functions.

inline void onBufferWrite(const cdrMemoryStream& data)

◆ onSenderEmpty()

OpenRTM_aist.OutPortCorbaCdrConsumer.OutPortCorbaCdrConsumer.onSenderEmpty ( self)

Connector listener functions.

inline void onSenderEmpty()

◆ setBuffer()

OpenRTM_aist.OutPortCorbaCdrConsumer.OutPortCorbaCdrConsumer.setBuffer ( self,
buffer )

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

virtual void setBuffer(CdrBufferBase* buffer);

Reimplemented in OpenRTM_aist.OutPortCSPConsumer.OutPortCSPConsumer.

◆ subscribeInterface()

OpenRTM_aist.OutPortCorbaCdrConsumer.OutPortCorbaCdrConsumer.subscribeInterface ( self,
properties )

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)

virtual bool subscribeInterface(const SDOPackage.NVList& properties);

◆ unsubscribeInterface()

OpenRTM_aist.OutPortCorbaCdrConsumer.OutPortCorbaCdrConsumer.unsubscribeInterface ( self,
properties )

Unsubscribe the data receive notification

Unsubscribe the data receive notification.

Parameters
propertiesUnsubscription information

virtual void unsubscribeInterface(const SDOPackage.NVList& properties);


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