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

#include "Scale.hpp"

Public Attributes

std::string abbr
int exponent
std::string name
double value

Detailed Description

Structure for holding scale prefixes such as kilo and centi.

Logical operators and some other related typedefs and functions are declared in Scale.hpp. Scale arithmetic is declared in ScaleFactory.hpp, since openstudio::ScaleFactory is the object that makes such operations possible by keeping track of what scales are available.

Member Data Documentation

std::string openstudio::Scale::abbr

abbreviation, such as "k", as in kN = kilo-Newtons.

int openstudio::Scale::exponent

base-10 exponent. For instance, 3 for kilo = 10^3.

std::string openstudio::Scale::name

full name, i.e. kilo, mega, etc.

double openstudio::Scale::value

full value of the scale. For instance, 1000 for kilo.