40#if !defined(DISABLE_PREDEFINED_UNITS) || \
41 defined(ENABLE_PREDEFINED_ENERGY_UNITS)
45 unit<
std::ratio<4184, 1000>, joules>)
46UNIT_ADD(energy, kilowatt_hour, kilowatt_hours, kWh,
47 unit<
std::ratio<36, 10>, megajoules>)
49 unit<
std::ratio<1, 1000>, kilowatt_hours>)
50UNIT_ADD(energy, british_thermal_unit, british_thermal_units, BTU,
51 unit<
std::ratio<105505585262, 100000000>, joules>)
53 unit<
std::ratio<1055056, 1000>, joules>)
54UNIT_ADD(energy, british_thermal_unit_59, british_thermal_units_59, BTU59,
55 unit<
std::ratio<1054804, 1000>, joules>)
57 unit<
std::ratio<100000>, british_thermal_units_59>)
59 unit<
std::ratio<13558179483314004, 10000000000000000>, joules>)
64using namespace energy;
#define UNIT_ADD_CATEGORY_TRAIT(unitCategory)
Macro to create the is_category_unit type trait.
Definition: base.h:381
Definition: StdDeque.h:50
Unit Conversion Library namespace.
Definition: current.h:31
foot_pounds
Definition: torque.h:47
unit< std::ratio< 4184, 1000 >, joules > unit< std::ratio< 1, 1000 >, kilowatt_hours > british_thermal_units_iso
Definition: energy.h:52
UNIT_ADD(area, square_meter, square_meters, sq_m, unit< std::ratio< 1 >, units::category::area_unit >) UNIT_ADD(area
unit< std::ratio< 4184, 1000 >, joules > unit< std::ratio< 1, 1000 >, kilowatt_hours > british_thermal_unit_iso
Definition: energy.h:52
cal
Definition: energy.h:44
unit< std::ratio< 4184, 1000 >, joules > watt_hour
Definition: energy.h:48
unit< std::ratio< 4184, 1000 >, joules > Wh
Definition: energy.h:48
unit< std::ratio< 4184, 1000 >, joules > unit< std::ratio< 1, 1000 >, kilowatt_hours > unit< std::ratio< 1055056, 1000 >, joules > therms
Definition: energy.h:56
unit< std::ratio< 4184, 1000 >, joules > unit< std::ratio< 1, 1000 >, kilowatt_hours > unit< std::ratio< 1055056, 1000 >, joules > thm
Definition: energy.h:56
unit< std::ratio< 4184, 1000 >, joules > watt_hours
Definition: energy.h:48
unit< std::ratio< 4184, 1000 >, joules > unit< std::ratio< 1, 1000 >, kilowatt_hours > BTU_iso
Definition: energy.h:52
calories
Definition: energy.h:44
UNIT_ADD_WITH_METRIC_PREFIXES(current, ampere, amperes, A, unit< std::ratio< 1 >, units::category::current_unit >) using namespace current
unit< std::ratio< 4184, 1000 >, joules > unit< std::ratio< 1, 1000 >, kilowatt_hours > unit< std::ratio< 1055056, 1000 >, joules > therm
Definition: energy.h:56
foot_pound
Definition: torque.h:47
calorie
Definition: energy.h:44
Class representing SI base unit types.
Definition: base.h:758
Type representing an arbitrary unit.
Definition: base.h:884