Public Member Functions | |
void | init (coil::Properties &prop) |
Initializing configuration. | |
InPortCorbaCdrProviderMock (void) | |
void | publishInterfaceProfile (SDOPackage::NVList &properties) |
Publish InterfaceProfile information. | |
::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. | |
void | setConnector (RTC::InPortConnector *connector) |
set Connector | |
void | setListener (RTC::ConnectorInfo &info, RTC::ConnectorListeners *listeners) |
Set the listener. | |
void | setLogger (Logger *logger) |
bool | subscribeInterface (const SDOPackage::NVList &properties) |
void | unsubscribeInterface (const SDOPackage::NVList &properties) |
virtual | ~InPortCorbaCdrProviderMock (void) |
Private Attributes | |
Logger * | m_logger |
::OpenRTM::InPortCdr_var | m_objref |
Definition at line 201 of file InPortTests.cpp.
InPort::InPortCorbaCdrProviderMock::InPortCorbaCdrProviderMock | ( | void | ) | [inline] |
Definition at line 208 of file InPortTests.cpp.
virtual InPort::InPortCorbaCdrProviderMock::~InPortCorbaCdrProviderMock | ( | void | ) | [inline, virtual] |
Definition at line 236 of file InPortTests.cpp.
void InPort::InPortCorbaCdrProviderMock::init | ( | coil::Properties & | prop | ) | [inline, 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::InPortProvider.
Definition at line 277 of file InPortTests.cpp.
void InPort::InPortCorbaCdrProviderMock::publishInterfaceProfile | ( | SDOPackage::NVList & | properties | ) | [inline, 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 |
Reimplemented from RTC::InPortProvider.
Definition at line 296 of file InPortTests.cpp.
::OpenRTM::PortStatus InPort::InPortCorbaCdrProviderMock::put | ( | const ::OpenRTM::CdrData & | data | ) | throw (CORBA::SystemException) [inline] |
Definition at line 268 of file InPortTests.cpp.
RTC::InPortConsumer::ReturnCode InPort::InPortCorbaCdrProviderMock::put | ( | const cdrMemoryStream & | data | ) | [inline] |
Definition at line 288 of file InPortTests.cpp.
void InPort::InPortCorbaCdrProviderMock::setBuffer | ( | RTC::BufferBase< cdrMemoryStream > * | buffer | ) | [inline, 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.
buffer | A pointer to a data buffer to be used by OutPortProvider |
Implements RTC::InPortProvider.
Definition at line 246 of file InPortTests.cpp.
void InPort::InPortCorbaCdrProviderMock::setConnector | ( | RTC::InPortConnector * | connector | ) | [inline, virtual] |
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.
connector | OutPortConnector |
Implements RTC::InPortProvider.
Definition at line 260 of file InPortTests.cpp.
void InPort::InPortCorbaCdrProviderMock::setListener | ( | RTC::ConnectorInfo & | info, |
RTC::ConnectorListeners * | listeners | ||
) | [inline, virtual] |
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.
info | Connector information |
listeners | Listener objects |
Implements RTC::InPortProvider.
Definition at line 254 of file InPortTests.cpp.
void InPort::InPortCorbaCdrProviderMock::setLogger | ( | Logger * | logger | ) | [inline] |
Definition at line 333 of file InPortTests.cpp.
bool InPort::InPortCorbaCdrProviderMock::subscribeInterface | ( | const SDOPackage::NVList & | properties | ) | [inline] |
Definition at line 305 of file InPortTests.cpp.
void InPort::InPortCorbaCdrProviderMock::unsubscribeInterface | ( | const SDOPackage::NVList & | properties | ) | [inline] |
Definition at line 314 of file InPortTests.cpp.
Definition at line 338 of file InPortTests.cpp.
::OpenRTM::InPortCdr_var InPort::InPortCorbaCdrProviderMock::m_objref [private] |
Definition at line 339 of file InPortTests.cpp.