| 1 | // Boost.Units - A C++ library for zero-overhead dimensional analysis and |
| 2 | // unit/quantity manipulation and conversion |
| 3 | // |
| 4 | // Copyright (C) 2003-2008 Matthias Christian Schabel |
| 5 | // Copyright (C) 2008 Steven Watanabe |
| 6 | // |
| 7 | // Distributed under the Boost Software License, Version 1.0. (See |
| 8 | // accompanying file LICENSE_1_0.txt or copy at |
| 9 | // http://www.boost.org/LICENSE_1_0.txt) |
| 10 | |
| 11 | #ifndef BOOST_UNITS_SI_BASE_HPP |
| 12 | #define BOOST_UNITS_SI_BASE_HPP |
| 13 | |
| 14 | #include <string> |
| 15 | |
| 16 | #include <boost/units/static_constant.hpp> |
| 17 | #include <boost/units/unit.hpp> |
| 18 | #include <boost/units/make_system.hpp> |
| 19 | |
| 20 | #include <boost/units/base_units/si/meter.hpp> |
| 21 | #include <boost/units/base_units/si/kilogram.hpp> |
| 22 | #include <boost/units/base_units/si/second.hpp> |
| 23 | #include <boost/units/base_units/si/ampere.hpp> |
| 24 | #include <boost/units/base_units/si/kelvin.hpp> |
| 25 | #include <boost/units/base_units/si/mole.hpp> |
| 26 | #include <boost/units/base_units/si/candela.hpp> |
| 27 | #include <boost/units/base_units/angle/radian.hpp> |
| 28 | #include <boost/units/base_units/angle/steradian.hpp> |
| 29 | |
| 30 | namespace boost { |
| 31 | |
| 32 | namespace units { |
| 33 | |
| 34 | namespace si { |
| 35 | |
| 36 | /// placeholder class defining si unit system |
| 37 | typedef make_system<meter_base_unit, |
| 38 | kilogram_base_unit, |
| 39 | second_base_unit, |
| 40 | ampere_base_unit, |
| 41 | kelvin_base_unit, |
| 42 | mole_base_unit, |
| 43 | candela_base_unit, |
| 44 | angle::radian_base_unit, |
| 45 | angle::steradian_base_unit>::type system; |
| 46 | |
| 47 | /// dimensionless si unit |
| 48 | typedef unit<dimensionless_type,system> dimensionless; |
| 49 | |
| 50 | } // namespace si |
| 51 | |
| 52 | } // namespace units |
| 53 | |
| 54 | } // namespace boost |
| 55 | |
| 56 | #endif // BOOST_UNITS_SI_BASE_HPP |
| 57 | |