base.hpp 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. #ifndef BOOST_UNITS_SI_BASE_HPP
  11. #define BOOST_UNITS_SI_BASE_HPP
  12. #include <string>
  13. #include <boost/units/static_constant.hpp>
  14. #include <boost/units/unit.hpp>
  15. #include <boost/units/make_system.hpp>
  16. #include <boost/units/base_units/si/meter.hpp>
  17. #include <boost/units/base_units/si/kilogram.hpp>
  18. #include <boost/units/base_units/si/second.hpp>
  19. #include <boost/units/base_units/si/ampere.hpp>
  20. #include <boost/units/base_units/si/kelvin.hpp>
  21. #include <boost/units/base_units/si/mole.hpp>
  22. #include <boost/units/base_units/si/candela.hpp>
  23. #include <boost/units/base_units/angle/radian.hpp>
  24. #include <boost/units/base_units/angle/steradian.hpp>
  25. namespace boost {
  26. namespace units {
  27. namespace si {
  28. /// placeholder class defining si unit system
  29. typedef make_system<meter_base_unit,
  30. kilogram_base_unit,
  31. second_base_unit,
  32. ampere_base_unit,
  33. kelvin_base_unit,
  34. mole_base_unit,
  35. candela_base_unit,
  36. angle::radian_base_unit,
  37. angle::steradian_base_unit>::type system;
  38. /// dimensionless si unit
  39. typedef unit<dimensionless_type,system> dimensionless;
  40. } // namespace si
  41. } // namespace units
  42. } // namespace boost
  43. #endif // BOOST_UNITS_SI_BASE_HPP