|
Boost-Commit : |
From: matthiasschabel_at_[hidden]
Date: 2007-05-31 16:25:35
Author: matthiasschabel
Date: 2007-05-31 16:25:34 EDT (Thu, 31 May 2007)
New Revision: 4399
URL: http://svn.boost.org/trac/boost/changeset/4399
Log:
minor
Added:
sandbox/units/boost/units/systems/base_units/revolution_base_unit.hpp
Text files modified:
sandbox/units/boost/units/systems/physical_units.hpp | 37 +++++++++++++++++++++++++++++++++++--
sandbox/units/libs/units/example/unit_example_10.cpp | 2 ++
2 files changed, 37 insertions(+), 2 deletions(-)
Added: sandbox/units/boost/units/systems/base_units/revolution_base_unit.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/base_units/revolution_base_unit.hpp 2007-05-31 16:25:34 EDT (Thu, 31 May 2007)
@@ -0,0 +1,42 @@
+// mcs::units - A C++ library for zero-overhead dimensional analysis and
+// unit/quantity manipulation and conversion
+//
+// Copyright (C) 2003-2007 Matthias Christian Schabel
+// Copyright (C) 2007 Steven Watanabe
+//
+// Distributed under the Boost Software License, Version 1.0. (See
+// accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt)
+
+#ifndef BOOST_UNITS_REVOLUTION_BASE_UNIT_HPP
+#define BOOST_UNITS_REVOLUTION_BASE_UNIT_HPP
+
+#include <string>
+
+#include <boost/units/config.hpp>
+#include <boost/units/base_unit.hpp>
+#include <boost/units/systems/physical_dimensions/plane_angle.hpp>
+
+namespace boost {
+
+namespace units {
+
+struct revolution_base_unit : public base_unit<revolution_base_unit, plane_angle_dimension, -400>
+{
+ static std::string name() { return("revolution"); }
+ static std::string symbol() { return("rev"); }
+};
+
+} // namespace units
+
+} // namespace boost
+
+#if BOOST_UNITS_HAS_BOOST_TYPEOF
+
+#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
+
+BOOST_TYPEOF_REGISTER_TYPE(boost::units::revolution_base_unit)
+
+#endif
+
+#endif // BOOST_UNITS_REVOLUTION_BASE_UNIT_HPP
Modified: sandbox/units/boost/units/systems/physical_units.hpp
==============================================================================
--- sandbox/units/boost/units/systems/physical_units.hpp (original)
+++ sandbox/units/boost/units/systems/physical_units.hpp 2007-05-31 16:25:34 EDT (Thu, 31 May 2007)
@@ -11,7 +11,40 @@
#ifndef BOOST_UNITS_PHYSICAL_UNITS_HPP
#define BOOST_UNITS_PHYSICAL_UNITS_HPP
-#include <boost/units/systems/base_dimensions.hpp>
-#include <boost/units/systems/derived_dimensions.hpp>
+#include <boost/units/systems/physical_dimensions/amount.hpp>
+#include <boost/units/systems/physical_dimensions/current.hpp>
+#include <boost/units/systems/physical_dimensions/length.hpp>
+#include <boost/units/systems/physical_dimensions/luminous_intensity.hpp>
+#include <boost/units/systems/physical_dimensions/mass.hpp>
+#include <boost/units/systems/physical_dimensions/plane_angle.hpp>
+#include <boost/units/systems/physical_dimensions/solid_angle.hpp>
+#include <boost/units/systems/physical_dimensions/temperature.hpp>
+#include <boost/units/systems/physical_dimensions/time.hpp>
+
+#include <boost/units/systems/physical_dimensions/absorbed_dose.hpp>
+#include <boost/units/systems/physical_dimensions/acceleration.hpp>
+#include <boost/units/systems/physical_dimensions/action.hpp>
+#include <boost/units/systems/physical_dimensions/activity.hpp>
+#include <boost/units/systems/physical_dimensions/angular_velocity.hpp>
+#include <boost/units/systems/physical_dimensions/area.hpp>
+#include <boost/units/systems/physical_dimensions/dose_equivalent.hpp>
+#include <boost/units/systems/physical_dimensions/dynamic_viscosity.hpp>
+#include <boost/units/systems/physical_dimensions/energy.hpp>
+#include <boost/units/systems/physical_dimensions/force.hpp>
+#include <boost/units/systems/physical_dimensions/frequency.hpp>
+#include <boost/units/systems/physical_dimensions/illuminance.hpp>
+#include <boost/units/systems/physical_dimensions/kinematic_viscosity.hpp>
+#include <boost/units/systems/physical_dimensions/luminance.hpp>
+#include <boost/units/systems/physical_dimensions/luminous_flux.hpp>
+#include <boost/units/systems/physical_dimensions/mass_density.hpp>
+#include <boost/units/systems/physical_dimensions/momentum.hpp>
+#include <boost/units/systems/physical_dimensions/power.hpp>
+#include <boost/units/systems/physical_dimensions/pressure.hpp>
+#include <boost/units/systems/physical_dimensions/specific_volume.hpp>
+#include <boost/units/systems/physical_dimensions/stress.hpp>
+#include <boost/units/systems/physical_dimensions/surface_density.hpp>
+#include <boost/units/systems/physical_dimensions/velocity.hpp>
+#include <boost/units/systems/physical_dimensions/volume.hpp>
+#include <boost/units/systems/physical_dimensions/wavenumber.hpp>
#endif // BOOST_UNITS_PHYSICAL_UNITS_HPP
Modified: sandbox/units/libs/units/example/unit_example_10.cpp
==============================================================================
--- sandbox/units/libs/units/example/unit_example_10.cpp (original)
+++ sandbox/units/libs/units/example/unit_example_10.cpp 2007-05-31 16:25:34 EDT (Thu, 31 May 2007)
@@ -70,6 +70,8 @@
#include <boost/units/systems/si/plane_angle.hpp>
#include <boost/units/systems/trig.hpp>
+#include <boost/units/systems/base_units.hpp>
+
//#include <boost/units/systems/conversions/convert_degrees_to_radians.hpp>
//#include <boost/units/systems/conversions/convert_gradians_to_radians.hpp>
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk