Public Member Functions | Private Attributes | List of all members
PublisherNew::InPortCorbaCdrConsumerMock Class Reference
Inheritance diagram for PublisherNew::InPortCorbaCdrConsumerMock:
Inheritance graph
[legend]

Public Member Functions

cdrMemoryStream get_m_put_data (void)
 
int get_m_put_data_len (void)
 
 InPortCorbaCdrConsumerMock (void)
 
virtual ReturnCode put (const cdrMemoryStream &data)
 Send data to the destination port. More...
 
void set_m_mode (int mode)
 
virtual ~InPortCorbaCdrConsumerMock ()
 
- Public Member Functions inherited from RTC::InPortCorbaCdrConsumer
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 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...
 
CorbaConsumeroperator= (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...
 
CorbaConsumerBaseoperator= (const CorbaConsumerBase &x)
 Assignment operator. More...
 
void swap (CorbaConsumerBase &x)
 swap function More...
 
virtual ~CorbaConsumerBase (void)
 Virtual destructor. More...
 

Private Attributes

RTC::CdrBufferBasem_buffer
 
::OpenRTM::CdrData m_put_data
 
int m_test_mode
 

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...
 

Detailed Description

Definition at line 103 of file PublisherNewTests.cpp.

Constructor & Destructor Documentation

PublisherNew::InPortCorbaCdrConsumerMock::InPortCorbaCdrConsumerMock ( void  )
inline

Definition at line 111 of file PublisherNewTests.cpp.

virtual PublisherNew::InPortCorbaCdrConsumerMock::~InPortCorbaCdrConsumerMock ( )
inlinevirtual

Definition at line 120 of file PublisherNewTests.cpp.

Member Function Documentation

cdrMemoryStream PublisherNew::InPortCorbaCdrConsumerMock::get_m_put_data ( void  )
inline

Definition at line 195 of file PublisherNewTests.cpp.

int PublisherNew::InPortCorbaCdrConsumerMock::get_m_put_data_len ( void  )
inline

Definition at line 206 of file PublisherNewTests.cpp.

virtual ReturnCode PublisherNew::InPortCorbaCdrConsumerMock::put ( const cdrMemoryStream &  data)
inlinevirtual

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

  • 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

Reimplemented from RTC::InPortCorbaCdrConsumer.

Definition at line 128 of file PublisherNewTests.cpp.

void PublisherNew::InPortCorbaCdrConsumerMock::set_m_mode ( int  mode)
inline

Definition at line 218 of file PublisherNewTests.cpp.

Member Data Documentation

RTC::CdrBufferBase* PublisherNew::InPortCorbaCdrConsumerMock::m_buffer
private

Definition at line 223 of file PublisherNewTests.cpp.

::OpenRTM::CdrData PublisherNew::InPortCorbaCdrConsumerMock::m_put_data
private

Definition at line 224 of file PublisherNewTests.cpp.

int PublisherNew::InPortCorbaCdrConsumerMock::m_test_mode
private

Definition at line 225 of file PublisherNewTests.cpp.


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


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Mon Jun 10 2019 14:08:02