1 #ifndef CLASSIC_IndirectChannel_HH
2 #define CLASSIC_IndirectChannel_HH
43 void (
T::*
setF)(
double));
54 virtual bool get(
double &)
const;
60 virtual bool set(
double);
84 void (
T::*set)(
double)):
85 itsObject(object), getF(get), setF(set)
92 itsObject(rhs.itsObject), getF(rhs.getF), setF(rhs.setF)
109 value = (itsObject.*getF)();
117 (itsObject.*setF)(value);
125 template <
class T>
inline
Abstract interface for read/write access to variable.
Access to a [b]double[/b] data member.
virtual bool get(double &) const
Fetch from channel.
virtual bool isSettable() const
Test if settable.
virtual IndirectChannel * clone() const
Duplicate the channel.
double(T::* getF)() const
const IndirectChannel & operator=(const IndirectChannel &)
virtual bool set(double)
Store into channel.
virtual ~IndirectChannel()