#include <QuantityFactory.hpp>
◆ QuantityFactory() [1/2]
openstudio::QuantityFactory::QuantityFactory |
( |
const QuantityFactory & | other | ) |
|
|
delete |
◆ QuantityFactory() [2/2]
◆ createQuantity() [1/4]
boost::optional< Quantity > openstudio::QuantityFactory::createQuantity |
( |
const std::string & | quantityString | ) |
const |
Parses quantity string to separate the value from the unit.
Then creates the quantity with the help of UnitFactory. Uses openstudio::getSystem to intuit the appropriate system, if possible.
◆ createQuantity() [2/4]
boost::optional< Quantity > openstudio::QuantityFactory::createQuantity |
( |
const std::string & | quantityString, |
|
|
UnitSystem | system ) const |
Parses quantity string to separate the value from the unit.
Then creates the quantity with the help of UnitFactory. system specifies the preferred unit system–it does not guarantee that the returned result will be in that system.
◆ createQuantity() [3/4]
boost::optional< Quantity > openstudio::QuantityFactory::createQuantity |
( |
double | value, |
|
|
const std::string & | unitString ) const |
◆ createQuantity() [4/4]
boost::optional< Quantity > openstudio::QuantityFactory::createQuantity |
( |
double | value, |
|
|
const std::string & | unitString, |
|
|
UnitSystem | system ) const |
Creates a quantity from value and unitString, which is passed to UnitFactory.
system specifies the preferred unit system–it does not guarantee that the returned result will be in that system.
◆ instance()
◆ operator=() [1/2]
◆ operator=() [2/2]