InPortConnector base class. More...
#include <InPortConnector.h>
Public Member Functions | |
virtual ReturnCode | disconnect ()=0 |
Disconnect connection. | |
virtual CdrBufferBase * | getBuffer () |
Getting Buffer. | |
virtual const char * | id () |
Getting Connector ID. | |
DATAPORTSTATUS_ENUM | InPortConnector (ConnectorInfo &info, CdrBufferBase *buffer) |
Constructor. | |
virtual bool | isLittleEndian () |
Whether this connector's endian is little. | |
virtual const char * | name () |
Getting Connector name. | |
virtual const ConnectorInfo & | profile () |
Getting ConnectorInfo. | |
virtual ReturnCode | read (cdrMemoryStream &data)=0 |
Destructor. | |
virtual void | setEndian (const bool endian_type) |
Setting an endian type. | |
virtual | ~InPortConnector () |
Destructor. | |
Protected Attributes | |
CdrBufferBase * | m_buffer |
Connector's buffer. | |
bool | m_littleEndian |
Connected Endian. | |
ConnectorInfo | m_profile |
ConnectorInfo. | |
Logger | rtclog |
Logger stream. |
InPortConnector base class.
The base class to derive subclasses for InPort's Push/Pull Connectors
Definition at line 46 of file InPortConnector.h.
RTC::InPortConnector::InPortConnector | ( | ConnectorInfo & | info, |
CdrBufferBase * | buffer | ||
) |
Constructor.
info | ConnectorInfo object which includes connection information |
buffer | A pointer to the buffer of the connector |
Definition at line 31 of file InPortConnector.cpp.
RTC::InPortConnector::~InPortConnector | ( | ) | [virtual] |
Destructor.
Definition at line 45 of file InPortConnector.cpp.
virtual ReturnCode RTC::InPortConnector::disconnect | ( | ) | [pure virtual] |
Disconnect connection.
This operation disconnect this connection
Implements RTC::ConnectorBase.
Implemented in RTC::InPortPullConnector, RTC::InPortPushConnector, and InPortConnector::InPortConnectorMock.
CdrBufferBase * RTC::InPortConnector::getBuffer | ( | ) | [virtual] |
Getting Buffer.
This operation returns this connector's buffer
This operation returns this connector's buffer
Implements RTC::ConnectorBase.
Definition at line 119 of file InPortConnector.cpp.
const char * RTC::InPortConnector::id | ( | ) | [virtual] |
Getting Connector ID.
This operation returns Connector ID
This operation returns Connector ID
Implements RTC::ConnectorBase.
Definition at line 81 of file InPortConnector.cpp.
bool RTC::InPortConnector::isLittleEndian | ( | ) | [virtual] |
Whether this connector's endian is little.
return it whether endian setting is little
This operation returns whether the connector's endian is little or not.
Definition at line 150 of file InPortConnector.cpp.
const char * RTC::InPortConnector::name | ( | ) | [virtual] |
Getting Connector name.
This operation returns Connector name
This operation returns Connector name
Implements RTC::ConnectorBase.
Definition at line 100 of file InPortConnector.cpp.
const ConnectorInfo & RTC::InPortConnector::profile | ( | ) | [virtual] |
Getting ConnectorInfo.
This operation returns ConnectorInfo
This operation returns Connector ConnectorInfo
Implements RTC::ConnectorBase.
Definition at line 62 of file InPortConnector.cpp.
virtual ReturnCode RTC::InPortConnector::read | ( | cdrMemoryStream & | data | ) | [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, RTC::InPortPushConnector, and InPortConnector::InPortConnectorMock.
void RTC::InPortConnector::setEndian | ( | const bool | endian_type | ) | [virtual] |
Setting an endian type.
This operation set this connector's endian type
endian_type | true: little, false: big |
This operation set this connector's endian type
Definition at line 137 of file InPortConnector.cpp.
CdrBufferBase* RTC::InPortConnector::m_buffer [protected] |
Connector's buffer.
Definition at line 257 of file InPortConnector.h.
bool RTC::InPortConnector::m_littleEndian [protected] |
Connected Endian.
Definition at line 265 of file InPortConnector.h.
ConnectorInfo RTC::InPortConnector::m_profile [protected] |
Definition at line 249 of file InPortConnector.h.
Logger RTC::InPortConnector::rtclog [protected] |
Logger stream.
Definition at line 241 of file InPortConnector.h.