RTC::OnReadConvert< DataType > Class Template Reference

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

#include <PortCallback.h>

List of all members.

Public Member Functions

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

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

Constructor & Destructor Documentation

template<class DataType>
virtual RTC::OnReadConvert< DataType >::~OnReadConvert ( void   )  [inline, virtual]

Destructor.

Destructor


Member Function Documentation

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:
value Data that is readout from buffer
Returns:
Converted data. These data are stored in the port's variable.
Generated on Fri Mar 11 00:01:00 2011 for OpenRTM by  doxygen 1.6.3