OpenStudioCore:utilities
 AllClasses Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages

#include "CFMUnit.hpp"

Inheritance diagram for openstudio::CFMUnit:

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< CFMUnitCFMUnitVector
typedef boost::optional< CFMUnitOptionalCFMUnit
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 ()

Detailed Description

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.

Constructor & Destructor Documentation

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" 
Parameters
[in]exponentsholds the exponents for each base unit.
[in]scaleExponentexponent for scale. For instance 3 for kilo.
[in]prettyStringoptional 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.

Parameters
[in]scaleAbbreviationis string equal to a scale abbreviation. For instance "k" for kilo.
[in]exponentsholds the exponents for each base unit.
[in]prettyStringoptional string to use in place of standardString.
virtual openstudio::CFMUnit::~CFMUnit ( )
inlinevirtual

Friends And Related Function Documentation

typedef std::vector<CFMUnit> CFMUnitVector
related
CFMUnit createCFMAmountOfSubstance ( )
related
CFMUnit createCFMAngle ( )
related
CFMUnit createCFMCurrency ( )
related
CFMUnit createCFMCycle ( )
related
CFMUnit createCFMElectricCurrent ( )
related
CFMUnit createCFMFrequency ( )
related

Rotations per minute (rpm) = cycles/min.

CFMUnit createCFMIlluminance ( )
related

Foot-candles (fc) = lm/ft^2 = cd*sr/ft^2.

CFMUnit createCFMLength ( )
related
CFMUnit createCFMLuminousFlux ( )
related

Lumen (lm) = cd*sr.

CFMUnit createCFMLuminousIntensity ( )
related
CFMUnit createCFMPeople ( )
related
CFMUnit createCFMPower ( )
related
CFMUnit createCFMSolidAngle ( )
related
CFMUnit createCFMTemperature ( )
related
CFMUnit createCFMTime ( )
related
CFMUnit createCFMVolumetricFlowrate ( )
related

Cubic feet per minute (cfm) = ft^3/min.

typedef boost::optional<CFMUnit> OptionalCFMUnit
related