#include "MPHUnit.hpp"
Public Member Functions | |
MPHUnit (const MPHExpnt &exponents=MPHExpnt(), int scaleExponent=0, const std::string &prettyString="") | |
MPHUnit (const std::string &scaleAbbreviation, const MPHExpnt &exponents=MPHExpnt(), const std::string &prettyString="") | |
virtual | ~MPHUnit () |
Related Functions | |
typedef std::vector< MPHUnit > | MPHUnitVector |
typedef boost::optional< MPHUnit > | OptionalMPHUnit |
MPHUnit | createMPHPressure () |
MPHUnit | createMPHLength () |
MPHUnit | createMPHTime () |
MPHUnit | createMPHTemperature () |
MPHUnit | createMPHElectricCurrent () |
MPHUnit | createMPHLuminousIntensity () |
MPHUnit | createMPHAmountOfSubstance () |
MPHUnit | createMPHAngle () |
MPHUnit | createMPHSolidAngle () |
MPHUnit | createMPHPeople () |
MPHUnit | createMPHCycle () |
MPHUnit | createMPHCurrency () |
MPHUnit | createMPHVelocity () |
MPHUnit | createMPHLuminousFlux () |
MPHUnit is a Unit with baseUnits fixed by its constructors, see MPHExpnt.
setBaseUnitExponent throws an exception if any other string is passed in as a baseUnit. MPHUnit.hpp declares related operators and UnitFactory callback functions.
openstudio::MPHUnit::MPHUnit | ( | const MPHExpnt & | exponents = MPHExpnt() , |
int | scaleExponent = 0 , |
||
const std::string & | prettyString = "" |
||
) |
Default constructor.
[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::MPHUnit::MPHUnit | ( | const std::string & | scaleAbbreviation, |
const MPHExpnt & | exponents = MPHExpnt() , |
||
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 |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
Lumen (lm) = cd*sr.
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
Miles per hour (mph) = mi/h.
|
related |
|
related |