Public Member Functions | Private Attributes | List of all members
OutPortConnector::OutPortConnectorMock Class Reference
Inheritance diagram for OutPortConnector::OutPortConnectorMock:
Inheritance graph
[legend]

Public Member Functions

void activate ()
 Connector activation. More...
 
void deactivate ()
 Connector deactivation. More...
 
ReturnCode disconnect ()
 Disconnect connection. More...
 
RTC::CdrBufferBasegetBuffer ()
 Getting Buffer. More...
 
 OutPortConnectorMock (RTC::ConnectorInfo &info)
 
ReturnCode write (const cdrMemoryStream &data)
 Destructor. More...
 
virtual ~OutPortConnectorMock ()
 
- Public Member Functions inherited from RTC::OutPortConnector
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 ConnectorInfoprofile ()
 Getting Profile. More...
 
virtual void setEndian (const bool endian_type)
 Setting an endian type. 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 ~ConnectorBase ()
 Destructor. More...
 

Private Attributes

RTC::CdrBufferBasem_buffer
 

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...
 
- Protected Attributes inherited from RTC::OutPortConnector
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...
 

Detailed Description

Definition at line 84 of file OutPortConnectorTests.cpp.

Constructor & Destructor Documentation

OutPortConnector::OutPortConnectorMock::OutPortConnectorMock ( RTC::ConnectorInfo info)
inline

Definition at line 88 of file OutPortConnectorTests.cpp.

virtual OutPortConnector::OutPortConnectorMock::~OutPortConnectorMock ( )
inlinevirtual

Definition at line 92 of file OutPortConnectorTests.cpp.

Member Function Documentation

void OutPortConnector::OutPortConnectorMock::activate ( )
inlinevirtual

Connector activation.

This operation activates this connector

Implements RTC::ConnectorBase.

Definition at line 99 of file OutPortConnectorTests.cpp.

void OutPortConnector::OutPortConnectorMock::deactivate ( )
inlinevirtual

Connector deactivation.

This operation deactivates this connector

Implements RTC::ConnectorBase.

Definition at line 102 of file OutPortConnectorTests.cpp.

ReturnCode OutPortConnector::OutPortConnectorMock::disconnect ( )
inlinevirtual

Disconnect connection.

This operation disconnect this connection

Implements RTC::OutPortConnector.

Definition at line 95 of file OutPortConnectorTests.cpp.

RTC::CdrBufferBase* OutPortConnector::OutPortConnectorMock::getBuffer ( )
inlinevirtual

Getting Buffer.

This operation returns this connector's buffer

Implements RTC::OutPortConnector.

Definition at line 105 of file OutPortConnectorTests.cpp.

ReturnCode OutPortConnector::OutPortConnectorMock::write ( const cdrMemoryStream &  data)
inlinevirtual

Destructor.

The write function to write data from OutPort to Buffer

Implements RTC::OutPortConnector.

Definition at line 109 of file OutPortConnectorTests.cpp.

Member Data Documentation

RTC::CdrBufferBase* OutPortConnector::OutPortConnectorMock::m_buffer
private

Definition at line 114 of file OutPortConnectorTests.cpp.


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


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Mon Jun 10 2019 14:08:02