Treehopper C++ API
TemperatureSensor.h
Go to the documentation of this file.
1 #pragma once
2 
4 #include "Libraries/Pollable.h"
5 
6 using namespace Treehopper::Libraries;
7 
8 namespace Treehopper {
9  namespace Libraries {
10  namespace Sensors {
11  namespace Temperature {
12  class LIBRARIES_API TemperatureSensor : virtual public Pollable {
13  public:
14  static double toFahrenheit(double celsius);
15 
16  static double toKelvin(double celsius);
17 
18  double celsius();
19 
20  double fahrenheit();
21 
22  double kelvin();
23 
24  protected:
25  double _celsius;
26 
27  };
28  }
29  }
30  }
31 }
Definition: Dm632.h:9
#define LIBRARIES_API
Definition: Treehopper.Libraries.h:17
Definition: AdcPin.h:3
Definition: Pollable.h:8