OpenRTM-aist 2.1.0
Public Member Functions | Protected Attributes | List of all members
RTC::OutPortConnector Class Referenceabstract

OutPortConnector base class. More...

#include <OutPortConnector.h>

Inheritance diagram for RTC::OutPortConnector:
Inheritance graph
[legend]
Collaboration diagram for RTC::OutPortConnector:
Collaboration graph
[legend]

Public Member Functions

 OutPortConnector (ConnectorInfo &info, ConnectorListenersBase *listeners)
 Constructor . More...
 
 ~OutPortConnector () override
 Destructor . More...
 
const ConnectorInfoprofile () override
 Getting Profile. More...
 
const char * id () override
 Getting Connector ID. More...
 
const char * name () override
 Getting Connector name. More...
 
DataPortStatus disconnect () override=0
 Disconnect connection. More...
 
CdrBufferBasegetBuffer () override=0
 Getting Buffer. More...
 
virtual DataPortStatus write (ByteDataStreamBase *data)=0
 Destructor. More...
 
virtual void setEndian (bool endian_type)
 Setting an endian type. More...
 
virtual bool isLittleEndian ()
 return it whether endian setting. More...
 
template<class DataType >
DataPortStatus write (DataType &data)
 The conversion template of the data type. More...
 
virtual BufferStatus read (ByteData &data)
 
bool setInPort (InPortBase *directInPort)
 
virtual void setPullDirectMode ()
 
virtual bool pullDirectMode ()
 
virtual void unsubscribeInterface (const coil::Properties &prop)
 
- Public Member Functions inherited from RTC::ConnectorBase
virtual ~ConnectorBase ()=default
 Destructor . More...
 
virtual const ConnectorInfoprofile ()=0
 Getting Profile. More...
 
virtual const char * id ()=0
 Getting Connector ID. More...
 
virtual const char * name ()=0
 Getting Connector name. More...
 
virtual DataPortStatus disconnect ()=0
 Disconnect connection. More...
 
virtual CdrBufferBasegetBuffer ()=0
 Getting Buffer. More...
 
virtual void activate ()=0
 Connector activation. More...
 
virtual void deactivate ()=0
 Connector deactivation. More...
 

Protected Attributes

Logger rtclog
 Logger streamf . More...
 
ConnectorInfo m_profile
 PortProfile of the Port . More...
 
bool m_littleEndian
 Connected Endian . More...
 
PortBasem_directInPort
 InProt pointer to the peer in the same process . More...
 
ConnectorListenersBasem_listeners
 A reference to a ConnectorListener . More...
 
ConnectorListenersBasem_inPortListeners
 A pointer to a InPort's ConnectorListener . More...
 
bool m_directMode
 
std::string m_marshaling_type
 
ByteDataStreamBasem_cdr
 

Detailed Description

OutPortConnector base class.

The base class to derive subclasses for OutPort's Push/Pull Connectors

Since
1.0.0

Constructor & Destructor Documentation

◆ OutPortConnector()

RTC::OutPortConnector::OutPortConnector ( ConnectorInfo info,
ConnectorListenersBase listeners 
)

Constructor .

◆ ~OutPortConnector()

RTC::OutPortConnector::~OutPortConnector ( )
override

Destructor .

Member Function Documentation

◆ disconnect()

DataPortStatus RTC::OutPortConnector::disconnect ( )
overridepure virtual

Disconnect connection.

This operation disconnect this connection

Implements RTC::ConnectorBase.

Implemented in RTC::OutPortPullConnector, and RTC::OutPortPushConnector.

◆ getBuffer()

CdrBufferBase * RTC::OutPortConnector::getBuffer ( )
overridepure virtual

Getting Buffer.

This operation returns this connector's buffer

Implements RTC::ConnectorBase.

Implemented in RTC::OutPortPullConnector, and RTC::OutPortPushConnector.

◆ id()

const char * RTC::OutPortConnector::id ( )
overridevirtual

Getting Connector ID.

This operation returns Connector ID

Implements RTC::ConnectorBase.

◆ isLittleEndian()

virtual bool RTC::OutPortConnector::isLittleEndian ( )
virtual

return it whether endian setting.

Returns
Return true in the case of "little", false in "big" than it.

Referenced by write().

◆ name()

const char * RTC::OutPortConnector::name ( )
overridevirtual

Getting Connector name.

This operation returns Connector name

Implements RTC::ConnectorBase.

◆ profile()

const ConnectorInfo & RTC::OutPortConnector::profile ( )
overridevirtual

Getting Profile.

This operation returns Connector Profile

Implements RTC::ConnectorBase.

◆ pullDirectMode()

virtual bool RTC::OutPortConnector::pullDirectMode ( )
virtual

◆ read()

virtual BufferStatus RTC::OutPortConnector::read ( ByteData data)
virtual

Reimplemented in RTC::OutPortPullConnector.

◆ setEndian()

virtual void RTC::OutPortConnector::setEndian ( bool  endian_type)
virtual

Setting an endian type.

This operation set this connector's endian type

◆ setInPort()

bool RTC::OutPortConnector::setInPort ( InPortBase directInPort)

◆ setPullDirectMode()

virtual void RTC::OutPortConnector::setPullDirectMode ( )
virtual

◆ unsubscribeInterface()

virtual void RTC::OutPortConnector::unsubscribeInterface ( const coil::Properties &  prop)
virtual

Reimplemented in RTC::OutPortPushConnector.

◆ write() [1/2]

virtual DataPortStatus RTC::OutPortConnector::write ( ByteDataStreamBase data)
pure virtual

Destructor.

The write function to write data from OutPort to Buffer

Implemented in RTC::OutPortPullConnector, and RTC::OutPortPushConnector.

Referenced by write().

◆ write() [2/2]

template<class DataType >
DataPortStatus RTC::OutPortConnector::write ( DataType &  data)
inline

Member Data Documentation

◆ m_cdr

ByteDataStreamBase* RTC::OutPortConnector::m_cdr
protected

Referenced by write().

◆ m_directInPort

PortBase* RTC::OutPortConnector::m_directInPort
protected

InProt pointer to the peer in the same process .

Referenced by write().

◆ m_directMode

bool RTC::OutPortConnector::m_directMode
protected

◆ m_inPortListeners

ConnectorListenersBase* RTC::OutPortConnector::m_inPortListeners
protected

A pointer to a InPort's ConnectorListener .

Referenced by write().

◆ m_listeners

ConnectorListenersBase* RTC::OutPortConnector::m_listeners
protected

A reference to a ConnectorListener .

Referenced by write().

◆ m_littleEndian

bool RTC::OutPortConnector::m_littleEndian
protected

Connected Endian .

◆ m_marshaling_type

std::string RTC::OutPortConnector::m_marshaling_type
protected

Referenced by write().

◆ m_profile

ConnectorInfo RTC::OutPortConnector::m_profile
protected

PortProfile of the Port .

Referenced by write().

◆ rtclog

Logger RTC::OutPortConnector::rtclog
protected

Logger streamf .


The documentation for this class was generated from the following file: