value
¶a stateful variable class - simplistically
Inherits from sigslot::has_slots<>
Public Functions
set
(T x)¶sets the variable to a certain value
x
silentset
(T x)¶sets the variable to a value and silences all signals (for this operation)
x
get
(void)¶returns the value of the variable
setlevel
(T x)¶sets the trigger threshold
x
getlevel
(void)¶returns the value of the trigger threshold
resetmaxmin
(void)¶resets the states of maximum and minimum during the data-logging time
getmax
(void)¶returns the maximum value encountered since the start of the program or since the last call to resetmaxmin
getmin
(void)¶returns the minimum value encountered since the start of the program or since the last call to resetmaxmin
getold
(void)¶returns the last value before the last call to set
Public Members
changed
¶a signal that is triggered when the value changes
levelchanged
¶a signal that is triggered when someone changes the trigger level
abovelevel
¶a signal triggered when the value goes from below to above the trigger level
belowlevel
¶a signal triggered when the value goes from above to below the trigger level
atlevel
¶a signal triggered when the value goes from not equal to equal the trigger level