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

Public Member Functions

void init (coil::Properties &prop)
 Initializing configuration. More...
 
 InPortCorbaCdrProviderMock (void)
 
void publishInterfaceProfile (SDOPackage::NVList &properties)
 Publish InterfaceProfile information. More...
 
::OpenRTM::PortStatus put (const ::OpenRTM::CdrData &data) throw (CORBA::SystemException)
 
RTC::InPortConsumer::ReturnCode put (const cdrMemoryStream &data)
 
void setBuffer (RTC::BufferBase< cdrMemoryStream > *buffer)
 Setting outside buffer's pointer. More...
 
void setConnector (RTC::InPortConnector *connector)
 set Connector More...
 
void setListener (RTC::ConnectorInfo &info, RTC::ConnectorListeners *listeners)
 Set the listener. More...
 
void setLogger (Logger *logger)
 
bool subscribeInterface (const SDOPackage::NVList &properties)
 
void unsubscribeInterface (const SDOPackage::NVList &properties)
 
virtual ~InPortCorbaCdrProviderMock (void)
 
- Public Member Functions inherited from RTC::InPortProvider
DATAPORTSTATUS_ENUM InPortProvider ()
 Constructor. More...
 
virtual bool publishInterface (SDOPackage::NVList &properties)
 Publish interface information. More...
 
virtual ~InPortProvider (void)
 Destructor. More...
 

Private Attributes

Loggerm_logger
 

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 Member Functions inherited from RTC::InPortProvider
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...
 
- Protected Attributes inherited from RTC::InPortProvider
SDOPackage::NVList m_properties
 Properties to hold port profile. More...
 
Logger rtclog
 Logger stream. More...
 

Detailed Description

Definition at line 323 of file InPortPushConnectorTests.cpp.

Constructor & Destructor Documentation

InPortPushConnector::InPortCorbaCdrProviderMock::InPortCorbaCdrProviderMock ( void  )
inline

Definition at line 330 of file InPortPushConnectorTests.cpp.

virtual InPortPushConnector::InPortCorbaCdrProviderMock::~InPortCorbaCdrProviderMock ( void  )
inlinevirtual

Definition at line 334 of file InPortPushConnectorTests.cpp.

Member Function Documentation

void InPortPushConnector::InPortCorbaCdrProviderMock::init ( coil::Properties prop)
inlinevirtual

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

Definition at line 361 of file InPortPushConnectorTests.cpp.

void InPortPushConnector::InPortCorbaCdrProviderMock::publishInterfaceProfile ( SDOPackage::NVList &  properties)
inlinevirtual

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

Reimplemented from RTC::InPortProvider.

Definition at line 380 of file InPortPushConnectorTests.cpp.

::OpenRTM::PortStatus InPortPushConnector::InPortCorbaCdrProviderMock::put ( const ::OpenRTM::CdrData &  data)
throw (CORBA::SystemException
)
inline

Definition at line 352 of file InPortPushConnectorTests.cpp.

RTC::InPortConsumer::ReturnCode InPortPushConnector::InPortCorbaCdrProviderMock::put ( const cdrMemoryStream &  data)
inline

Definition at line 372 of file InPortPushConnectorTests.cpp.

void InPortPushConnector::InPortCorbaCdrProviderMock::setBuffer ( RTC::BufferBase< cdrMemoryStream > *  buffer)
inlinevirtual

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
bufferA pointer to a data buffer to be used by OutPortProvider

Implements RTC::InPortProvider.

Definition at line 341 of file InPortPushConnectorTests.cpp.

void InPortPushConnector::InPortCorbaCdrProviderMock::setConnector ( RTC::InPortConnector connector)
inlinevirtual

set Connector

OutPort creates OutPortConnector object when it establishes connection between OutPort and InPort, and it calls this function with a pointer to the connector object. Since the OutPort has the ownership of this connector, OutPortProvider should not delete it.

Parameters
connectorOutPortConnector

Implements RTC::InPortProvider.

Definition at line 415 of file InPortPushConnectorTests.cpp.

void InPortPushConnector::InPortCorbaCdrProviderMock::setListener ( RTC::ConnectorInfo info,
RTC::ConnectorListeners listeners 
)
inlinevirtual

Set the listener.

OutPort provides callback functionality that calls specific listener objects according to the events in the data publishing process. For details, see documentation of ConnectorDataListener class and ConnectorListener class in ConnectorListener.h. In the sub-classes of OutPortProvider, the given listeners should be called in the proper timing. However, it is not necessary to call all the listeners.

Parameters
infoConnector information
listenersListener objects

Implements RTC::InPortProvider.

Definition at line 412 of file InPortPushConnectorTests.cpp.

void InPortPushConnector::InPortCorbaCdrProviderMock::setLogger ( Logger logger)
inline

Definition at line 407 of file InPortPushConnectorTests.cpp.

bool InPortPushConnector::InPortCorbaCdrProviderMock::subscribeInterface ( const SDOPackage::NVList &  properties)
inline

Definition at line 389 of file InPortPushConnectorTests.cpp.

void InPortPushConnector::InPortCorbaCdrProviderMock::unsubscribeInterface ( const SDOPackage::NVList &  properties)
inline

Definition at line 399 of file InPortPushConnectorTests.cpp.

Member Data Documentation

Logger* InPortPushConnector::InPortCorbaCdrProviderMock::m_logger
private

Definition at line 420 of file InPortPushConnectorTests.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:01