roo_control
API Documentation for roo_control
Loading...
Searching...
No Matches
roo_control::Thermometer Class Referenceabstract

An abstraction of a thermometer, i.e., a device that reports temperature. More...

#include <thermometer.h>

Inheritance diagram for roo_control::Thermometer:
[legend]

Data Structures

struct  Reading
 Captures a temperature measured at a specific time. More...
 

Public Member Functions

virtual ~Thermometer ()=default
 
virtual Reading readTemperature () const =0
 Returns the latest available temperature reading.
 

Detailed Description

An abstraction of a thermometer, i.e., a device that reports temperature.

Definition at line 10 of file thermometer.h.

Constructor & Destructor Documentation

◆ ~Thermometer()

virtual roo_control::Thermometer::~Thermometer ( )
virtualdefault

Member Function Documentation

◆ readTemperature()

virtual Reading roo_control::Thermometer::readTemperature ( ) const
pure virtual

Returns the latest available temperature reading.

Implemented in roo_control::BoundThermometer, and roo_control::ExpiringThermometer.


The documentation for this class was generated from the following file: