InPortCorbaCdrProvider class.
More...
#include <InPortCorbaCdrProvider.h>
|
enum | Enum {
PORT_OK = 0,
PORT_ERROR,
BUFFER_ERROR,
BUFFER_FULL,
BUFFER_EMPTY,
BUFFER_TIMEOUT,
SEND_FULL,
SEND_TIMEOUT,
RECV_EMPTY,
RECV_TIMEOUT,
INVALID_ARGS,
PRECONDITION_NOT_MET,
CONNECTION_LOST,
UNKNOWN_ERROR
} |
| DataPortStatus return codes. More...
|
|
static const char * | toString (DataPortStatus::Enum status) |
| Convert DataPortStatus into the string. More...
|
|
void | setDataFlowType (const char *dataflow_type) |
| Set the dataflow type. More...
|
|
void | setInterfaceType (const char *interface_type) |
| Set the interface type. More...
|
|
void | setSubscriptionType (const char *subs_type) |
| Set the subscription type. More...
|
|
SDOPackage::NVList | m_properties |
| Properties to hold port profile. More...
|
|
Logger | rtclog |
| Logger stream. More...
|
|
InPortCorbaCdrProvider class.
The InPort provider class which uses the OpenRTM::InPortCdr interface in CORBA for data transfer and realizes a push-type dataflow.
- Since
- 0.4.0
Definition at line 61 of file InPortCorbaCdrProvider.h.
◆ InPortCorbaCdrProvider()
RTC::InPortCorbaCdrProvider::InPortCorbaCdrProvider |
( |
void |
| ) |
|
◆ ~InPortCorbaCdrProvider()
RTC::InPortCorbaCdrProvider::~InPortCorbaCdrProvider |
( |
void |
| ) |
|
|
virtual |
◆ convertReturn()
OpenRTM::PortStatus RTC::InPortCorbaCdrProvider::convertReturn |
( |
BufferStatus::Enum |
status, |
|
|
const cdrMemoryStream & |
data |
|
) |
| |
|
private |
◆ init()
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::InPortProvider.
Definition at line 85 of file InPortCorbaCdrProvider.cpp.
◆ onBufferFull()
void RTC::InPortCorbaCdrProvider::onBufferFull |
( |
const cdrMemoryStream & |
data | ) |
|
|
inlineprivate |
◆ onBufferWrite()
void RTC::InPortCorbaCdrProvider::onBufferWrite |
( |
const cdrMemoryStream & |
data | ) |
|
|
inlineprivate |
◆ onBufferWriteOverwrite()
void RTC::InPortCorbaCdrProvider::onBufferWriteOverwrite |
( |
const cdrMemoryStream & |
data | ) |
|
|
inlineprivate |
◆ onBufferWriteTimeout()
void RTC::InPortCorbaCdrProvider::onBufferWriteTimeout |
( |
const cdrMemoryStream & |
data | ) |
|
|
inlineprivate |
◆ onReceived()
void RTC::InPortCorbaCdrProvider::onReceived |
( |
const cdrMemoryStream & |
data | ) |
|
|
inlineprivate |
◆ onReceiverError()
void RTC::InPortCorbaCdrProvider::onReceiverError |
( |
const cdrMemoryStream & |
data | ) |
|
|
inlineprivate |
◆ onReceiverFull()
void RTC::InPortCorbaCdrProvider::onReceiverFull |
( |
const cdrMemoryStream & |
data | ) |
|
|
inlineprivate |
◆ onReceiverTimeout()
void RTC::InPortCorbaCdrProvider::onReceiverTimeout |
( |
const cdrMemoryStream & |
data | ) |
|
|
inlineprivate |
◆ put()
OpenRTM::PortStatus RTC::InPortCorbaCdrProvider::put |
( |
const ::OpenRTM::CdrData & |
data | ) |
|
throw | ( | CORBA::SystemException |
| ) | | |
[CORBA interface] Write data into the buffer
Write data into the buffer.
Write data into the specified buffer.
- Parameters
-
data | The target data for writing |
Definition at line 136 of file InPortCorbaCdrProvider.cpp.
◆ setBuffer()
void RTC::InPortCorbaCdrProvider::setBuffer |
( |
BufferBase< cdrMemoryStream > * |
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
-
Implements RTC::InPortProvider.
Definition at line 97 of file InPortCorbaCdrProvider.cpp.
◆ setConnector()
void RTC::InPortCorbaCdrProvider::setConnector |
( |
InPortConnector * |
connector | ) |
|
|
virtual |
◆ setListener()
◆ m_buffer
◆ m_connector
◆ m_listeners
◆ m_objref
::OpenRTM::InPortCdr_var RTC::InPortCorbaCdrProvider::m_objref |
|
private |
◆ m_profile
The documentation for this class was generated from the following files: