#include <OutPortCorbaCdrConsumer.h>
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 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. |
This is an implementation class of the output Consumer that uses CORBA for means of communication.
DataType | Data type for this port |
DATAPORTSTATUS_ENUM RTC::OutPortCorbaCdrConsumer::OutPortCorbaCdrConsumer | ( | ) |
Constructor.
Constructor
buffer | Buffer that is attached to this port |
virtual RTC::OutPortCorbaCdrConsumer::~OutPortCorbaCdrConsumer | ( | void | ) | [virtual] |
Destructor.
Destructor
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.
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.
buffer | A pointer to a data buffer to be used by OutPortProvider |
Implements RTC::OutPortConsumer.
virtual ReturnCode RTC::OutPortCorbaCdrConsumer::get | ( | cdrMemoryStream & | data | ) | [virtual] |
Read data.
Read set data
data | Object to receive the read data |
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
properties | Subscription information |
Implements RTC::OutPortConsumer.
virtual void RTC::OutPortCorbaCdrConsumer::unsubscribeInterface | ( | const SDOPackage::NVList & | properties | ) | [virtual] |
Unsubscribe the data receive notification.
Unsubscribe the data receive notification.
properties | Unsubscription information |
Implements RTC::OutPortConsumer.