#include <InPortPushConnector.h>
Public Member Functions | |
DATAPORTSTATUS_ENUM | InPortPushConnector (ConnectorInfo info, InPortProvider *provider, ConnectorListeners &listeners, CdrBufferBase *buffer=0) |
Constructor. | |
virtual | ~InPortPushConnector () |
Destructor. | |
virtual ReturnCode | read (cdrMemoryStream &data) |
Reading data. | |
virtual ReturnCode | disconnect () |
disconnect | |
virtual void | activate () |
Connector activation. | |
virtual void | deactivate () |
Connector deactivation. | |
Protected Member Functions | |
virtual CdrBufferBase * | createBuffer (ConnectorInfo &info) |
create buffer | |
void | onConnect () |
Invoke callback when connection is established. | |
void | onDisconnect () |
Invoke callback when connection is destroied. |
DATAPORTSTATUS_ENUM RTC::InPortPushConnector::InPortPushConnector | ( | ConnectorInfo | info, | |
InPortProvider * | provider, | |||
ConnectorListeners & | listeners, | |||
CdrBufferBase * | buffer = 0 | |||
) |
Constructor.
InPortPushConnector assume ownership of InPortConsumer. Therefore, InPortConsumer will be deleted when InPortPushConnector is destructed.
info | ConnectorInfo | |
consumer | InPortConsumer |
virtual RTC::InPortPushConnector::~InPortPushConnector | ( | ) | [virtual] |
Destructor.
This operation calls disconnect(), which destructs and deletes the consumer, the publisher and the buffer.
virtual ReturnCode RTC::InPortPushConnector::read | ( | cdrMemoryStream & | data | ) | [virtual] |
virtual ReturnCode RTC::InPortPushConnector::disconnect | ( | ) | [virtual] |
disconnect
This operation destruct and delete the consumer, the publisher and the buffer.
Implements RTC::InPortConnector.
virtual void RTC::InPortPushConnector::activate | ( | ) | [inline, virtual] |
virtual void RTC::InPortPushConnector::deactivate | ( | ) | [inline, virtual] |
virtual CdrBufferBase* RTC::InPortPushConnector::createBuffer | ( | ConnectorInfo & | info | ) | [protected, virtual] |
create buffer
void RTC::InPortPushConnector::onConnect | ( | ) | [protected] |
Invoke callback when connection is established.
void RTC::InPortPushConnector::onDisconnect | ( | ) | [protected] |
Invoke callback when connection is destroied.