47 #ifndef OME_COMMON_UNITS_TIME_H 48 #define OME_COMMON_UNITS_TIME_H 50 #include <ome/common/config.h> 51 #include <ome/common/units/types.h> 53 #include <boost/units/unit.hpp> 54 #include <boost/units/base_units/metric/minute.hpp> 55 #include <boost/units/base_units/metric/hour.hpp> 56 #include <boost/units/base_units/metric/day.hpp> 57 #include <boost/units/quantity.hpp> 58 #include <boost/units/systems/si.hpp> 75 typedef make_scaled_unit<si::time,scale<10,static_rational<-24>>>::type
yoctosecond_unit;
77 typedef make_scaled_unit<si::time,scale<10,static_rational<-21>>>::type
zeptosecond_unit;
79 typedef make_scaled_unit<si::time,scale<10,static_rational<-18>>>::type
attosecond_unit;
81 typedef make_scaled_unit<si::time,scale<10,static_rational<-15>>>::type
femtosecond_unit;
83 typedef make_scaled_unit<si::time,scale<10,static_rational<-12>>>::type
picosecond_unit;
85 typedef make_scaled_unit<si::time,scale<10,static_rational< -9>>>::type
nanosecond_unit;
87 typedef make_scaled_unit<si::time,scale<10,static_rational< -6>>>::type
microsecond_unit;
89 typedef make_scaled_unit<si::time,scale<10,static_rational< -3>>>::type
millisecond_unit;
91 typedef make_scaled_unit<si::time,scale<10,static_rational< -2>>>::type
centisecond_unit;
93 typedef make_scaled_unit<si::time,scale<10,static_rational< -1>>>::type
decisecond_unit;
95 typedef make_scaled_unit<si::time,scale<10,static_rational< 0>>>::type
second_unit;
97 typedef make_scaled_unit<si::time,scale<10,static_rational< 1>>>::type
dekasecond_unit;
99 typedef make_scaled_unit<si::time,scale<10,static_rational< 1>>>::type
decasecond_unit;
103 typedef make_scaled_unit<si::time,scale<10,static_rational< 3>>>::type
kilosecond_unit;
105 typedef make_scaled_unit<si::time,scale<10,static_rational< 6>>>::type
megasecond_unit;
107 typedef make_scaled_unit<si::time,scale<10,static_rational< 9>>>::type
gigasecond_unit;
109 typedef make_scaled_unit<si::time,scale<10,static_rational< 12>>>::type
terasecond_unit;
111 typedef make_scaled_unit<si::time,scale<10,static_rational< 15>>>::type
petasecond_unit;
113 typedef make_scaled_unit<si::time,scale<10,static_rational< 18>>>::type
exasecond_unit;
255 typedef boost::units::metric::minute_base_unit::unit_type
minute_unit;
264 typedef boost::units::metric::hour_base_unit::unit_type
hour_unit;
273 typedef boost::units::metric::day_base_unit::unit_type
day_unit;
284 #endif // OME_COMMON_UNITS_TIME_H quantity< millisecond_unit > millisecond_quantity
Measured quantity in milliseconds.
Definition: time.h:224
quantity< hour_unit > hour_quantity
Measured quantity in hours.
Definition: time.h:270
BOOST_UNITS_STATIC_CONSTANT(radian, radian_unit)
Numeric constant for radian.
make_scaled_unit< si::time, scale< 10, static_rational< 3 > > >::type kilosecond_unit
Unit definition for kilosecond time.
Definition: time.h:103
make_scaled_unit< si::time, scale< 10, static_rational<-24 > > >::type yoctosecond_unit
Unit definition for yoctosecond time.
Definition: time.h:75
make_scaled_unit< si::time, scale< 10, static_rational< 6 > > >::type megasecond_unit
Unit definition for megasecond time.
Definition: time.h:105
make_scaled_unit< si::time, scale< 10, static_rational< 2 > > >::type hectosecond_unit
Unit definition for hectosecond time.
Definition: time.h:101
boost::units::metric::minute_base_unit::unit_type minute_unit
Unit definition for minute time.
Definition: time.h:255
make_scaled_unit< si::time, scale< 10, static_rational< -3 > > >::type millisecond_unit
Unit definition for millisecond time.
Definition: time.h:89
quantity< petasecond_unit > petasecond_quantity
Measured quantity in petaseconds.
Definition: time.h:246
quantity< decisecond_unit > decisecond_quantity
Measured quantity in deciseconds.
Definition: time.h:228
boost::units::metric::hour_base_unit::unit_type hour_unit
Unit definition for hour time.
Definition: time.h:264
make_scaled_unit< si::time, scale< 10, static_rational< -9 > > >::type nanosecond_unit
Unit definition for nanosecond time.
Definition: time.h:85
make_scaled_unit< si::time, scale< 10, static_rational< 15 > > >::type petasecond_unit
Unit definition for petasecond time.
Definition: time.h:111
make_scaled_unit< si::time, scale< 10, static_rational< 24 > > >::type yottasecond_unit
Unit definition for yottasecond time.
Definition: time.h:117
quantity< megasecond_unit > megasecond_quantity
Measured quantity in megaseconds.
Definition: time.h:240
quantity< day_unit > day_quantity
Measured quantity in days.
Definition: time.h:279
quantity< minute_unit > minute_quantity
Measured quantity in minutes.
Definition: time.h:261
quantity< yottasecond_unit > yottasecond_quantity
Measured quantity in yottaseconds.
Definition: time.h:252
quantity< hectosecond_unit > hectosecond_quantity
Measured quantity in hectoseconds.
Definition: time.h:236
make_scaled_unit< si::time, scale< 10, static_rational< 0 > > >::type second_unit
Unit definition for second time.
Definition: time.h:95
quantity< dekasecond_unit > dekasecond_quantity
Measured quantity in dekaseconds.
Definition: time.h:232
boost::units::metric::day_base_unit::unit_type day_unit
Unit definition for day time.
Definition: time.h:273
si::time time_unit
Unit definition for time.
Definition: time.h:70
quantity< nanosecond_unit > nanosecond_quantity
Measured quantity in nanoseconds.
Definition: time.h:220
quantity< decasecond_unit > decasecond_quantity
Measured quantity in decaseconds.
Definition: time.h:234
make_scaled_unit< si::time, scale< 10, static_rational< 18 > > >::type exasecond_unit
Unit definition for exasecond time.
Definition: time.h:113
Open Microscopy Environment C++.
Definition: base64.h:48
quantity< attosecond_unit > attosecond_quantity
Measured quantity in attoseconds.
Definition: time.h:214
quantity< femtosecond_unit > femtosecond_quantity
Measured quantity in femtoseconds.
Definition: time.h:216
quantity< zettasecond_unit > zettasecond_quantity
Measured quantity in zettaseconds.
Definition: time.h:250
make_scaled_unit< si::time, scale< 10, static_rational<-21 > > >::type zeptosecond_unit
Unit definition for zeptosecond time.
Definition: time.h:77
make_scaled_unit< si::time, scale< 10, static_rational< 9 > > >::type gigasecond_unit
Unit definition for gigasecond time.
Definition: time.h:107
quantity< yoctosecond_unit > yoctosecond_quantity
Measured quantity in yoctoseconds.
Definition: time.h:210
make_scaled_unit< si::time, scale< 10, static_rational< 12 > > >::type terasecond_unit
Unit definition for terasecond time.
Definition: time.h:109
quantity< terasecond_unit > terasecond_quantity
Measured quantity in teraseconds.
Definition: time.h:244
quantity< kilosecond_unit > kilosecond_quantity
Measured quantity in kiloseconds.
Definition: time.h:238
quantity< si::time > time_quantity
Measured quantity (time, seconds).
Definition: time.h:72
make_scaled_unit< si::time, scale< 10, static_rational< 21 > > >::type zettasecond_unit
Unit definition for zettasecond time.
Definition: time.h:115
make_scaled_unit< si::time, scale< 10, static_rational< -1 > > >::type decisecond_unit
Unit definition for decisecond time.
Definition: time.h:93
make_scaled_unit< si::time, scale< 10, static_rational<-15 > > >::type femtosecond_unit
Unit definition for femtosecond time.
Definition: time.h:81
make_scaled_unit< si::time, scale< 10, static_rational<-18 > > >::type attosecond_unit
Unit definition for attosecond time.
Definition: time.h:79
make_scaled_unit< si::time, scale< 10, static_rational< -6 > > >::type microsecond_unit
Unit definition for microsecond time.
Definition: time.h:87
quantity< second_unit > second_quantity
Measured quantity in seconds.
Definition: time.h:230
make_scaled_unit< si::time, scale< 10, static_rational< 1 > > >::type decasecond_unit
Unit definition for decasecond time.
Definition: time.h:99
make_scaled_unit< si::time, scale< 10, static_rational< -2 > > >::type centisecond_unit
Unit definition for centisecond time.
Definition: time.h:91
make_scaled_unit< si::time, scale< 10, static_rational<-12 > > >::type picosecond_unit
Unit definition for picosecond time.
Definition: time.h:83
quantity< centisecond_unit > centisecond_quantity
Measured quantity in centiseconds.
Definition: time.h:226
quantity< picosecond_unit > picosecond_quantity
Measured quantity in picoseconds.
Definition: time.h:218
quantity< microsecond_unit > microsecond_quantity
Measured quantity in microseconds.
Definition: time.h:222
quantity< exasecond_unit > exasecond_quantity
Measured quantity in exaseconds.
Definition: time.h:248
make_scaled_unit< si::time, scale< 10, static_rational< 1 > > >::type dekasecond_unit
Unit definition for dekasecond time.
Definition: time.h:97
quantity< gigasecond_unit > gigasecond_quantity
Measured quantity in gigaseconds.
Definition: time.h:242
quantity< zeptosecond_unit > zeptosecond_quantity
Measured quantity in zeptoseconds.
Definition: time.h:212