RTC::InPortPushConnector Class Reference

InPortPushConnector class. More...

#include <InPortPushConnector.h>

Inheritance diagram for RTC::InPortPushConnector:

RTC::InPortConnector RTC::ConnectorBase RTC::DataPortStatus

List of all members.

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 CdrBufferBasecreateBuffer (ConnectorInfo &info)
 create buffer
void onConnect ()
 Invoke callback when connection is established.
void onDisconnect ()
 Invoke callback when connection is destroied.


Detailed Description

InPortPushConnector class.

Constructor & Destructor Documentation

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.

Parameters:
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.


Member Function Documentation

virtual ReturnCode RTC::InPortPushConnector::read ( cdrMemoryStream &  data  )  [virtual]

Reading data.

Read data from the buffer.

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]

Connector activation.

This operation activates this connector

Implements RTC::ConnectorBase.

virtual void RTC::InPortPushConnector::deactivate (  )  [inline, virtual]

Connector deactivation.

This operation deactivates this connector

Implements RTC::ConnectorBase.

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.


Generated on Thu Jan 28 13:25:36 2010 for OpenRTM by  doxygen 1.5.5