CARMA C++
Units.h File Reference
#include <limits>
#include <string>

Go to the source code of this file.

Classes

class  carma::services::Units
 This class is based on the GNU units library. More...
 

Namespaces

module  carma
 IDL for bima Rx Control, inherits from antenna::common::RxControl.
 
 carma::services
 Auxiliary Services is intended to provide routines commonly needed for array control and observational planning.
 

Detailed Description

Unit conversion routines. This class is a generic unit conversion class based on the GNU units library. It provides methods to convert a value in one unit to its corresponding value in any conformable units. If the conversion units are not conformable a carma::services::ConformablityException is thrown.

This class also provides scaling methods named after the Greek prefixes, e.g kilo() returns 1000.0.

It is highly recommended authors use CARMA Standard Units (mostly SI units), though this class, and the related ConformableQuantity class can aid in hiding these.

See Also
http://www.cam.cornell.edu/~adrian/units.html
"man units"
$CARMA_TOOLS/share/units.dat
http://www.mmarray.org/workinggroups/computing/CarmaStdUnits.html
Author
Chul Gwon
Marc Pound
Version
Revision:
1.23

Definition in file Units.h.