Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

PortCallBack.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00020 /*
00021  * $Log: PortCallBack.h,v $
00022  * Revision 1.1  2006/12/02 18:51:18  n-ando
00023  * The first commitment.
00024  *
00025  *
00026  */
00027 
00028 #ifndef PortCallBack_h
00029 #define PortCallBack_h
00030 
00031 namespace RTC
00032 {
00033   //============================================================
00034   // callback functor base classes
00049   template <class DataType>
00050   struct OnWrite
00051   {
00052     virtual void operator()(const DataType& value) = 0;
00053   };
00054   
00069   template <class DataType>
00070   struct OnWriteConvert
00071   {
00072     virtual DataType operator()(const DataType& value) = 0;
00073   };
00074   
00089   template <class DataType>
00090   struct OnRead
00091   {
00092     virtual void operator()() = 0;
00093   };
00094   
00109   template <class DataType>
00110   struct OnReadConvert
00111   {
00112     virtual DataType operator()(const DataType& value) = 0;
00113   };
00114   
00129   template <class DataType>
00130   struct OnOverflow
00131   {
00132     virtual void operator()(const DataType& value) = 0;
00133   };
00134   
00148   template <class DataType>
00149   struct OnUnderflow
00150   {
00151     virtual DataType operator()() = 0;
00152   };
00153   
00154 };
00155 #endif // PortCallBack_h

Generated on Mon Jan 15 12:15:35 2007 for OpenRTM by  doxygen 1.4.1