RTC::InPortPushConnector Class Reference

#include <InPortPushConnector.h>

Inheritance diagram for RTC::InPortPushConnector:

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

List of all members.

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 CdrBufferBasecreateBuffer (Profile &profile)
 create buffer


Constructor & Destructor Documentation

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.

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


Member Function Documentation

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


Generated on Sun May 24 14:08:45 2009 for OpenRTM by  doxygen 1.5.3