#include "IPUnit.hpp"
Public Member Functions | |
IPUnit (const IPExpnt &exponents=IPExpnt(), int scaleExponent=0, const std::string &prettyString="") | |
IPUnit (const std::string &scaleAbbreviation, const IPExpnt &exponents=IPExpnt(), const std::string &prettyString="") | |
virtual | ~IPUnit () |
void | lbmToLbf () |
void | lbfToLbm () |
Static Public Member Functions | |
static double | gc () |
Related Functions | |
typedef std::vector< IPUnit > | IPUnitVector |
typedef boost::optional< IPUnit > | OptionalIPUnit |
IPUnit | createIPMass () |
IPUnit | createIPLength () |
IPUnit | createIPTime () |
IPUnit | createIPTemperature () |
IPUnit | createIPElectricCurrent () |
IPUnit | createIPLuminousIntensity () |
IPUnit | createIPAmountOfSubstance () |
IPUnit | createIPAngle () |
IPUnit | createIPSolidAngle () |
IPUnit | createIPPeople () |
IPUnit | createIPForce () |
IPUnit | createIPEnergy () |
IPUnit | createIPPower () |
IPUnit | createIPElectricCharge () |
IPUnit | createIPLuminousFlux () |
IPUnit | createIPIlluminance () |
IPUnit | createIPFrequency () |
IPUnit is a Unit with baseUnits fixed by its constructors, see IPExpnt.
setBaseUnitExponent throws an exception if any other string is passed in as a baseUnit. IPUnit.hpp declares related operators and UnitFactory callback functions.
openstudio::IPUnit::IPUnit | ( | const IPExpnt & | exponents = IPExpnt() , |
int | scaleExponent = 0 , |
||
const std::string & | prettyString = "" |
||
) |
Default constructor.
Example:
IPUnit myEnergy(IPExpnt(0,1,0,0,1)); std::cout << myEnergy; // produces "ft*lb_f"
[in] | exponents | holds the exponents for each base unit. |
[in] | scaleExponent | exponent for scale. For instance 3 for kilo. |
[in] | prettyString | optional string to use in place of standardString. |
openstudio::IPUnit::IPUnit | ( | const std::string & | scaleAbbreviation, |
const IPExpnt & | exponents = IPExpnt() , |
||
const std::string & | prettyString = "" |
||
) |
Alternate constructor.
Specify the abbreviation of the scale, rather than its exponent.
[in] | scaleAbbreviation | is string equal to a scale abbreviation. For instance "k" for kilo. |
[in] | exponents | holds the exponents for each base unit. |
[in] | prettyString | optional string to use in place of standardString. |
|
inlinevirtual |
|
static |
void openstudio::IPUnit::lbfToLbm | ( | ) |
Convert any non-zero lb_f exponent to lb_m.
void openstudio::IPUnit::lbmToLbf | ( | ) |
Convert any non-zero lb_m exponent to lb_f.
|
related |
|
related |
|
related |
Coulomb (C) = s*A.
|
related |
|
related |
ft*lb_f is preferred over equivalent using lb_m.
|
related |
lb_f is preferred over equivalent using lb_m.
|
related |
Hertz (Hz) = cycles/s.
Making the distinction between 1/s and cycles/s here mainly to be consistent with the rotations per minute (rpm) designation made elsewhere.
|
related |
Foot-candles (fc) = lm/ft^2 = cd*sr/ft^2.
|
related |
|
related |
Lumen (lm) = cd*sr.
|
related |
|
related |
|
related |
|
related |
ft*lb_f/s is preferred over equivalent using lb_m.
|
related |
|
related |
|
related |
|
related |
|
related |