InPortConnector base class. More...
#include <InPortConnector.h>
Public Member Functions | |
virtual ReturnCode | disconnect ()=0 |
Disconnect connection. More... | |
virtual CdrBufferBase * | getBuffer () |
Getting Buffer. More... | |
virtual const char * | id () |
Getting Connector ID. More... | |
DATAPORTSTATUS_ENUM | InPortConnector (ConnectorInfo &info, CdrBufferBase *buffer) |
Constructor. More... | |
virtual bool | isLittleEndian () |
Whether this connector's endian is little. More... | |
virtual const char * | name () |
Getting Connector name. More... | |
virtual const ConnectorInfo & | profile () |
Getting ConnectorInfo. More... | |
virtual ReturnCode | read (cdrMemoryStream &data)=0 |
Destructor. More... | |
virtual void | setEndian (const bool endian_type) |
Setting an endian type. More... | |
virtual | ~InPortConnector () |
Destructor. More... | |
Public Member Functions inherited from RTC::ConnectorBase | |
virtual void | activate ()=0 |
Connector activation. More... | |
virtual void | deactivate ()=0 |
Connector deactivation. More... | |
virtual | ~ConnectorBase () |
Destructor. More... | |
Protected Attributes | |
CdrBufferBase * | m_buffer |
Connector's buffer. More... | |
bool | m_littleEndian |
Connected Endian. More... | |
ConnectorInfo | m_profile |
ConnectorInfo. More... | |
Logger | rtclog |
Logger stream. More... | |
Additional Inherited Members | |
Public Types inherited from RTC::DataPortStatus | |
enum | Enum { PORT_OK = 0, PORT_ERROR, BUFFER_ERROR, BUFFER_FULL, BUFFER_EMPTY, BUFFER_TIMEOUT, SEND_FULL, SEND_TIMEOUT, RECV_EMPTY, RECV_TIMEOUT, INVALID_ARGS, PRECONDITION_NOT_MET, CONNECTION_LOST, UNKNOWN_ERROR } |
DataPortStatus return codes. More... | |
Static Public Member Functions inherited from RTC::DataPortStatus | |
static const char * | toString (DataPortStatus::Enum status) |
Convert DataPortStatus into the string. More... | |
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.
|
virtual |
Destructor.
Definition at line 45 of file InPortConnector.cpp.
|
pure virtual |
Disconnect connection.
This operation disconnect this connection
Implements RTC::ConnectorBase.
Implemented in RTC::InPortPullConnector, RTC::InPortPushConnector, and InPortConnector::InPortConnectorMock.
|
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.
|
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.
|
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.
|
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.
|
virtual |
Getting ConnectorInfo.
This operation returns ConnectorInfo
This operation returns Connector ConnectorInfo
Implements RTC::ConnectorBase.
Definition at line 62 of file InPortConnector.cpp.
|
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.
|
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.
|
protected |
Connector's buffer.
Definition at line 257 of file InPortConnector.h.
|
protected |
Connected Endian.
Definition at line 265 of file InPortConnector.h.
|
protected |
Definition at line 249 of file InPortConnector.h.
|
protected |
Logger stream.
Definition at line 241 of file InPortConnector.h.