Class used to convert units using a standard convention.
More...
#include <fcst_units.h>
|
static double | convert (double unitToConvert, double to, double from) |
| The converstion routine convert(unitToConvert, X, Y) should be read as: More...
|
|
static double | convert (double unitToConvert, int specificCase) |
| Convert using on a case by case basis. More...
|
|
Class used to convert units using a standard convention.
All routines are static, therefore, there is no need to create an object of this class, simply use the Units::convert() to call the class and add the .h file to your header file.
The converstion routine convert(unitToConvert, X, Y) should be read as:
convert quantity unitToConvert from Y to X
Usage details
- Author
- P. Wardlaw
- Date
- 2013
static double Units::convert |
( |
double |
unitToConvert, |
|
|
double |
to, |
|
|
double |
from |
|
) |
| |
|
inlinestatic |
The converstion routine convert(unitToConvert, X, Y) should be read as:
convert quantity unitToConvert from Y to X
static double Units::convert |
( |
double |
unitToConvert, |
|
|
int |
specificCase |
|
) |
| |
|
inlinestatic |
Convert using on a case by case basis.
In this case, the function should be read as: Convert unitToConvert from KJ to BTU.
References ATM_to_PA, BTU_to_KJ, and KJ_to_BTU.
const unsigned int Units::ATM_to_PA =3 |
|
static |
const unsigned int Units::BTU_to_KJ =2 |
|
static |
const unsigned int Units::KJ_to_BTU =1 |
|
static |
double Units::MICRO_UNIT2 |
|
static |
double Units::MICRO_UNIT3 |
|
static |
double Units::MILLI_UNIT2 |
|
static |
double Units::MILLI_UNIT3 |
|
static |
double Units::PER_C_UNIT2 |
|
static |
double Units::PER_C_UNIT3 |
|
static |
double Units::PER_MICRO_UNIT |
|
static |
double Units::PER_MICRO_UNIT2 |
|
static |
double Units::PER_MICRO_UNIT3 |
|
static |
double Units::PER_MILLI_UNIT |
|
static |
double Units::PER_MILLI_UNIT2 |
|
static |
double Units::PER_MILLI_UNIT3 |
|
static |
double Units::PER_N_UNIT2 |
|
static |
double Units::PER_N_UNIT3 |
|
static |
double Units::PER_P_UNIT2 |
|
static |
double Units::PER_P_UNIT3 |
|
static |
The documentation for this class was generated from the following file: