47 #ifndef OME_COMMON_UNITS_TEMPERATURE_H 48 #define OME_COMMON_UNITS_TEMPERATURE_H 50 #include <ome/common/config.h> 51 #include <ome/common/units/types.h> 53 #include <boost/units/base_units/si/kelvin.hpp> 54 #include <boost/units/base_units/temperature/celsius.hpp> 55 #include <boost/units/base_units/temperature/fahrenheit.hpp> 56 #include <boost/units/unit.hpp> 57 #include <boost/units/quantity.hpp> 58 #include <boost/units/systems/si.hpp> 75 typedef boost::units::si::kelvin_base_unit::unit_type
kelvin_unit;
84 typedef boost::units::temperature::celsius_base_unit::unit_type
celsius_unit;
91 typedef boost::units::temperature::fahrenheit_base_unit::unit_type
fahrenheit_unit;
99 boost::units::temperature_dimension, 4> { };
164 template<>
struct base_unit_info<
ome::common::units::rankine_base_unit>
170 static std::string
name() {
return "rankine"; }
175 static std::string
symbol() {
return "R"; }
181 #endif // OME_COMMON_UNITS_TEMPERATURE_H BOOST_UNITS_STATIC_CONSTANT(radian, radian_unit)
Numeric constant for radian.
boost::units::absolute< fahrenheit_unit > fahrenheit_absolute_unit
Unit definition for absolute temperature in Fahrenheit.
Definition: temperature.h:124
quantity< kelvin_absolute_unit > kelvin_absolute_quantity
Measured quantity in absolute kelvin.
Definition: temperature.h:114
si::temperature temperature_unit
Unit definition for temperature.
Definition: temperature.h:70
quantity< si::temperature > temperature_quantity
Measured quantity in temperature.
Definition: temperature.h:72
static std::string symbol()
Unit symbol.
Definition: temperature.h:175
quantity< fahrenheit_absolute_unit > fahrenheit_absolute_quantity
Measured quantity in absolute Fahrenheit.
Definition: temperature.h:128
quantity< fahrenheit_unit > fahrenheit_quantity
Measured quantity in Fahrenheit.
Definition: temperature.h:95
rankine_base_unit::unit_type rankine_unit
Unit definition for relative temperature in Rankine.
Definition: temperature.h:101
Base unit for temperature in Rankine.
Definition: temperature.h:98
quantity< kelvin_unit > kelvin_quantity
Measured quantity in kelvin.
Definition: temperature.h:81
quantity< celsius_unit > celsius_quantity
Measured quantity in Celsius.
Definition: temperature.h:88
quantity< rankine_unit > rankine_quantity
Measured quantity in Rankine.
Definition: temperature.h:105
Open Microscopy Environment C++.
Definition: base64.h:48
boost::units::si::kelvin_base_unit::unit_type kelvin_unit
Unit definition for relative temperature in kelvin.
Definition: temperature.h:75
boost::units::absolute< celsius_unit > celsius_absolute_unit
Unit definition for absolute temperature in Celsius.
Definition: temperature.h:117
boost::units::temperature::fahrenheit_base_unit::unit_type fahrenheit_unit
Unit definition for relative temperature in Fahrenheit (not convertible to or from other units due to...
Definition: temperature.h:91
quantity< rankine_absolute_unit > rankine_absolute_quantity
Measured quantity in absolute Rankine.
Definition: temperature.h:135
boost::units::absolute< kelvin_unit > kelvin_absolute_unit
Unit definition for absolute temperature in kelvin.
Definition: temperature.h:108
boost::units::absolute< rankine_unit > rankine_absolute_unit
Unit definition for absolute temperature in Rankine.
Definition: temperature.h:131
boost::units::temperature::celsius_base_unit::unit_type celsius_unit
Unit definition for relative temperature in Celsius (not convertible to or from other units due to re...
Definition: temperature.h:84
static std::string name()
Unit name.
Definition: temperature.h:170
quantity< celsius_absolute_unit > celsius_absolute_quantity
Measured quantity in absolute Celsius.
Definition: temperature.h:121