1 #ifndef CLASSIC_IndexedChannel_HH
2 #define CLASSIC_IndexedChannel_HH
45 void (
T::*
setF)(
int,
double),
int index);
56 virtual bool get(
double &)
const;
61 virtual bool set(
double);
88 void (
T::*set)(
int,
double),
int index):
89 itsObject(object), getF(get), setF(set), bias(index)
96 itsObject(rhs.itsObject), getF(rhs.getF), setF(rhs.setF), bias(rhs.bias)
113 value = (itsObject.*getF)(bias);
121 (itsObject.*setF)(bias, value);
Abstract interface for read/write access to variable.
Access to an indexed [b]double[/b] data member.
virtual IndexedChannel * clone() const
Duplicate the channel.
virtual ~IndexedChannel()
const IndexedChannel & operator=(const IndexedChannel &)
double(T::* getF)(int) const
virtual bool set(double)
Store into channel.
virtual bool isSettable() const
Test if settable.
virtual bool get(double &) const
Fetch from channel.
void(T::* setF)(int, double)