OpenRTM-aist 2.0.2
Loading...
Searching...
No Matches
RTC::InPortCorbaCdrUDPConsumer Class Reference

InPortCorbaCdrUDPConsumer class. More...

#include <InPortCorbaCdrUDPConsumer.h>

Inheritance diagram for RTC::InPortCorbaCdrUDPConsumer:
Collaboration diagram for RTC::InPortCorbaCdrUDPConsumer:

Public Member Functions

 InPortCorbaCdrUDPConsumer (void)
 Constructor.
 
 ~InPortCorbaCdrUDPConsumer (void) override
 Destructor.
 
void init (coil::Properties &prop) override
 Initializing configuration.
 
DataPortStatus put (ByteData &data) override
 Send data to the destination port.
 
void publishInterfaceProfile (SDOPackage::NVList &properties) override
 Publish InterfaceProfile information.
 
bool subscribeInterface (const SDOPackage::NVList &properties) override
 Subscribe to the data sending notification.
 
void unsubscribeInterface (const SDOPackage::NVList &properties) override
 Unsubscribe the data send notification.
 
- Public Member Functions inherited from RTC::InPortConsumer
virtual ~InPortConsumer ()=default
 Destructor.
 
- Public Member Functions inherited from RTC::CorbaConsumer< ::OpenRTM::InPortCdrUDP >
 CorbaConsumer ()
 Consructor.
 
 CorbaConsumer (const CorbaConsumer &x)
 Copy constructor.
 
CorbaConsumeroperator= (const CorbaConsumer &x)
 Assignment operator.
 
void swap (CorbaConsumer &x)
 
 ~CorbaConsumer () override
 Virtual destructor.
 
bool setObject (CORBA::Object_ptr obj) override
 Set Object.
 
typename ::OpenRTM::InPortCdrUDP::_ptr_type _ptr ()
 Get Object reference narrowed as ObjectType.
 
typename ::OpenRTM::InPortCdrUDP::_ptr_type operator-> ()
 Get Object reference narrowed as ObjectType.
 
void releaseObject () override
 Clear CORBA object setting.
 
- Public Member Functions inherited from RTC::CorbaConsumerBase
 CorbaConsumerBase ()=default
 Consructor.
 
 CorbaConsumerBase (const CorbaConsumerBase &x)
 Copy Consructor.
 
CorbaConsumerBaseoperator= (const CorbaConsumerBase &x)
 Assignment operator.
 
void swap (CorbaConsumerBase &x)
 swap function
 
virtual ~CorbaConsumerBase ()
 Virtual destructor.
 
virtual CORBA::Object_ptr getObject ()
 Get CORBA Object.
 

Additional Inherited Members

- Protected Attributes inherited from RTC::CorbaConsumer< ::OpenRTM::InPortCdrUDP >
typename ::OpenRTM::InPortCdrUDP::_var_type m_var
 CORBA object which has been set. .
 
- Protected Attributes inherited from RTC::CorbaConsumerBase
CORBA::Object_var m_objref
 CORBA object which is set. .
 

Detailed Description

InPortCorbaCdrUDPConsumer class.

The InPort consumer class which uses the OpenRTM::InPortCdr interface in CORBA for data transfer and realizes a push-type dataflow.

Since
2.0.0

Constructor & Destructor Documentation

◆ InPortCorbaCdrUDPConsumer()

RTC::InPortCorbaCdrUDPConsumer::InPortCorbaCdrUDPConsumer ( void )

Constructor.

Constructor

Parameters
bufferThe buffer object that is attached to this Consumer

◆ ~InPortCorbaCdrUDPConsumer()

RTC::InPortCorbaCdrUDPConsumer::~InPortCorbaCdrUDPConsumer ( void )
override

Destructor.

Destructor

Member Function Documentation

◆ init()

void RTC::InPortCorbaCdrUDPConsumer::init ( coil::Properties & prop)
overridevirtual

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

Implements RTC::InPortConsumer.

◆ publishInterfaceProfile()

void RTC::InPortCorbaCdrUDPConsumer::publishInterfaceProfile ( SDOPackage::NVList & properties)
overridevirtual

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.

Parameters
propertiesProperties to get InterfaceProfile information

Implements RTC::InPortConsumer.

◆ put()

DataPortStatus RTC::InPortCorbaCdrUDPConsumer::put ( ByteData & data)
overridevirtual

Send data to the destination port.

Pure virtual function to send data to the destination port.

This function might the following return codes

  • PORT_OK: Normal return
  • PORT_ERROR: Error occurred in data transfer process
  • SEND_FULL: Buffer full although OutPort tried to send data
  • SEND_TIMEOUT: Timeout although OutPort tried to send data
  • UNKNOWN_ERROR: Unknown error

Implements RTC::InPortConsumer.

◆ subscribeInterface()

bool RTC::InPortCorbaCdrUDPConsumer::subscribeInterface ( const SDOPackage::NVList & properties)
overridevirtual

Subscribe to the data sending notification.

Subscribe to the data sending notification based on specified property information.

Parameters
propertiesInformation for subscription
Returns
Subscription result (Successful:true, Failed:false)

Implements RTC::InPortConsumer.

◆ unsubscribeInterface()

void RTC::InPortCorbaCdrUDPConsumer::unsubscribeInterface ( const SDOPackage::NVList & properties)
overridevirtual

Unsubscribe the data send notification.

Unsubscribe the data send notification.

Parameters
propertiesInformation for unsubscription

Implements RTC::InPortConsumer.


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