Loxahatchee  v0.0.1-1346
Lox Convenience C++ Library
Lox::Temperature Namespace Reference

Common functions to work with and convert metric and imperial temperatures. More...

Functions

std::string celsiusString (const CELSIUS c)
 Format the given temperature as a string (Celsius). More...
 
std::string fahrenheitString (const FAHRENHEIT f)
 Format the given temperature as a string (Fahrenheit). More...
 
static CELSIUS toCelsius (const FAHRENHEIT f)
 Convert the given value from Fahrenheit to a Celsius value. E.g., 32.0 F (freezing) converts to zero C. More...
 
static FAHRENHEIT toFahrenheit (const CELSIUS c)
 Convert the given value from Celsius to a Fahrenheit value. E.g., zero C (freezing) converts to 32.0 F. More...
 

Detailed Description

Common functions to work with and convert metric and imperial temperatures.

Function Documentation

std::string Lox::Temperature::celsiusString ( const CELSIUS  c)

Format the given temperature as a string (Celsius).

References Lox::Numbers::format().

Here is the call graph for this function:

std::string Lox::Temperature::fahrenheitString ( const FAHRENHEIT  f)

Format the given temperature as a string (Fahrenheit).

References Lox::Numbers::format().

Here is the call graph for this function:

static CELSIUS Lox::Temperature::toCelsius ( const FAHRENHEIT  f)
inlinestatic

Convert the given value from Fahrenheit to a Celsius value. E.g., 32.0 F (freezing) converts to zero C.

static FAHRENHEIT Lox::Temperature::toFahrenheit ( const CELSIUS  c)
inlinestatic

Convert the given value from Celsius to a Fahrenheit value. E.g., zero C (freezing) converts to 32.0 F.