Public Member Functions | List of all members
RTC::OnReadConvert< DataType > Class Template Referenceabstract

Data convert callback abstract class on read() More...

#include <PortCallback.h>

Inheritance diagram for RTC::OnReadConvert< DataType >:
Inheritance graph
[legend]

Public Member Functions

virtual DataType operator() (const DataType &value)=0
 Callback method. More...
 
virtual ~OnReadConvert (void)
 Destructor. More...
 

Detailed Description

template<class DataType>
class RTC::OnReadConvert< DataType >

Data convert callback abstract class on read()

This is the interface for callback invoked when data is done read() from the InPort/OutPort's buffer. The return value of this callback will be the return value of read().

Since
0.4.0

Definition at line 385 of file PortCallback.h.

Constructor & Destructor Documentation

◆ ~OnReadConvert()

template<class DataType>
virtual RTC::OnReadConvert< DataType >::~OnReadConvert ( void  )
inlinevirtual

Destructor.

Destructor

Definition at line 402 of file PortCallback.h.

Member Function Documentation

◆ operator()()

template<class DataType>
virtual DataType RTC::OnReadConvert< DataType >::operator() ( const DataType &  value)
pure virtual

Callback method.

This function is the callback function invoked when data is readout from the buffer, and the return value of operator()() is used as return value of InPort's read() or it is stored in the InPort data variable.

Parameters
valueData that is readout from buffer
Returns
Converted data. These data are stored in the port's variable.

Implemented in InPort::OnReadConvertMock< DataType >, DataInOutPort::HogeCovnert< DataType >, and DataInOutPort::HogeCovnert< RTC::TimedFloat >.


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


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Mon Feb 28 2022 23:00:47