1 #ifndef CLASSIC_Channel_HH
2 #define CLASSIC_Channel_HH
44 {
set(value);
return value; }
48 {
double temp;
get(temp); temp += value;
set(temp);
return temp; }
52 {
double temp;
get(temp); temp -= value;
set(temp);
return temp; }
58 virtual bool set(
double value) = 0;
Abstract interface for read/write access to variable.
virtual Channel * clone() const =0
Duplicate the channel.
double operator=(double value)
Assign [b]value[/b] to channel.
const Channel & operator=(const Channel &)
virtual bool set(double value)=0
Store [b]value[/b] into channel.
virtual bool isSettable() const
Test if settable.
double operator-=(double value)
Subtract and assign [b]value[/b] to channel.
double operator+=(double value)
Add and assign [b]value[/b] to channel.
Abstract interface for read-only access to variable.
virtual bool get(double &value) const =0
Read channel.