#include <InPortPushConnector.h>
Public Member Functions | |
DATAPORTSTATUS_ENUM | InPortPushConnector (Profile profile, InPortProvider *provider, CdrBufferBase *buffer=0) |
Constructor. | |
virtual | ~InPortPushConnector () |
Destructor. | |
virtual ReturnCode | read (cdrMemoryStream &data) |
Writing data. | |
virtual ReturnCode | disconnect () |
disconnect | |
virtual void | activate () |
virtual void | deactivate () |
Protected Member Functions | |
virtual CdrBufferBase * | createBuffer (Profile &profile) |
create buffer |
DATAPORTSTATUS_ENUM RTC::InPortPushConnector::InPortPushConnector | ( | Profile | profile, | |
InPortProvider * | provider, | |||
CdrBufferBase * | buffer = 0 | |||
) |
Constructor.
InPortPushConnector assume ownership of InPortConsumer. Therefore, InPortConsumer will be deleted when InPortPushConnector is destructed.
profile | ConnectorProfile | |
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] |
Writing data.
This operation writes data into publisher and then the data will be transferred to correspondent InPort.
Implements RTC::InPortConnector.
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] |
Implements RTC::ConnectorBase.
virtual void RTC::InPortPushConnector::deactivate | ( | ) | [inline, virtual] |
Implements RTC::ConnectorBase.
virtual CdrBufferBase* RTC::InPortPushConnector::createBuffer | ( | Profile & | profile | ) | [protected, virtual] |
create buffer