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

#include "BTUUnit.hpp"

Inheritance diagram for openstudio::BTUUnit:

Public Member Functions

 BTUUnit (const BTUExpnt &exponents=BTUExpnt(), int scaleExponent=0, const std::string &prettyString="")
 BTUUnit (const std::string &scaleAbbreviation, const BTUExpnt &exponents=BTUExpnt(), const std::string &prettyString="")
virtual ~BTUUnit ()

Related Functions

typedef std::vector< BTUUnitBTUUnitVector
typedef boost::optional< BTUUnitOptionalBTUUnit
BTUUnit createBTUEnergy ()
BTUUnit createBTULength ()
BTUUnit createBTUTime ()
BTUUnit createBTUTemperature ()
BTUUnit createBTUElectricCurrent ()
BTUUnit createBTULuminousIntensity ()
BTUUnit createBTUAmountOfSubstance ()
BTUUnit createBTUAngle ()
BTUUnit createBTUSolidAngle ()
BTUUnit createBTUPeople ()
BTUUnit createBTUCycle ()
BTUUnit createBTUCurrency ()
BTUUnit createBTUPower ()
BTUUnit createBTULuminousFlux ()
BTUUnit createBTUIlluminance ()

Detailed Description

BTUUnit is a Unit with baseUnits fixed by its constructors, see BTUExpnt.

setBaseUnitExponent throws an exception if any other string is passed in as a baseUnit. BTUUnit.hpp declares related operators and UnitFactory callback functions.

Constructor & Destructor Documentation

openstudio::BTUUnit::BTUUnit ( const BTUExpnt exponents = BTUExpnt(),
int  scaleExponent = 0,
const std::string &  prettyString = "" 
)

Default constructor.

Example:

BTUUnit myEnergy(BtuExpnt(1),3);
std::cout << myEnergy; // produces "kBtu" 
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::BTUUnit::BTUUnit ( const std::string &  scaleAbbreviation,
const BTUExpnt exponents = BTUExpnt(),
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::BTUUnit::~BTUUnit ( )
inlinevirtual

Friends And Related Function Documentation

typedef std::vector<BTUUnit> BTUUnitVector
related
BTUUnit createBTUAmountOfSubstance ( )
related
BTUUnit createBTUAngle ( )
related
BTUUnit createBTUCurrency ( )
related
BTUUnit createBTUCycle ( )
related
BTUUnit createBTUElectricCurrent ( )
related
BTUUnit createBTUEnergy ( )
related
BTUUnit createBTUIlluminance ( )
related

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

BTUUnit createBTULength ( )
related
BTUUnit createBTULuminousFlux ( )
related

Lumen (lm) = cd*sr.

BTUUnit createBTULuminousIntensity ( )
related
BTUUnit createBTUPeople ( )
related
BTUUnit createBTUPower ( )
related

Btu/h.

BTUUnit createBTUSolidAngle ( )
related
BTUUnit createBTUTemperature ( )
related
BTUUnit createBTUTime ( )
related
typedef boost::optional<BTUUnit> OptionalBTUUnit
related