ome-common 5.3.2

pressure.h
Go to the documentation of this file.
1 /*
2 * #%L
3 * OME-COMMON C++ library for C++ compatibility/portability
4 * %%
5 * Copyright © 2015 Open Microscopy Environment:
6 * - Massachusetts Institute of Technology
7 * - National Institutes of Health
8 * - University of Dundee
9 * - Board of Regents of the University of Wisconsin-Madison
10 * - Glencoe Software, Inc.
11 * %%
12 * Redistribution and use in source and binary forms, with or without
13 * modification, are permitted provided that the following conditions are met:
14 *
15 * 1. Redistributions of source code must retain the above copyright notice,
16 * this list of conditions and the following disclaimer.
17 * 2. Redistributions in binary form must reproduce the above copyright notice,
18 * this list of conditions and the following disclaimer in the documentation
19 * and/or other materials provided with the distribution.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
25 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31 * POSSIBILITY OF SUCH DAMAGE.
32 *
33 * The views and conclusions contained in the software and documentation are
34 * those of the authors and should not be interpreted as representing official
35 * policies, either expressed or implied, of any organization.
36 * #L%
37 */
38
47 #ifndef OME_COMMON_UNITS_PRESSURE_H
48 #define OME_COMMON_UNITS_PRESSURE_H
49
50 #include <ome/common/config.h>
51 #include <ome/common/units/types.h>
52
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>
60
61 #ifdef _MSC_VER
62 #pragma push_macro("pascal")
63 #undef pascal
64 #endif
65
66 namespace ome
67 {
68 namespace common
69 {
70 namespace units
71 {
72
73 // Pressure types, constants and quantities.
74
76 typedef si::pressure pressure_unit;
78 typedef quantity<si::pressure> pressure_quantity;
79
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;
124
126 BOOST_UNITS_STATIC_CONSTANT(yoctopascal, yoctopascal_unit);
128 BOOST_UNITS_STATIC_CONSTANT(zeptopascal, zeptopascal_unit);
130 BOOST_UNITS_STATIC_CONSTANT(attopascal, attopascal_unit);
132 BOOST_UNITS_STATIC_CONSTANT(femtopascal, femtopascal_unit);
134 BOOST_UNITS_STATIC_CONSTANT(picopascal, picopascal_unit);
136 BOOST_UNITS_STATIC_CONSTANT(nanopascal, nanopascal_unit);
138 BOOST_UNITS_STATIC_CONSTANT(micropascal, micropascal_unit);
140 BOOST_UNITS_STATIC_CONSTANT(millipascal, millipascal_unit);
142 BOOST_UNITS_STATIC_CONSTANT(centipascal, centipascal_unit);
144 BOOST_UNITS_STATIC_CONSTANT(decipascal, decipascal_unit);
146 BOOST_UNITS_STATIC_CONSTANT(pascal, pascal_unit);
148 BOOST_UNITS_STATIC_CONSTANT(dekapascal, dekapascal_unit);
150 BOOST_UNITS_STATIC_CONSTANT(decapascal, decapascal_unit);
152 BOOST_UNITS_STATIC_CONSTANT(hectopascal, hectopascal_unit);
154 BOOST_UNITS_STATIC_CONSTANT(kilopascal, kilopascal_unit);
156 BOOST_UNITS_STATIC_CONSTANT(megapascal, megapascal_unit);
158 BOOST_UNITS_STATIC_CONSTANT(gigapascal, gigapascal_unit);
160 BOOST_UNITS_STATIC_CONSTANT(terapascal, terapascal_unit);
162 BOOST_UNITS_STATIC_CONSTANT(petapascal, petapascal_unit);
164 BOOST_UNITS_STATIC_CONSTANT(exapascal, exapascal_unit);
166 BOOST_UNITS_STATIC_CONSTANT(zettapascal, zettapascal_unit);
168 BOOST_UNITS_STATIC_CONSTANT(yottapascal, yottapascal_unit);
169
171 BOOST_UNITS_STATIC_CONSTANT(yoctopascals, yoctopascal_unit);
173 BOOST_UNITS_STATIC_CONSTANT(zeptopascals, zeptopascal_unit);
175 BOOST_UNITS_STATIC_CONSTANT(attopascals, attopascal_unit);
177 BOOST_UNITS_STATIC_CONSTANT(femtopascals, femtopascal_unit);
179 BOOST_UNITS_STATIC_CONSTANT(picopascals, picopascal_unit);
181 BOOST_UNITS_STATIC_CONSTANT(nanopascals, nanopascal_unit);
183 BOOST_UNITS_STATIC_CONSTANT(micropascals, micropascal_unit);
185 BOOST_UNITS_STATIC_CONSTANT(millipascals, millipascal_unit);
187 BOOST_UNITS_STATIC_CONSTANT(centipascals, centipascal_unit);
189 BOOST_UNITS_STATIC_CONSTANT(decipascals, decipascal_unit);
191 BOOST_UNITS_STATIC_CONSTANT(pascals, pascal_unit);
193 BOOST_UNITS_STATIC_CONSTANT(dekapascals, dekapascal_unit);
195 BOOST_UNITS_STATIC_CONSTANT(decapascals, decapascal_unit);
197 BOOST_UNITS_STATIC_CONSTANT(hectopascals, hectopascal_unit);
199 BOOST_UNITS_STATIC_CONSTANT(kilopascals, kilopascal_unit);
201 BOOST_UNITS_STATIC_CONSTANT(megapascals, megapascal_unit);
203 BOOST_UNITS_STATIC_CONSTANT(gigapascals, gigapascal_unit);
205 BOOST_UNITS_STATIC_CONSTANT(terapascals, terapascal_unit);
207 BOOST_UNITS_STATIC_CONSTANT(petapascals, petapascal_unit);
209 BOOST_UNITS_STATIC_CONSTANT(exapascals, exapascal_unit);
211 BOOST_UNITS_STATIC_CONSTANT(zettapascals, zettapascal_unit);
213 BOOST_UNITS_STATIC_CONSTANT(yottapascals, yottapascal_unit);
214
216 typedef quantity<yoctopascal_unit> yoctopascal_quantity;
218 typedef quantity<zeptopascal_unit> zeptopascal_quantity;
220 typedef quantity<attopascal_unit> attopascal_quantity;
222 typedef quantity<femtopascal_unit> femtopascal_quantity;
224 typedef quantity<picopascal_unit> picopascal_quantity;
226 typedef quantity<nanopascal_unit> nanopascal_quantity;
228 typedef quantity<micropascal_unit> micropascal_quantity;
230 typedef quantity<millipascal_unit> millipascal_quantity;
232 typedef quantity<centipascal_unit> centipascal_quantity;
234 typedef quantity<decipascal_unit> decipascal_quantity;
236 typedef quantity<pascal_unit> pascal_quantity;
238 typedef quantity<dekapascal_unit> dekapascal_quantity;
240 typedef quantity<decapascal_unit> decapascal_quantity;
242 typedef quantity<hectopascal_unit> hectopascal_quantity;
244 typedef quantity<kilopascal_unit> kilopascal_quantity;
246 typedef quantity<megapascal_unit> megapascal_quantity;
248 typedef quantity<gigapascal_unit> gigapascal_quantity;
250 typedef quantity<terapascal_unit> terapascal_quantity;
252 typedef quantity<petapascal_unit> petapascal_quantity;
254 typedef quantity<exapascal_unit> exapascal_quantity;
256 typedef quantity<zettapascal_unit> zettapascal_quantity;
258 typedef quantity<yottapascal_unit> yottapascal_quantity;
259
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;
278
280 BOOST_UNITS_STATIC_CONSTANT(millibar, millibar_unit);
282 BOOST_UNITS_STATIC_CONSTANT(centibar, centibar_unit);
284 BOOST_UNITS_STATIC_CONSTANT(decibar, decibar_unit);
286 BOOST_UNITS_STATIC_CONSTANT(bar, bar_unit);
288 BOOST_UNITS_STATIC_CONSTANT(dekabar, dekabar_unit);
290 BOOST_UNITS_STATIC_CONSTANT(decabar, decabar_unit);
292 BOOST_UNITS_STATIC_CONSTANT(hectobar, hectobar_unit);
294 BOOST_UNITS_STATIC_CONSTANT(kilobar, kilobar_unit);
296 BOOST_UNITS_STATIC_CONSTANT(megabar, megabar_unit);
297
299 BOOST_UNITS_STATIC_CONSTANT(millibars, millibar_unit);
301 BOOST_UNITS_STATIC_CONSTANT(centibars, centibar_unit);
303 BOOST_UNITS_STATIC_CONSTANT(decibars, decibar_unit);
305 BOOST_UNITS_STATIC_CONSTANT(bars, bar_unit);
307 BOOST_UNITS_STATIC_CONSTANT(dekabars, dekabar_unit);
309 BOOST_UNITS_STATIC_CONSTANT(decabars, decabar_unit);
311 BOOST_UNITS_STATIC_CONSTANT(hectobars, hectobar_unit);
313 BOOST_UNITS_STATIC_CONSTANT(kilobars, kilobar_unit);
315 BOOST_UNITS_STATIC_CONSTANT(megabars, megabar_unit);
316
318 typedef quantity<millibar_unit> millibar_quantity;
320 typedef quantity<centibar_unit> centibar_quantity;
322 typedef quantity<decibar_unit> decibar_quantity;
324 typedef quantity<bar_unit> bar_quantity;
326 typedef quantity<dekabar_unit> dekabar_quantity;
328 typedef quantity<decabar_unit> decabar_quantity;
330 typedef quantity<hectobar_unit> hectobar_quantity;
332 typedef quantity<kilobar_unit> kilobar_quantity;
334 typedef quantity<megabar_unit> megabar_quantity;
335
337 typedef boost::units::metric::atmosphere_base_unit::unit_type atmosphere_unit;
339 BOOST_UNITS_STATIC_CONSTANT(atmosphere, atmosphere_unit);
341 BOOST_UNITS_STATIC_CONSTANT(atmospheres, atmosphere_unit);
343 typedef quantity<atmosphere_unit> atmosphere_quantity;
344
346 struct psi_base_unit : boost::units::base_unit<psi_base_unit,
347 boost::units::pressure_dimension, 3> { };
349 typedef psi_base_unit::unit_type psi_unit;
351 BOOST_UNITS_STATIC_CONSTANT(psi, psi_unit);
353 typedef quantity<psi_unit> psi_quantity;
354
356 typedef boost::units::metric::torr_base_unit::unit_type torr_unit;
358 BOOST_UNITS_STATIC_CONSTANT(torr, torr_unit);
360 typedef quantity<torr_unit> torr_quantity;
361
363 typedef scaled_base_unit<boost::units::metric::torr_base_unit,scale<10,static_rational< -3> > >::unit_type millitorr_unit;
365 BOOST_UNITS_STATIC_CONSTANT(millitorr, millitorr_unit);
367 typedef quantity<millitorr_unit> millitorr_quantity;
368
370 typedef boost::units::metric::mmHg_base_unit::unit_type mmHg_unit;
372 BOOST_UNITS_STATIC_CONSTANT(mmHg, mmHg_unit);
374 typedef quantity<mmHg_unit> mmHg_quantity;
375
376 }
377 }
378 }
379
381 BOOST_UNITS_DEFINE_CONVERSION_FACTOR(ome::common::units::psi_base_unit, si::pressure, double, 6894.7573); // exact conversion
383 BOOST_UNITS_DEFAULT_CONVERSION(ome::common::units::psi_base_unit, si::pressure);
384
385 namespace boost
386 {
387 namespace units
388 {
389
391 template<> struct base_unit_info<ome::common::units::psi_base_unit>
392 {
394 static std::string name() { return "pound-force per square inch"; }
396 static std::string symbol() { return "lbf/in^2"; }
397 };
398
399 }
400 }
401
402 #ifdef _MSC_VER
403 #pragma pop_macro("pascal")
404 #endif
405
406 #endif // OME_COMMON_UNITS_PRESSURE_H
407
408 /*
409 * Local Variables:
410 * mode:C++
411 * End:
412 */
ome::common::units::atmosphere_quantity
quantity< atmosphere_unit > atmosphere_quantity
Measured quantity in atmospheres.
Definition: pressure.h:343
ome::common::units::BOOST_UNITS_STATIC_CONSTANT
BOOST_UNITS_STATIC_CONSTANT(radian, radian_unit)
Numeric constant for radian.
ome::common::units::attopascal_unit
make_scaled_unit< si::pressure, scale< 10, static_rational<-18 > > >::type attopascal_unit
Unit definition for attopascal pressure.
Definition: pressure.h:85
ome::common::units::dekapascal_unit
make_scaled_unit< si::pressure, scale< 10, static_rational< 1 > > >::type dekapascal_unit
Unit definition for dekapascal pressure.
Definition: pressure.h:103
ome::common::units::mmHg_unit
boost::units::metric::mmHg_base_unit::unit_type mmHg_unit
Unit definition for mmHg pressure.
Definition: pressure.h:370
ome::common::units::exapascal_unit
make_scaled_unit< si::pressure, scale< 10, static_rational< 18 > > >::type exapascal_unit
Unit definition for exapascal pressure.
Definition: pressure.h:119
ome::common::units::yottapascal_unit
make_scaled_unit< si::pressure, scale< 10, static_rational< 24 > > >::type yottapascal_unit
Unit definition for yottapascal pressure.
Definition: pressure.h:123
ome::common::units::millipascal_unit
make_scaled_unit< si::pressure, scale< 10, static_rational< -3 > > >::type millipascal_unit
Unit definition for millipascal pressure.
Definition: pressure.h:95
ome::common::units::mmHg_quantity
quantity< mmHg_unit > mmHg_quantity
Measured quantity in mmHg.
Definition: pressure.h:374
ome::common::units::femtopascal_quantity
quantity< femtopascal_unit > femtopascal_quantity
Measured quantity in femtopascals.
Definition: pressure.h:222
ome::common::units::psi_base_unit
Base unit for pound-force per square inch (psi) pressure.
Definition: pressure.h:346
boost
Definition: length.h:576
ome::common::units::hectopascal_quantity
quantity< hectopascal_unit > hectopascal_quantity
Measured quantity in hectopascals.
Definition: pressure.h:242
ome::common::units::dekabar_quantity
quantity< dekabar_unit > dekabar_quantity
Measured quantity in dekabars.
Definition: pressure.h:326
ome::common::units::kilopascal_quantity
quantity< kilopascal_unit > kilopascal_quantity
Measured quantity in kilopascals.
Definition: pressure.h:244
ome::common::units::femtopascal_unit
make_scaled_unit< si::pressure, scale< 10, static_rational<-15 > > >::type femtopascal_unit
Unit definition for femtopascal pressure.
Definition: pressure.h:87
ome::common::units::picopascal_unit
make_scaled_unit< si::pressure, scale< 10, static_rational<-12 > > >::type picopascal_unit
Unit definition for picopascal pressure.
Definition: pressure.h:89
ome::common::units::micropascal_unit
make_scaled_unit< si::pressure, scale< 10, static_rational< -6 > > >::type micropascal_unit
Unit definition for micropascal pressure.
Definition: pressure.h:93
ome::common::units::decabar_unit
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
ome::common::units::zeptopascal_quantity
quantity< zeptopascal_unit > zeptopascal_quantity
Measured quantity in zeptopascals.
Definition: pressure.h:218
ome::common::units::pressure_quantity
quantity< si::pressure > pressure_quantity
Measured quantity (pressure, pascals).
Definition: pressure.h:78
ome::common::units::gigapascal_unit
make_scaled_unit< si::pressure, scale< 10, static_rational< 9 > > >::type gigapascal_unit
Unit definition for gigapascal pressure.
Definition: pressure.h:113
ome::common::units::nanopascal_unit
make_scaled_unit< si::pressure, scale< 10, static_rational< -9 > > >::type nanopascal_unit
Unit definition for nanopascal pressure.
Definition: pressure.h:91
ome::common::units::dekapascal_quantity
quantity< dekapascal_unit > dekapascal_quantity
Measured quantity in dekapascals.
Definition: pressure.h:238
ome::common::units::nanopascal_quantity
quantity< nanopascal_unit > nanopascal_quantity
Measured quantity in nanopascals.
Definition: pressure.h:226
ome::common::units::millibar_unit
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
ome::common::units::torr_quantity
quantity< torr_unit > torr_quantity
Measured quantity in Torrs.
Definition: pressure.h:360
ome::common::units::decibar_quantity
quantity< decibar_unit > decibar_quantity
Measured quantity in decibars.
Definition: pressure.h:322
ome::common::units::petapascal_unit
make_scaled_unit< si::pressure, scale< 10, static_rational< 15 > > >::type petapascal_unit
Unit definition for petapascal pressure.
Definition: pressure.h:117
ome::common::units::kilobar_quantity
quantity< kilobar_unit > kilobar_quantity
Measured quantity in kilobars.
Definition: pressure.h:332
ome::common::units::zeptopascal_unit
make_scaled_unit< si::pressure, scale< 10, static_rational<-21 > > >::type zeptopascal_unit
Unit definition for zeptopascal pressure.
Definition: pressure.h:83
ome::common::units::exapascal_quantity
quantity< exapascal_unit > exapascal_quantity
Measured quantity in exapascals.
Definition: pressure.h:254
ome::common::units::psi_quantity
quantity< psi_unit > psi_quantity
Measured quantity in pound-force per square inch (psi).
Definition: pressure.h:353
ome::common::units::bar_unit
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
ome::common::units::petapascal_quantity
quantity< petapascal_unit > petapascal_quantity
Measured quantity in petapascals.
Definition: pressure.h:252
ome::common::units::decipascal_unit
make_scaled_unit< si::pressure, scale< 10, static_rational< -1 > > >::type decipascal_unit
Unit definition for decipascal pressure.
Definition: pressure.h:99
ome::common::units::megapascal_quantity
quantity< megapascal_unit > megapascal_quantity
Measured quantity in megapascals.
Definition: pressure.h:246
ome::common::units::millitorr_quantity
quantity< millitorr_unit > millitorr_quantity
Measured quantity in milliTorrs.
Definition: pressure.h:367
ome::common::units::millibar_quantity
quantity< millibar_unit > millibar_quantity
Measured quantity in millibars.
Definition: pressure.h:318
ome::common::units::yoctopascal_unit
make_scaled_unit< si::pressure, scale< 10, static_rational<-24 > > >::type yoctopascal_unit
Unit definition for yoctopascal pressure.
Definition: pressure.h:81
ome::common::units::kilobar_unit
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
ome::common::units::hectobar_quantity
quantity< hectobar_unit > hectobar_quantity
Measured quantity in hectobars.
Definition: pressure.h:330
ome::common::units::megapascal_unit
make_scaled_unit< si::pressure, scale< 10, static_rational< 6 > > >::type megapascal_unit
Unit definition for megapascal pressure.
Definition: pressure.h:111
ome::common::units::torr_unit
boost::units::metric::torr_base_unit::unit_type torr_unit
Unit definition for Torr pressure.
Definition: pressure.h:356
ome::common::units::attopascal_quantity
quantity< attopascal_unit > attopascal_quantity
Measured quantity in attopascals.
Definition: pressure.h:220
ome::common::units::psi_unit
psi_base_unit::unit_type psi_unit
Unit definition for pound-force per square inch (psi) pressure.
Definition: pressure.h:349
ome::common::units::megabar_unit
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
ome
Open Microscopy Environment C++.
Definition: base64.h:49
ome::common::units::zettapascal_quantity
quantity< zettapascal_unit > zettapascal_quantity
Measured quantity in zettapascals.
Definition: pressure.h:256
ome::common::units::centibar_unit
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
ome::common::units::megabar_quantity
quantity< megabar_unit > megabar_quantity
Measured quantity in megabars.
Definition: pressure.h:334
ome::common::units::centipascal_unit
make_scaled_unit< si::pressure, scale< 10, static_rational< -2 > > >::type centipascal_unit
Unit definition for centipascal pressure.
Definition: pressure.h:97
ome::common::units::micropascal_quantity
quantity< micropascal_unit > micropascal_quantity
Measured quantity in micropascals.
Definition: pressure.h:228
ome::common::units::decapascal_quantity
quantity< decapascal_unit > decapascal_quantity
Measured quantity in decapascals.
Definition: pressure.h:240
ome::common::units::dekabar_unit
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
ome::common::units::decabar_quantity
quantity< decabar_unit > decabar_quantity
Measured quantity in decabars.
Definition: pressure.h:328
ome::common::units::gigapascal_quantity
quantity< gigapascal_unit > gigapascal_quantity
Measured quantity in gigapascals.
Definition: pressure.h:248
ome::common::units::centipascal_quantity
quantity< centipascal_unit > centipascal_quantity
Measured quantity in centipascals.
Definition: pressure.h:232
ome::common::units::hectobar_unit
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
ome::common::units::pascal_quantity
quantity< pascal_unit > pascal_quantity
Measured quantity in pascals.
Definition: pressure.h:236
ome::common::units::pressure_unit
si::pressure pressure_unit
Unit definition for pressure.
Definition: pressure.h:76
BOOST_UNITS_DEFINE_CONVERSION_FACTOR
BOOST_UNITS_DEFINE_CONVERSION_FACTOR(ome::common::units::psi_base_unit, si::pressure, double, 6894.7573)
Conversion factor for pound-force per square inch (psi) to pascal.
ome::common::units::millitorr_unit
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
ome::common::units::kilopascal_unit
make_scaled_unit< si::pressure, scale< 10, static_rational< 3 > > >::type kilopascal_unit
Unit definition for kilopascal pressure.
Definition: pressure.h:109
ome::common::units::pascal_unit
make_scaled_unit< si::pressure, scale< 10, static_rational< 0 > > >::type pascal_unit
Unit definition for pascal pressure.
Definition: pressure.h:101
ome::common::units::decipascal_quantity
quantity< decipascal_unit > decipascal_quantity
Measured quantity in decipascals.
Definition: pressure.h:234
ome::common::units::terapascal_quantity
quantity< terapascal_unit > terapascal_quantity
Measured quantity in terapascals.
Definition: pressure.h:250
ome::common::units::decibar_unit
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
ome::common::units::atmosphere_unit
boost::units::metric::atmosphere_base_unit::unit_type atmosphere_unit
Unit definition for atmosphere pressure.
Definition: pressure.h:337
ome::common::units::decapascal_unit
make_scaled_unit< si::pressure, scale< 10, static_rational< 1 > > >::type decapascal_unit
Unit definition for decapascal pressure.
Definition: pressure.h:105
ome::common::units::hectopascal_unit
make_scaled_unit< si::pressure, scale< 10, static_rational< 2 > > >::type hectopascal_unit
Unit definition for hectopascal pressure.
Definition: pressure.h:107
BOOST_UNITS_DEFAULT_CONVERSION
BOOST_UNITS_DEFAULT_CONVERSION(ome::common::units::psi_base_unit, si::pressure)
Default conversion for pound-force per square inch (psi) to is to SI pressure units (pascals)...
ome::common::units::terapascal_unit
make_scaled_unit< si::pressure, scale< 10, static_rational< 12 > > >::type terapascal_unit
Unit definition for terapascal pressure.
Definition: pressure.h:115
ome::common::units::centibar_quantity
quantity< centibar_unit > centibar_quantity
Measured quantity in centibars.
Definition: pressure.h:320
ome::common::units::bar_quantity
quantity< bar_unit > bar_quantity
Measured quantity in bars.
Definition: pressure.h:324
ome::common::units::yottapascal_quantity
quantity< yottapascal_unit > yottapascal_quantity
Measured quantity in yottapascals.
Definition: pressure.h:258
ome::common::units::millipascal_quantity
quantity< millipascal_unit > millipascal_quantity
Measured quantity in millipascals.
Definition: pressure.h:230
boost::units::base_unit_info< ome::common::units::psi_base_unit >::symbol
static std::string symbol()
Unit symbol.
Definition: pressure.h:396
boost::units::base_unit_info< ome::common::units::psi_base_unit >::name
static std::string name()
Unit name.
Definition: pressure.h:394
ome::common::units::picopascal_quantity
quantity< picopascal_unit > picopascal_quantity
Measured quantity in picopascals.
Definition: pressure.h:224
ome::common::units::zettapascal_unit
make_scaled_unit< si::pressure, scale< 10, static_rational< 21 > > >::type zettapascal_unit
Unit definition for zettapascal pressure.
Definition: pressure.h:121
ome::common::units::yoctopascal_quantity
quantity< yoctopascal_unit > yoctopascal_quantity
Measured quantity in yoctopascals.
Definition: pressure.h:216