OutPortConnector base class. More...
#include <OutPortConnector.h>
Public Member Functions | |
virtual ReturnCode | disconnect ()=0 |
Disconnect connection. More... | |
virtual CdrBufferBase * | getBuffer ()=0 |
Getting Buffer. More... | |
const char * | id () |
Getting Connector ID. More... | |
virtual bool | isLittleEndian () |
return it whether endian setting. More... | |
const char * | name () |
Getting Connector name. More... | |
DATAPORTSTATUS_ENUM | OutPortConnector (ConnectorInfo &info) |
Constructor. More... | |
const ConnectorInfo & | profile () |
Getting Profile. More... | |
virtual void | setEndian (const bool endian_type) |
Setting an endian type. More... | |
virtual ReturnCode | write (const cdrMemoryStream &data)=0 |
Destructor. More... | |
template<class DataType > | |
ReturnCode | write (const DataType &data) |
The conversion template of the data type. More... | |
virtual | ~OutPortConnector () |
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 | |
cdrMemoryStream | m_cdr |
CDR stream. More... | |
bool | m_littleEndian |
Connected Endian. More... | |
ConnectorInfo | m_profile |
PortProfile of the Port. 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... | |
OutPortConnector base class.
The base class to derive subclasses for OutPort's Push/Pull Connectors
Definition at line 48 of file OutPortConnector.h.
RTC::OutPortConnector::OutPortConnector | ( | ConnectorInfo & | info | ) |
Constructor.
Definition at line 31 of file OutPortConnector.cpp.
|
virtual |
Destructor.
Definition at line 43 of file OutPortConnector.cpp.
|
pure virtual |
Disconnect connection.
This operation disconnect this connection
Implements RTC::ConnectorBase.
Implemented in RTC::OutPortPushConnector, RTC::OutPortPullConnector, and OutPortConnector::OutPortConnectorMock.
|
pure virtual |
Getting Buffer.
This operation returns this connector's buffer
Implements RTC::ConnectorBase.
Implemented in RTC::OutPortPushConnector, RTC::OutPortPullConnector, and OutPortConnector::OutPortConnectorMock.
|
virtual |
Getting Connector ID.
This operation returns Connector ID
Implements RTC::ConnectorBase.
Definition at line 78 of file OutPortConnector.cpp.
|
virtual |
return it whether endian setting.
return it whether endian setting is little
Definition at line 129 of file OutPortConnector.cpp.
|
virtual |
Getting Connector name.
This operation returns Connector name
Implements RTC::ConnectorBase.
Definition at line 97 of file OutPortConnector.cpp.
|
virtual |
Getting Profile.
Getting ConnectorInfo.
This operation returns Connector Profile
This operation returns ConnectorInfo
Implements RTC::ConnectorBase.
Definition at line 59 of file OutPortConnector.cpp.
|
virtual |
Setting an endian type.
This operation set this connector's endian type
Definition at line 116 of file OutPortConnector.cpp.
|
pure virtual |
Destructor.
The write function to write data from OutPort to Buffer
Implemented in RTC::OutPortPushConnector, RTC::OutPortPullConnector, and OutPortConnector::OutPortConnectorMock.
|
inline |
The conversion template of the data type.
This is convert it from Timed* into CdrStream.
Definition at line 209 of file OutPortConnector.h.
|
protected |
CDR stream.
Definition at line 250 of file OutPortConnector.h.
|
protected |
Connected Endian.
Definition at line 242 of file OutPortConnector.h.
|
protected |
PortProfile of the Port.
Definition at line 234 of file OutPortConnector.h.
|
protected |
Logger stream.
Definition at line 226 of file OutPortConnector.h.