14 #ifndef CARMA_SERVICES_TEMPERATURE_H
15 #define CARMA_SERVICES_TEMPERATURE_H
49 Temperature(
double value,
const std::string& units);
61 void reset(
double value,
const std::string& units);
137 #endif //CARMA_SERVICES_TEMPERATURE_H
Temperature(double value, const std::string &units)
Construct a Temperature given a value and units.
const Temperature operator-(const Temperature &t) const
Subtract two temperatures.
Temperature & operator+=(const Temperature &t)
Increment temperature.
void reset(double value, const std::string &units)
Override parent method.
const Temperature operator+(const Temperature &t) const
Add two Temperatures.
virtual ~Temperature()
Destructor.
The Temperature class represents a temperature in any unit.
Temperature & operator-=(const Temperature &t)
Decrement temperature.
double fahrenheit() const
Convenience method that returns the value of this temperature in fahrenheit.
double kelvin() const
Convenience method that returns the value of this temperature in Kelvin.
std::ostream & operator<<(std::ostream &os, const carma::services::Angle &angle)
Define the << operator to allow, e.g.
double celsius() const
Convenience method that returns the value of this temperature in Celsius.
bool operator<(const Temperature &t) const
Compare two temperatures.
bool operator>(const Temperature &t) const
Compare two temperature.