OpenStudio:utilities
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Attributes | List of all members
openstudio::Scale Struct Reference

#include <Scale.hpp>

Public Attributes

std::string abbr
 abbreviation, such as "k", as in kN = kilo-Newtons. More...
 
int exponent
 base-10 exponent. For instance, 3 for kilo = 10^3. More...
 
std::string name
 full name, i.e. kilo, mega, etc. More...
 
double value
 full value of the scale. For instance, 1000 for kilo. More...
 

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.