#include "CFMUnit.hpp"
Public Member Functions | |
CFMUnit (const CFMExpnt &exponents=CFMExpnt(), int scaleExponent=0, const std::string &prettyString="") | |
CFMUnit (const std::string &scaleAbbreviation, const CFMExpnt &exponents=CFMExpnt(), const std::string &prettyString="") | |
virtual | ~CFMUnit () |
Related Functions | |
typedef std::vector< CFMUnit > | CFMUnitVector |
typedef boost::optional< CFMUnit > | OptionalCFMUnit |
CFMUnit | createCFMLength () |
CFMUnit | createCFMTime () |
CFMUnit | createCFMPower () |
CFMUnit | createCFMTemperature () |
CFMUnit | createCFMElectricCurrent () |
CFMUnit | createCFMLuminousIntensity () |
CFMUnit | createCFMAmountOfSubstance () |
CFMUnit | createCFMAngle () |
CFMUnit | createCFMSolidAngle () |
CFMUnit | createCFMPeople () |
CFMUnit | createCFMCycle () |
CFMUnit | createCFMCurrency () |
CFMUnit | createCFMVolumetricFlowrate () |
CFMUnit | createCFMLuminousFlux () |
CFMUnit | createCFMIlluminance () |
CFMUnit | createCFMFrequency () |
CFMUnit is a Unit with baseUnits fixed by its constructors, see CFMExpnt.
setBaseUnitExponent throws an exception if any other string is passed in as a baseUnit. CFMUnit.hpp declares related operators and UnitFactory callback functions.
openstudio::CFMUnit::CFMUnit | ( | const CFMExpnt & | exponents = CFMExpnt() , |
int | scaleExponent = 0 , |
||
const std::string & | prettyString = "" |
||
) |
Default constructor.
Example:
CFMUnit myPower(CFMExpnt(0,0,1)); std::cout << myPower; // produces "ton"
[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::CFMUnit::CFMUnit | ( | const std::string & | scaleAbbreviation, |
const CFMExpnt & | exponents = CFMExpnt() , |
||
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 |
Rotations per minute (rpm) = cycles/min.
|
related |
Foot-candles (fc) = lm/ft^2 = cd*sr/ft^2.
|
related |
|
related |
Lumen (lm) = cd*sr.
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
Cubic feet per minute (cfm) = ft^3/min.
|
related |