InPortCorbaCdrConsumer class. More...
#include <InPortCorbaCdrConsumer.h>
Public Member Functions | |
virtual void | init (coil::Properties &prop) |
Initializing configuration. More... | |
DATAPORTSTATUS_ENUM | InPortCorbaCdrConsumer (void) |
Constructor. More... | |
virtual void | publishInterfaceProfile (SDOPackage::NVList &properties) |
Publish InterfaceProfile information. More... | |
virtual ReturnCode | put (const cdrMemoryStream &data) |
Send data to the destination port. More... | |
virtual bool | subscribeInterface (const SDOPackage::NVList &properties) |
Subscribe to the data sending notification. More... | |
virtual void | unsubscribeInterface (const SDOPackage::NVList &properties) |
Unsubscribe the data send notification. More... | |
virtual | ~InPortCorbaCdrConsumer (void) |
Destructor. More... | |
Public Member Functions inherited from RTC::InPortConsumer | |
virtual DATAPORTSTATUS_ENUM | ~InPortConsumer (void) |
Destructor. More... | |
Public Member Functions inherited from RTC::CorbaConsumer< ::OpenRTM::InPortCdr > | |
typename ::OpenRTM::InPortCdr ::_ptr_type | _ptr () |
Get Object reference narrowed as ObjectType. More... | |
CorbaConsumer () | |
Consructor. More... | |
CorbaConsumer (const CorbaConsumer &x) | |
Copy constructor. More... | |
typename ::OpenRTM::InPortCdr ::_ptr_type | operator-> () |
Get Object reference narrowed as ObjectType. More... | |
CorbaConsumer & | operator= (const CorbaConsumer &x) |
Assignment operator. More... | |
virtual void | releaseObject () |
Clear CORBA object setting. More... | |
virtual bool | setObject (CORBA::Object_ptr obj) |
Set Object. More... | |
void | swap (CorbaConsumer &x) |
virtual | ~CorbaConsumer (void) |
Virtual destructor. More... | |
Public Member Functions inherited from RTC::CorbaConsumerBase | |
CorbaConsumerBase () | |
Consructor. More... | |
CorbaConsumerBase (const CorbaConsumerBase &x) | |
Copy Consructor. More... | |
virtual CORBA::Object_ptr | getObject () |
Get CORBA Object. More... | |
CorbaConsumerBase & | operator= (const CorbaConsumerBase &x) |
Assignment operator. More... | |
void | swap (CorbaConsumerBase &x) |
swap function More... | |
virtual | ~CorbaConsumerBase (void) |
Virtual destructor. More... | |
Private Member Functions | |
InPortConsumer::ReturnCode | convertReturnCode (OpenRTM::PortStatus ret) |
Return codes conversion. More... | |
bool | subscribeFromIor (const SDOPackage::NVList &properties) |
Getting object reference fromn IOR string. More... | |
bool | subscribeFromRef (const SDOPackage::NVList &properties) |
Getting object reference fromn Any directry. More... | |
bool | unsubscribeFromIor (const SDOPackage::NVList &properties) |
ubsubscribing (IOR version) More... | |
bool | unsubscribeFromRef (const SDOPackage::NVList &properties) |
ubsubscribing (Object reference version) More... | |
Private Attributes | |
coil::Properties | m_properties |
Logger | rtclog |
Additional Inherited Members | |
Public Types inherited from RTC::DataPortStatus | |
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 Public Member Functions inherited from RTC::DataPortStatus | |
static const char * | toString (DataPortStatus::Enum status) |
Convert DataPortStatus into the string. More... | |
Protected Attributes inherited from RTC::CorbaConsumer< ::OpenRTM::InPortCdr > | |
typename ::OpenRTM::InPortCdr ::_var_type | m_var |
CORBA object which has been set. More... | |
Protected Attributes inherited from RTC::CorbaConsumerBase | |
CORBA::Object_var | m_objref |
CORBA object which is set. More... | |
InPortCorbaCdrConsumer class.
The InPort consumer class which uses the OpenRTM::InPortCdr interface in CORBA for data transfer and realizes a push-type dataflow.
Definition at line 57 of file InPortCorbaCdrConsumer.h.
RTC::InPortCorbaCdrConsumer::InPortCorbaCdrConsumer | ( | void | ) |
Constructor.
Constructor
buffer | The buffer object that is attached to this Consumer |
buffer | The buffer object that is attached to this Consumer |
Definition at line 33 of file InPortCorbaCdrConsumer.cpp.
|
virtual |
|
private |
Return codes conversion.
Definition at line 314 of file InPortCorbaCdrConsumer.cpp.
|
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::InPortConsumer.
Definition at line 57 of file InPortCorbaCdrConsumer.cpp.
|
virtual |
Publish InterfaceProfile information.
Publish interfaceProfile information. Check the dataport.interface_type value of the NameValue object specified by an argument in property information and get information only when the interface type of the specified port is matched.
properties | Properties to get InterfaceProfile information |
Implements RTC::InPortConsumer.
Definition at line 106 of file InPortCorbaCdrConsumer.cpp.
|
virtual |
Send data to the destination port.
Write data into the buffer.
Pure virtual function to send data to the destination port.
This function might the following return codes
Implements RTC::InPortConsumer.
Reimplemented in PublisherNew::InPortCorbaCdrConsumerMock, PublisherPeriodic::InPortCorbaCdrConsumerMock, and PublisherFlush::InPortCorbaCdrConsumerMock.
Definition at line 70 of file InPortCorbaCdrConsumer.cpp.
|
private |
Getting object reference fromn IOR string.
Definition at line 161 of file InPortCorbaCdrConsumer.cpp.
|
private |
Getting object reference fromn Any directry.
Definition at line 206 of file InPortCorbaCdrConsumer.cpp.
|
virtual |
Subscribe to the data sending notification.
Subscribe to the data sending notification based on specified property information.
properties | Information for subscription |
Implements RTC::InPortConsumer.
Definition at line 119 of file InPortCorbaCdrConsumer.cpp.
|
private |
ubsubscribing (IOR version)
Definition at line 247 of file InPortCorbaCdrConsumer.cpp.
|
private |
ubsubscribing (Object reference version)
Definition at line 286 of file InPortCorbaCdrConsumer.cpp.
|
virtual |
Unsubscribe the data send notification.
Unsubscribe the data send notification.
properties | Information for unsubscription |
Implements RTC::InPortConsumer.
Definition at line 141 of file InPortCorbaCdrConsumer.cpp.
|
private |
Definition at line 300 of file InPortCorbaCdrConsumer.h.
|
mutableprivate |
Definition at line 299 of file InPortCorbaCdrConsumer.h.