47 #ifndef OME_COMMON_UNITS_PRESSURE_H 48 #define OME_COMMON_UNITS_PRESSURE_H 50 #include <ome/common/config.h> 51 #include <ome/common/units/types.h> 53 #include <boost/units/base_units/metric/bar.hpp> 54 #include <boost/units/base_units/metric/atmosphere.hpp> 55 #include <boost/units/base_units/metric/torr.hpp> 56 #include <boost/units/base_units/metric/mmHg.hpp> 57 #include <boost/units/unit.hpp> 58 #include <boost/units/quantity.hpp> 59 #include <boost/units/systems/si.hpp> 62 #pragma push_macro("pascal") 81 typedef make_scaled_unit<si::pressure,scale<10,static_rational<-24>>>::type
yoctopascal_unit;
83 typedef make_scaled_unit<si::pressure,scale<10,static_rational<-21>>>::type
zeptopascal_unit;
85 typedef make_scaled_unit<si::pressure,scale<10,static_rational<-18>>>::type
attopascal_unit;
87 typedef make_scaled_unit<si::pressure,scale<10,static_rational<-15>>>::type
femtopascal_unit;
89 typedef make_scaled_unit<si::pressure,scale<10,static_rational<-12>>>::type
picopascal_unit;
91 typedef make_scaled_unit<si::pressure,scale<10,static_rational< -9>>>::type
nanopascal_unit;
93 typedef make_scaled_unit<si::pressure,scale<10,static_rational< -6>>>::type
micropascal_unit;
95 typedef make_scaled_unit<si::pressure,scale<10,static_rational< -3>>>::type
millipascal_unit;
97 typedef make_scaled_unit<si::pressure,scale<10,static_rational< -2>>>::type
centipascal_unit;
99 typedef make_scaled_unit<si::pressure,scale<10,static_rational< -1>>>::type
decipascal_unit;
101 typedef make_scaled_unit<si::pressure,scale<10,static_rational< 0>>>::type
pascal_unit;
103 typedef make_scaled_unit<si::pressure,scale<10,static_rational< 1>>>::type
dekapascal_unit;
105 typedef make_scaled_unit<si::pressure,scale<10,static_rational< 1>>>::type
decapascal_unit;
107 typedef make_scaled_unit<si::pressure,scale<10,static_rational< 2>>>::type
hectopascal_unit;
109 typedef make_scaled_unit<si::pressure,scale<10,static_rational< 3>>>::type
kilopascal_unit;
111 typedef make_scaled_unit<si::pressure,scale<10,static_rational< 6>>>::type
megapascal_unit;
113 typedef make_scaled_unit<si::pressure,scale<10,static_rational< 9>>>::type
gigapascal_unit;
115 typedef make_scaled_unit<si::pressure,scale<10,static_rational< 12>>>::type
terapascal_unit;
117 typedef make_scaled_unit<si::pressure,scale<10,static_rational< 15>>>::type
petapascal_unit;
119 typedef make_scaled_unit<si::pressure,scale<10,static_rational< 18>>>::type
exapascal_unit;
121 typedef make_scaled_unit<si::pressure,scale<10,static_rational< 21>>>::type
zettapascal_unit;
123 typedef make_scaled_unit<si::pressure,scale<10,static_rational< 24>>>::type
yottapascal_unit;
261 typedef scaled_base_unit<boost::units::metric::bar_base_unit,scale<10,static_rational< -3>>>::unit_type
millibar_unit;
263 typedef scaled_base_unit<boost::units::metric::bar_base_unit,scale<10,static_rational< -2>>>::unit_type
centibar_unit;
265 typedef scaled_base_unit<boost::units::metric::bar_base_unit,scale<10,static_rational< -1>>>::unit_type
decibar_unit;
267 typedef scaled_base_unit<boost::units::metric::bar_base_unit,scale<10,static_rational< 0>>>::unit_type
bar_unit;
269 typedef scaled_base_unit<boost::units::metric::bar_base_unit,scale<10,static_rational< 1>>>::unit_type
dekabar_unit;
271 typedef scaled_base_unit<boost::units::metric::bar_base_unit,scale<10,static_rational< 1>>>::unit_type
decabar_unit;
273 typedef scaled_base_unit<boost::units::metric::bar_base_unit,scale<10,static_rational< 2>>>::unit_type
hectobar_unit;
275 typedef scaled_base_unit<boost::units::metric::bar_base_unit,scale<10,static_rational< 3>>>::unit_type
kilobar_unit;
277 typedef scaled_base_unit<boost::units::metric::bar_base_unit,scale<10,static_rational< 6>>>::unit_type
megabar_unit;
347 boost::units::pressure_dimension, 3> { };
356 typedef boost::units::metric::torr_base_unit::unit_type
torr_unit;
363 typedef scaled_base_unit<boost::units::metric::torr_base_unit,scale<10,static_rational< -3>>>::unit_type
millitorr_unit;
370 typedef boost::units::metric::mmHg_base_unit::unit_type
mmHg_unit;
393 template<>
struct base_unit_info<
ome::common::units::psi_base_unit>
399 static std::string
name() {
return "pound-force per square inch"; }
404 static std::string
symbol() {
return "lbf/in^2"; }
411 #pragma pop_macro("pascal") 414 #endif // OME_COMMON_UNITS_PRESSURE_H quantity< atmosphere_unit > atmosphere_quantity
Measured quantity in atmospheres.
Definition: pressure.h:343
BOOST_UNITS_STATIC_CONSTANT(radian, radian_unit)
Numeric constant for radian.
make_scaled_unit< si::pressure, scale< 10, static_rational<-18 > > >::type attopascal_unit
Unit definition for attopascal pressure.
Definition: pressure.h:85
make_scaled_unit< si::pressure, scale< 10, static_rational< 1 > > >::type dekapascal_unit
Unit definition for dekapascal pressure.
Definition: pressure.h:103
boost::units::metric::mmHg_base_unit::unit_type mmHg_unit
Unit definition for mmHg pressure.
Definition: pressure.h:370
make_scaled_unit< si::pressure, scale< 10, static_rational< 18 > > >::type exapascal_unit
Unit definition for exapascal pressure.
Definition: pressure.h:119
make_scaled_unit< si::pressure, scale< 10, static_rational< 24 > > >::type yottapascal_unit
Unit definition for yottapascal pressure.
Definition: pressure.h:123
make_scaled_unit< si::pressure, scale< 10, static_rational< -3 > > >::type millipascal_unit
Unit definition for millipascal pressure.
Definition: pressure.h:95
quantity< mmHg_unit > mmHg_quantity
Measured quantity in mmHg.
Definition: pressure.h:374
quantity< femtopascal_unit > femtopascal_quantity
Measured quantity in femtopascals.
Definition: pressure.h:222
Base unit for pound-force per square inch (psi) pressure.
Definition: pressure.h:346
quantity< hectopascal_unit > hectopascal_quantity
Measured quantity in hectopascals.
Definition: pressure.h:242
quantity< dekabar_unit > dekabar_quantity
Measured quantity in dekabars.
Definition: pressure.h:326
quantity< kilopascal_unit > kilopascal_quantity
Measured quantity in kilopascals.
Definition: pressure.h:244
make_scaled_unit< si::pressure, scale< 10, static_rational<-15 > > >::type femtopascal_unit
Unit definition for femtopascal pressure.
Definition: pressure.h:87
make_scaled_unit< si::pressure, scale< 10, static_rational<-12 > > >::type picopascal_unit
Unit definition for picopascal pressure.
Definition: pressure.h:89
make_scaled_unit< si::pressure, scale< 10, static_rational< -6 > > >::type micropascal_unit
Unit definition for micropascal pressure.
Definition: pressure.h:93
scaled_base_unit< boost::units::metric::bar_base_unit, scale< 10, static_rational< 1 > > >::unit_type decabar_unit
Unit definition for decabar pressure.
Definition: pressure.h:271
quantity< zeptopascal_unit > zeptopascal_quantity
Measured quantity in zeptopascals.
Definition: pressure.h:218
quantity< si::pressure > pressure_quantity
Measured quantity (pressure, pascals).
Definition: pressure.h:78
make_scaled_unit< si::pressure, scale< 10, static_rational< 9 > > >::type gigapascal_unit
Unit definition for gigapascal pressure.
Definition: pressure.h:113
make_scaled_unit< si::pressure, scale< 10, static_rational< -9 > > >::type nanopascal_unit
Unit definition for nanopascal pressure.
Definition: pressure.h:91
quantity< dekapascal_unit > dekapascal_quantity
Measured quantity in dekapascals.
Definition: pressure.h:238
quantity< nanopascal_unit > nanopascal_quantity
Measured quantity in nanopascals.
Definition: pressure.h:226
scaled_base_unit< boost::units::metric::bar_base_unit, scale< 10, static_rational< -3 > > >::unit_type millibar_unit
Unit definition for millibar pressure.
Definition: pressure.h:261
quantity< torr_unit > torr_quantity
Measured quantity in Torrs.
Definition: pressure.h:360
quantity< decibar_unit > decibar_quantity
Measured quantity in decibars.
Definition: pressure.h:322
make_scaled_unit< si::pressure, scale< 10, static_rational< 15 > > >::type petapascal_unit
Unit definition for petapascal pressure.
Definition: pressure.h:117
quantity< kilobar_unit > kilobar_quantity
Measured quantity in kilobars.
Definition: pressure.h:332
make_scaled_unit< si::pressure, scale< 10, static_rational<-21 > > >::type zeptopascal_unit
Unit definition for zeptopascal pressure.
Definition: pressure.h:83
quantity< exapascal_unit > exapascal_quantity
Measured quantity in exapascals.
Definition: pressure.h:254
quantity< psi_unit > psi_quantity
Measured quantity in pound-force per square inch (psi).
Definition: pressure.h:353
scaled_base_unit< boost::units::metric::bar_base_unit, scale< 10, static_rational< 0 > > >::unit_type bar_unit
Unit definition for bar pressure.
Definition: pressure.h:267
quantity< petapascal_unit > petapascal_quantity
Measured quantity in petapascals.
Definition: pressure.h:252
make_scaled_unit< si::pressure, scale< 10, static_rational< -1 > > >::type decipascal_unit
Unit definition for decipascal pressure.
Definition: pressure.h:99
quantity< megapascal_unit > megapascal_quantity
Measured quantity in megapascals.
Definition: pressure.h:246
quantity< millitorr_unit > millitorr_quantity
Measured quantity in milliTorrs.
Definition: pressure.h:367
quantity< millibar_unit > millibar_quantity
Measured quantity in millibars.
Definition: pressure.h:318
make_scaled_unit< si::pressure, scale< 10, static_rational<-24 > > >::type yoctopascal_unit
Unit definition for yoctopascal pressure.
Definition: pressure.h:81
scaled_base_unit< boost::units::metric::bar_base_unit, scale< 10, static_rational< 3 > > >::unit_type kilobar_unit
Unit definition for kilobar pressure.
Definition: pressure.h:275
quantity< hectobar_unit > hectobar_quantity
Measured quantity in hectobars.
Definition: pressure.h:330
make_scaled_unit< si::pressure, scale< 10, static_rational< 6 > > >::type megapascal_unit
Unit definition for megapascal pressure.
Definition: pressure.h:111
boost::units::metric::torr_base_unit::unit_type torr_unit
Unit definition for Torr pressure.
Definition: pressure.h:356
quantity< attopascal_unit > attopascal_quantity
Measured quantity in attopascals.
Definition: pressure.h:220
psi_base_unit::unit_type psi_unit
Unit definition for pound-force per square inch (psi) pressure.
Definition: pressure.h:349
scaled_base_unit< boost::units::metric::bar_base_unit, scale< 10, static_rational< 6 > > >::unit_type megabar_unit
Unit definition for megabar pressure.
Definition: pressure.h:277
Open Microscopy Environment C++.
Definition: base64.h:48
quantity< zettapascal_unit > zettapascal_quantity
Measured quantity in zettapascals.
Definition: pressure.h:256
scaled_base_unit< boost::units::metric::bar_base_unit, scale< 10, static_rational< -2 > > >::unit_type centibar_unit
Unit definition for centibar pressure.
Definition: pressure.h:263
quantity< megabar_unit > megabar_quantity
Measured quantity in megabars.
Definition: pressure.h:334
make_scaled_unit< si::pressure, scale< 10, static_rational< -2 > > >::type centipascal_unit
Unit definition for centipascal pressure.
Definition: pressure.h:97
quantity< micropascal_unit > micropascal_quantity
Measured quantity in micropascals.
Definition: pressure.h:228
quantity< decapascal_unit > decapascal_quantity
Measured quantity in decapascals.
Definition: pressure.h:240
scaled_base_unit< boost::units::metric::bar_base_unit, scale< 10, static_rational< 1 > > >::unit_type dekabar_unit
Unit definition for dekabar pressure.
Definition: pressure.h:269
quantity< decabar_unit > decabar_quantity
Measured quantity in decabars.
Definition: pressure.h:328
quantity< gigapascal_unit > gigapascal_quantity
Measured quantity in gigapascals.
Definition: pressure.h:248
quantity< centipascal_unit > centipascal_quantity
Measured quantity in centipascals.
Definition: pressure.h:232
scaled_base_unit< boost::units::metric::bar_base_unit, scale< 10, static_rational< 2 > > >::unit_type hectobar_unit
Unit definition for hectobar pressure.
Definition: pressure.h:273
quantity< pascal_unit > pascal_quantity
Measured quantity in pascals.
Definition: pressure.h:236
si::pressure pressure_unit
Unit definition for pressure.
Definition: pressure.h:76
scaled_base_unit< boost::units::metric::torr_base_unit, scale< 10, static_rational< -3 > > >::unit_type millitorr_unit
Unit definition for milliTorr pressure.
Definition: pressure.h:363
make_scaled_unit< si::pressure, scale< 10, static_rational< 3 > > >::type kilopascal_unit
Unit definition for kilopascal pressure.
Definition: pressure.h:109
make_scaled_unit< si::pressure, scale< 10, static_rational< 0 > > >::type pascal_unit
Unit definition for pascal pressure.
Definition: pressure.h:101
quantity< decipascal_unit > decipascal_quantity
Measured quantity in decipascals.
Definition: pressure.h:234
quantity< terapascal_unit > terapascal_quantity
Measured quantity in terapascals.
Definition: pressure.h:250
scaled_base_unit< boost::units::metric::bar_base_unit, scale< 10, static_rational< -1 > > >::unit_type decibar_unit
Unit definition for decibar pressure.
Definition: pressure.h:265
boost::units::metric::atmosphere_base_unit::unit_type atmosphere_unit
Unit definition for atmosphere pressure.
Definition: pressure.h:337
make_scaled_unit< si::pressure, scale< 10, static_rational< 1 > > >::type decapascal_unit
Unit definition for decapascal pressure.
Definition: pressure.h:105
make_scaled_unit< si::pressure, scale< 10, static_rational< 2 > > >::type hectopascal_unit
Unit definition for hectopascal pressure.
Definition: pressure.h:107
make_scaled_unit< si::pressure, scale< 10, static_rational< 12 > > >::type terapascal_unit
Unit definition for terapascal pressure.
Definition: pressure.h:115
quantity< centibar_unit > centibar_quantity
Measured quantity in centibars.
Definition: pressure.h:320
quantity< bar_unit > bar_quantity
Measured quantity in bars.
Definition: pressure.h:324
quantity< yottapascal_unit > yottapascal_quantity
Measured quantity in yottapascals.
Definition: pressure.h:258
quantity< millipascal_unit > millipascal_quantity
Measured quantity in millipascals.
Definition: pressure.h:230
static std::string symbol()
Unit symbol.
Definition: pressure.h:404
static std::string name()
Unit name.
Definition: pressure.h:399
quantity< picopascal_unit > picopascal_quantity
Measured quantity in picopascals.
Definition: pressure.h:224
make_scaled_unit< si::pressure, scale< 10, static_rational< 21 > > >::type zettapascal_unit
Unit definition for zettapascal pressure.
Definition: pressure.h:121
quantity< yoctopascal_unit > yoctopascal_quantity
Measured quantity in yoctopascals.
Definition: pressure.h:216