|
roo_control
API Documentation for roo_control
|
Reports readings of another thermometer if fresher than an expiration. More...
#include <expiring_thermometer.h>
Public Member Functions | |
| ExpiringThermometer (const Thermometer *thermometer) | |
| ExpiringThermometer (const Thermometer *thermometer, roo_time::Duration expiration) | |
| void | setExpiration (roo_time::Duration expiration) |
| roo_time::Duration | expiration () const |
| Reading | readTemperature () const override |
| Returns the latest available temperature reading. | |
Public Member Functions inherited from roo_control::Thermometer | |
| virtual | ~Thermometer ()=default |
Reports readings of another thermometer if fresher than an expiration.
Otherwise, reports Unknown.
Definition at line 10 of file expiring_thermometer.h.
|
inline |
Definition at line 12 of file expiring_thermometer.h.
|
inline |
Definition at line 15 of file expiring_thermometer.h.
|
inline |
Definition at line 23 of file expiring_thermometer.h.
Referenced by setExpiration().
|
inlineoverridevirtual |
Returns the latest available temperature reading.
Implements roo_control::Thermometer.
Definition at line 25 of file expiring_thermometer.h.
References roo_control::Thermometer::Reading::time, and roo_control::Thermometer::Reading::value.
Referenced by roo_control::ReadExpiringTemperature().
|
inline |
Definition at line 19 of file expiring_thermometer.h.
References expiration().