#include <OutPortPushConnector.h>
Public Member Functions | |
DATAPORTSTATUS_ENUM | OutPortPushConnector (Profile profile, InPortConsumer *consumer, CdrBufferBase *buffer=0) |
virtual | ~OutPortPushConnector () |
Destructor. | |
virtual ReturnCode | write (const cdrMemoryStream &data) |
Writing data. | |
virtual ReturnCode | disconnect () |
disconnect | |
virtual void | activate () |
Connector activation. | |
virtual CdrBufferBase * | getBuffer () |
Getting Buffer. | |
virtual void | deactivate () |
Connector deactivation. | |
Protected Member Functions | |
virtual PublisherBase * | createPublisher (Profile &profile) |
create publisher | |
virtual CdrBufferBase * | createBuffer (Profile &profile) |
create buffer |
DATAPORTSTATUS_ENUM RTC::OutPortPushConnector::OutPortPushConnector | ( | Profile | profile, | |
InPortConsumer * | consumer, | |||
CdrBufferBase * | buffer = 0 | |||
) |
virtual RTC::OutPortPushConnector::~OutPortPushConnector | ( | ) | [virtual] |
Destructor.
This operation calls disconnect(), which destructs and deletes the consumer, the publisher and the buffer.
virtual ReturnCode RTC::OutPortPushConnector::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::OutPortPushConnector::disconnect | ( | ) | [virtual] |
disconnect
This operation destruct and delete the consumer, the publisher and the buffer.
Implements RTC::OutPortConnector.
virtual void RTC::OutPortPushConnector::activate | ( | ) | [virtual] |
virtual CdrBufferBase* RTC::OutPortPushConnector::getBuffer | ( | ) | [virtual] |
virtual void RTC::OutPortPushConnector::deactivate | ( | ) | [virtual] |
virtual PublisherBase* RTC::OutPortPushConnector::createPublisher | ( | Profile & | profile | ) | [protected, virtual] |
create publisher
virtual CdrBufferBase* RTC::OutPortPushConnector::createBuffer | ( | Profile & | profile | ) | [protected, virtual] |
create buffer