00001
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef PortCallBack_h
00029 #define PortCallBack_h
00030
00031 namespace RTC
00032 {
00033
00034
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