base.hpp 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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_CGS_BASE_HPP
  11. #define BOOST_UNITS_CGS_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/cgs/centimeter.hpp>
  17. #include <boost/units/base_units/cgs/gram.hpp>
  18. #include <boost/units/base_units/si/second.hpp>
  19. #include <boost/units/base_units/cgs/biot.hpp>
  20. namespace boost {
  21. namespace units {
  22. namespace cgs {
  23. /// placeholder class defining cgs unit system
  24. typedef make_system<centimeter_base_unit,
  25. gram_base_unit,
  26. boost::units::si::second_base_unit,
  27. biot_base_unit>::type system;
  28. /// various unit typedefs for convenience
  29. typedef unit<dimensionless_type,system> dimensionless;
  30. } // namespace cgs
  31. } // namespace units
  32. } // namespace boost
  33. #endif // BOOST_UNITS_CGS_BASE_HPP