#include <OutPortPullConnector.h>

Public Member Functions | |
| DATAPORTSTATUS_ENUM | OutPortPullConnector (ConnectorInfo info, OutPortProvider *provider, ConnectorListeners &listeners, CdrBufferBase *buffer=0) |
| virtual | ~OutPortPullConnector () |
| Destructor. | |
| virtual ReturnCode | write (const cdrMemoryStream &data) |
| Writing data. | |
| virtual ReturnCode | disconnect () |
| disconnect | |
| virtual CdrBufferBase * | getBuffer () |
| Getting Buffer. | |
| virtual void | activate () |
| Connector activation. | |
| virtual void | deactivate () |
| Connector deactivation. | |
| CdrBufferBase * | createBuffer (ConnectorInfo &info) |
| create buffer | |
| void | onConnect () |
| Invoke callback when connection is established. | |
| void | onDisconnect () |
| Invoke callback when connection is destroied. | |
Protected Attributes | |
| OutPortProvider * | m_provider |
| the pointer to the OutPortProvider | |
| ConnectorListeners & | m_listeners |
| A reference to a ConnectorListener. | |
| CdrBufferBase * | m_buffer |
| the pointer to the buffer | |
A connector class for pull type dataflow of OutPort
| DATAPORTSTATUS_ENUM RTC::OutPortPullConnector::OutPortPullConnector | ( | ConnectorInfo | info, | |
| OutPortProvider * | provider, | |||
| ConnectorListeners & | listeners, | |||
| CdrBufferBase * | buffer = 0 | |||
| ) |
| virtual RTC::OutPortPullConnector::~OutPortPullConnector | ( | ) | [virtual] |
Destructor.
This operation calls disconnect(), which destructs and deletes the consumer, the publisher and the buffer.
| virtual ReturnCode RTC::OutPortPullConnector::write | ( | const cdrMemoryStream & | data | ) | [virtual] |
Writing data.
This operation writes data into publisher and then the data will be transferred to correspondent InPort.
Implements RTC::OutPortConnector.
| virtual ReturnCode RTC::OutPortPullConnector::disconnect | ( | ) | [virtual] |
disconnect
This operation destruct and delete the consumer, the publisher and the buffer.
Implements RTC::OutPortConnector.
| virtual CdrBufferBase* RTC::OutPortPullConnector::getBuffer | ( | ) | [virtual] |
| virtual void RTC::OutPortPullConnector::activate | ( | ) | [inline, virtual] |
| virtual void RTC::OutPortPullConnector::deactivate | ( | ) | [inline, virtual] |
| CdrBufferBase* RTC::OutPortPullConnector::createBuffer | ( | ConnectorInfo & | info | ) |
create buffer
| void RTC::OutPortPullConnector::onConnect | ( | ) |
Invoke callback when connection is established.
| void RTC::OutPortPullConnector::onDisconnect | ( | ) |
Invoke callback when connection is destroied.
OutPortProvider* RTC::OutPortPullConnector::m_provider [protected] |
the pointer to the OutPortProvider
ConnectorListeners& RTC::OutPortPullConnector::m_listeners [protected] |
A reference to a ConnectorListener.
CdrBufferBase* RTC::OutPortPullConnector::m_buffer [protected] |
the pointer to the buffer
1.5.5