OpenRTM-aist 2.0.2
|
InPortConnector base class. More...
#include <InPortConnector.h>
Public Member Functions | |
InPortConnector (ConnectorInfo &info, ConnectorListenersBase *listeners, CdrBufferBase *buffer) | |
Constructor. | |
~InPortConnector () override | |
Destructor . | |
const ConnectorInfo & | profile () override |
Getting ConnectorInfo. | |
const char * | id () override |
Getting Connector ID. | |
const char * | name () override |
Getting Connector name. | |
DataPortStatus | disconnect () override=0 |
Disconnect connection. | |
CdrBufferBase * | getBuffer () override |
Getting Buffer. | |
virtual DataPortStatus | read (ByteDataStreamBase *data)=0 |
Destructor. | |
template<class DataType > | |
DataPortStatus | read (DataType &data) |
virtual void | setEndian (bool endian_type) |
Setting an endian type. | |
virtual bool | isLittleEndian () |
Whether this connector's endian is little. | |
virtual BufferStatus | write (ByteData &cdr) |
bool | setOutPort (OutPortBase *directOutPort) |
template<typename DataType > | |
bool | getDirectData (DataType &data) |
virtual void | unsubscribeInterface (const coil::Properties &prop) |
Public Member Functions inherited from RTC::ConnectorBase | |
virtual | ~ConnectorBase ()=default |
Destructor . | |
virtual void | activate ()=0 |
Connector activation. | |
virtual void | deactivate ()=0 |
Connector deactivation. | |
Protected Attributes | |
Logger | rtclog |
Logger stream . | |
ConnectorInfo | m_profile |
ConnectorInfo . | |
ConnectorListenersBase * | m_listeners |
A reference to a ConnectorListener . | |
CdrBufferBase * | m_buffer |
Connector's buffer . | |
bool | m_littleEndian |
Connected Endian . | |
ConnectorListenersBase * | m_outPortListeners |
A pointer to a OutPort's ConnectorListener . | |
PortBase * | m_directOutPort |
OutProt pointer to the peer in the same process . | |
std::string | m_marshaling_type |
ByteDataStreamBase * | m_cdr |
InPortConnector base class.
The base class to derive subclasses for InPort's Push/Pull Connectors
RTC::InPortConnector::InPortConnector | ( | ConnectorInfo & | info, |
ConnectorListenersBase * | listeners, | ||
CdrBufferBase * | buffer ) |
Constructor.
info | ConnectorInfo object which includes connection information |
buffer | A pointer to the buffer of the connector |
|
override |
Destructor .
|
overridepure virtual |
Disconnect connection.
This operation disconnect this connection
Implements RTC::ConnectorBase.
Implemented in RTC::InPortPullConnector, and RTC::InPortPushConnector.
|
overridevirtual |
Getting Buffer.
This operation returns this connector's buffer
Implements RTC::ConnectorBase.
|
inline |
data |
References RTC::PortBase::getDirectPort(), RTC::DirectOutPortBase< DataType >::isEmpty(), m_directOutPort, m_listeners, m_outPortListeners, m_profile, RTC::ConnectorListenersBase::notify(), RTC::ConnectorListenersBase::notifyIn(), RTC::ConnectorListenersBase::notifyOut(), RTC::ON_BUFFER_EMPTY, RTC::ON_BUFFER_READ, RTC::ON_RECEIVED, RTC::ON_SEND, RTC::ON_SENDER_EMPTY, RTC::DirectOutPortBase< DataType >::read(), RTC_PARANOID, and RTC_TRACE.
Referenced by RTC::InPort< DataType >::read().
|
overridevirtual |
Getting Connector ID.
This operation returns Connector ID
Implements RTC::ConnectorBase.
|
virtual |
Whether this connector's endian is little.
This operation returns whether the connector's endian is little or not.
Referenced by read().
|
overridevirtual |
Getting Connector name.
This operation returns Connector name
Implements RTC::ConnectorBase.
|
overridevirtual |
Getting ConnectorInfo.
This operation returns ConnectorInfo
Implements RTC::ConnectorBase.
|
pure virtual |
Destructor.
The read function to read data from buffer to InPort
data | A reference to a variable to which data from this connector is stored. |
Implemented in RTC::InPortPullConnector, and RTC::InPortPushConnector.
Referenced by RTC::InPort< DataType >::read(), and read().
|
inline |
data |
References RTC::createSerializer(), RTC::ByteDataStream< DataType >::deserialize(), RTC::ByteDataStreamBase::isLittleEndian(), isLittleEndian(), m_cdr, m_marshaling_type, RTC::PORT_ERROR, RTC::PORT_OK, read(), and RTC_ERROR.
|
virtual |
Setting an endian type.
This operation set this connector's endian type
endian_type | true: little, false: big |
bool RTC::InPortConnector::setOutPort | ( | OutPortBase * | directOutPort | ) |
directOutPort |
|
virtual |
prop |
Reimplemented in RTC::InPortPullConnector.
|
virtual |
Reimplemented in RTC::InPortPushConnector.
|
protected |
Connector's buffer .
|
protected |
Referenced by read().
|
protected |
OutProt pointer to the peer in the same process .
Referenced by getDirectData().
|
protected |
A reference to a ConnectorListener .
Referenced by getDirectData().
|
protected |
Connected Endian .
|
protected |
Referenced by read().
|
protected |
A pointer to a OutPort's ConnectorListener .
Referenced by getDirectData().
|
protected |