47 #ifndef OME_COMMON_UNITS_ANGLE_H
48 #define OME_COMMON_UNITS_ANGLE_H
50 #include <ome/common/config.h>
51 #include <ome/common/units/types.h>
53 #include <boost/units/base_units/angle/degree.hpp>
54 #include <boost/units/base_units/angle/gradian.hpp>
55 #include <boost/units/base_units/angle/radian.hpp>
56 #include <boost/units/unit.hpp>
57 #include <boost/units/quantity.hpp>
58 #include <boost/units/systems/si.hpp>
70 typedef boost::units::angle::radian_base_unit::unit_type angle_unit;
72 typedef quantity<boost::units::angle::radian_base_unit::unit_type> angle_quantity;
75 typedef boost::units::angle::radian_base_unit::unit_type radian_unit;
77 BOOST_UNITS_STATIC_CONSTANT(radian, radian_unit);
79 BOOST_UNITS_STATIC_CONSTANT(radians, radian_unit);
81 typedef quantity<radian_unit> radian_quantity;
84 typedef boost::units::angle::degree_base_unit::unit_type degree_unit;
86 BOOST_UNITS_STATIC_CONSTANT(degree, degree_unit);
88 BOOST_UNITS_STATIC_CONSTANT(degrees, degree_unit);
90 typedef quantity<degree_unit> degree_quantity;
93 typedef boost::units::angle::gradian_base_unit::unit_type gradian_unit;
95 BOOST_UNITS_STATIC_CONSTANT(gradian, gradian_unit);
97 BOOST_UNITS_STATIC_CONSTANT(gradians, gradian_unit);
99 BOOST_UNITS_STATIC_CONSTANT(gon, gradian_unit);
101 BOOST_UNITS_STATIC_CONSTANT(gons, gradian_unit);
103 typedef quantity<gradian_unit> gradian_quantity;
105 typedef quantity<gradian_unit> gon_quantity;
111 #endif // OME_COMMON_UNITS_ANGLE_H
Open Microscopy Environment C++ implementation.
Definition: CoreMetadata.cpp:40