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

#include "Misc1Unit.hpp"

Inheritance diagram for openstudio::Misc1Unit:

Public Member Functions

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

Related Functions

typedef std::vector< Misc1UnitMisc1UnitVector
typedef boost::optional
< Misc1Unit
OptionalMisc1Unit
Misc1Unit createMisc1Pressure ()
Misc1Unit createMisc1Length ()
Misc1Unit createMisc1Time ()
Misc1Unit createMisc1Temperature ()
Misc1Unit createMisc1ElectricCurrent ()
Misc1Unit createMisc1LuminousIntensity ()
Misc1Unit createMisc1AmountOfSubstance ()
Misc1Unit createMisc1Angle ()
Misc1Unit createMisc1SolidAngle ()
Misc1Unit createMisc1People ()
Misc1Unit createMisc1Volume ()
Misc1Unit createMisc1LuminousFlux ()

Detailed Description

Misc1Unit is a Unit with baseUnits fixed by its constructors, see Misc1Expnt.

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

Constructor & Destructor Documentation

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

Default constructor.

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::Misc1Unit::Misc1Unit ( const std::string &  scaleAbbreviation,
const Misc1Expnt exponents = Misc1Expnt(),
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::Misc1Unit::~Misc1Unit ( )
inlinevirtual

Friends And Related Function Documentation

Misc1Unit createMisc1AmountOfSubstance ( )
related
Misc1Unit createMisc1Angle ( )
related
Misc1Unit createMisc1ElectricCurrent ( )
related
Misc1Unit createMisc1Length ( )
related
Misc1Unit createMisc1LuminousFlux ( )
related

Lumen (lm) = cd*sr.

Misc1Unit createMisc1LuminousIntensity ( )
related
Misc1Unit createMisc1People ( )
related
Misc1Unit createMisc1Pressure ( )
related
Misc1Unit createMisc1SolidAngle ( )
related
Misc1Unit createMisc1Temperature ( )
related
Misc1Unit createMisc1Time ( )
related
Misc1Unit createMisc1Volume ( )
related

Liters (L).

typedef std::vector<Misc1Unit> Misc1UnitVector
related
typedef boost::optional<Misc1Unit> OptionalMisc1Unit
related