Boost logo

Boost-Commit :

From: matthiasschabel_at_[hidden]
Date: 2007-05-31 14:34:26


Author: matthiasschabel
Date: 2007-05-31 14:34:24 EDT (Thu, 31 May 2007)
New Revision: 4385
URL: http://svn.boost.org/trac/boost/changeset/4385

Log:
granular base unit headers

Added:
   sandbox/units/boost/units/systems/base_units/
   sandbox/units/boost/units/systems/base_units/ampere_base_unit.hpp
   sandbox/units/boost/units/systems/base_units/biot_base_unit.hpp
   sandbox/units/boost/units/systems/base_units/candela_base_unit.hpp
   sandbox/units/boost/units/systems/base_units/celsius_base_unit.hpp
   sandbox/units/boost/units/systems/base_units/centimeter_base_unit.hpp
   sandbox/units/boost/units/systems/base_units/degree_base_unit.hpp
   sandbox/units/boost/units/systems/base_units/fahrenheit_base_unit.hpp
   sandbox/units/boost/units/systems/base_units/foot_base_unit.hpp
   sandbox/units/boost/units/systems/base_units/gradian_base_unit.hpp
   sandbox/units/boost/units/systems/base_units/gram_base_unit.hpp
   sandbox/units/boost/units/systems/base_units/hour_base_unit.hpp
   sandbox/units/boost/units/systems/base_units/inch_base_unit.hpp
   sandbox/units/boost/units/systems/base_units/kelvin_base_unit.hpp
   sandbox/units/boost/units/systems/base_units/kilogram_base_unit.hpp
   sandbox/units/boost/units/systems/base_units/meter_base_unit.hpp
   sandbox/units/boost/units/systems/base_units/mile_base_unit.hpp
   sandbox/units/boost/units/systems/base_units/minute_base_unit.hpp
   sandbox/units/boost/units/systems/base_units/mole_base_unit.hpp
   sandbox/units/boost/units/systems/base_units/radian_base_unit.hpp
   sandbox/units/boost/units/systems/base_units/second_base_unit.hpp
   sandbox/units/boost/units/systems/base_units/steradian_base_unit.hpp
   sandbox/units/boost/units/systems/base_units/yard_base_unit.hpp

Added: sandbox/units/boost/units/systems/base_units/ampere_base_unit.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/base_units/ampere_base_unit.hpp 2007-05-31 14:34:24 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_AMPERE_BASE_UNIT_HPP
+#define BOOST_UNITS_AMPERE_BASE_UNIT_HPP
+
+#include <string>
+
+#include <boost/units/config.hpp>
+#include <boost/units/base_unit.hpp>
+#include <boost/units/systems/base_dimensions/current_base_dimension.hpp>
+
+namespace boost {
+
+namespace units {
+
+struct ampere_base_unit : public base_unit<ampere_base_unit, current_dimension, -11>
+{
+ static std::string name() { return("ampere"); }
+ static std::string symbol() { return("A"); }
+};
+
+} // namespace units
+
+} // namespace boost
+
+#if BOOST_UNITS_HAS_BOOST_TYPEOF
+
+#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
+
+BOOST_TYPEOF_REGISTER_TYPE(boost::units::ampere_base_unit)
+
+#endif
+
+#endif // BOOST_UNITS_AMPERE_BASE_UNIT_HPP

Added: sandbox/units/boost/units/systems/base_units/biot_base_unit.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/base_units/biot_base_unit.hpp 2007-05-31 14:34:24 EDT (Thu, 31 May 2007)
@@ -0,0 +1,27 @@
+// 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_BIOT_BASE_UNIT_HPP
+#define BOOST_UNITS_BIOT_BASE_UNIT_HPP
+
+#include <boost/units/scaled_base_unit.hpp>
+#include <boost/units/systems/base_units/ampere_base_unit.hpp>
+
+namespace boost {
+
+namespace units {
+
+typedef scaled_base_unit<ampere_base_unit, scale<10, static_rational<-1> > > biot_base_unit;
+
+} // namespace units
+
+} // namespace boost
+
+#endif // BOOST_UNITS_BIOT_BASE_UNIT_HPP

Added: sandbox/units/boost/units/systems/base_units/candela_base_unit.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/base_units/candela_base_unit.hpp 2007-05-31 14:34:24 EDT (Thu, 31 May 2007)
@@ -0,0 +1,43 @@
+// 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_CANDELA_BASE_UNIT_HPP
+#define BOOST_UNITS_CANDELA_BASE_UNIT_HPP
+
+#include <string>
+
+#include <boost/units/config.hpp>
+#include <boost/units/base_unit.hpp>
+#include <boost/units/systems/base_dimensions/luminous_intensity_base_dimension.hpp>
+
+namespace boost {
+
+namespace units {
+
+struct candela_base_unit : public base_unit<candela_base_unit, luminous_intensity_dimension, -5>
+{
+ static std::string name() { return("candela"); }
+ static std::string symbol() { return("cd"); }
+};
+
+} // namespace units
+
+} // namespace boost
+
+#if BOOST_UNITS_HAS_BOOST_TYPEOF
+
+#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
+
+BOOST_TYPEOF_REGISTER_TYPE(boost::units::candela_base_unit)
+
+
+#endif
+
+#endif // BOOST_UNITS_CANDELA_BASE_UNIT_HPP

Added: sandbox/units/boost/units/systems/base_units/celsius_base_unit.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/base_units/celsius_base_unit.hpp 2007-05-31 14:34:24 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_CELSIUS_BASE_UNIT_HPP
+#define BOOST_UNITS_CELSIUS_BASE_UNIT_HPP
+
+#include <string>
+
+#include <boost/units/config.hpp>
+#include <boost/units/base_unit.hpp>
+#include <boost/units/systems/base_dimensions/temperature_base_dimension.hpp>
+
+namespace boost {
+
+namespace units {
+
+struct celsius_base_unit : public base_unit<celsius_base_unit, temperature_dimension, -8>
+{
+ static std::string name() { return("celsius"); }
+ static std::string symbol() { return("C"); }
+};
+
+} // namespace units
+
+} // namespace boost
+
+#if BOOST_UNITS_HAS_BOOST_TYPEOF
+
+#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
+
+BOOST_TYPEOF_REGISTER_TYPE(boost::units::celsius_base_unit)
+
+#endif
+
+#endif // BOOST_UNITS_CELSIUS_BASE_UNIT_HPP

Added: sandbox/units/boost/units/systems/base_units/centimeter_base_unit.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/base_units/centimeter_base_unit.hpp 2007-05-31 14:34:24 EDT (Thu, 31 May 2007)
@@ -0,0 +1,27 @@
+// 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_CENTIMETER_BASE_UNIT_HPP
+#define BOOST_UNITS_CENTIMETER_BASE_UNIT_HPP
+
+#include <boost/units/scaled_base_unit.hpp>
+#include <boost/units/systems/base_units/meter_base_unit.hpp>
+
+namespace boost {
+
+namespace units {
+
+typedef scaled_base_unit<meter_base_unit, scale<10, static_rational<-2> > > centimeter_base_unit;
+
+} // namespace units
+
+} // namespace boost
+
+#endif // BOOST_UNITS_CENTIMETER_BASE_UNIT_HPP

Added: sandbox/units/boost/units/systems/base_units/degree_base_unit.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/base_units/degree_base_unit.hpp 2007-05-31 14:34:24 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_DEGREE_BASE_UNIT_HPP
+#define BOOST_UNITS_DEGREE_BASE_UNIT_HPP
+
+#include <string>
+
+#include <boost/units/config.hpp>
+#include <boost/units/base_unit.hpp>
+#include <boost/units/systems/base_dimensions/plane_angle_base_dimension.hpp>
+
+namespace boost {
+
+namespace units {
+
+struct degree_base_unit : public base_unit<degree_base_unit, plane_angle_dimension, -3>
+{
+ static std::string name() { return("degree"); }
+ static std::string symbol() { return("deg"); }
+};
+
+} // namespace units
+
+} // namespace boost
+
+#if BOOST_UNITS_HAS_BOOST_TYPEOF
+
+#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
+
+BOOST_TYPEOF_REGISTER_TYPE(boost::units::degree_base_unit)
+
+#endif
+
+#endif // BOOST_UNITS_DEGREE_BASE_UNIT_HPP

Added: sandbox/units/boost/units/systems/base_units/fahrenheit_base_unit.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/base_units/fahrenheit_base_unit.hpp 2007-05-31 14:34:24 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_FAHRENHEIT_BASE_UNIT_HPP
+#define BOOST_UNITS_FAHRENHEIT_BASE_UNIT_HPP
+
+#include <string>
+
+#include <boost/units/config.hpp>
+#include <boost/units/base_unit.hpp>
+#include <boost/units/systems/base_dimensions/temperature_base_dimension.hpp>
+
+namespace boost {
+
+namespace units {
+
+struct fahrenheit_base_unit : public base_unit<fahrenheit_base_unit, temperature_dimension, -7>
+{
+ static std::string name() { return("fahrenheit"); }
+ static std::string symbol() { return("F"); }
+};
+
+} // namespace units
+
+} // namespace boost
+
+#if BOOST_UNITS_HAS_BOOST_TYPEOF
+
+#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
+
+BOOST_TYPEOF_REGISTER_TYPE(boost::units::fahrenheit_base_unit)
+
+#endif
+
+#endif // BOOST_UNITS_FAHRENHEIT_BASE_UNIT_HPP

Added: sandbox/units/boost/units/systems/base_units/foot_base_unit.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/base_units/foot_base_unit.hpp 2007-05-31 14:34:24 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_FOOT_BASE_UNIT_HPP
+#define BOOST_UNITS_FOOT_BASE_UNIT_HPP
+
+#include <string>
+
+#include <boost/units/config.hpp>
+#include <boost/units/base_unit.hpp>
+#include <boost/units/systems/base_dimensions/length_base_dimension.hpp>
+
+namespace boost {
+
+namespace units {
+
+struct foot_base_unit : public base_unit<foot_base_unit, length_dimension, -19>
+{
+ static std::string name() { return("foot"); }
+ static std::string symbol() { return("ft"); }
+};
+
+} // namespace units
+
+} // namespace boost
+
+#if BOOST_UNITS_HAS_BOOST_TYPEOF
+
+#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
+
+BOOST_TYPEOF_REGISTER_TYPE(boost::units::foot_base_unit)
+
+#endif
+
+#endif // BOOST_UNITS_FOOT_BASE_UNIT_HPP

Added: sandbox/units/boost/units/systems/base_units/gradian_base_unit.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/base_units/gradian_base_unit.hpp 2007-05-31 14:34:24 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_GRADIAN_BASE_UNIT_HPP
+#define BOOST_UNITS_GRADIAN_BASE_UNIT_HPP
+
+#include <string>
+
+#include <boost/units/config.hpp>
+#include <boost/units/base_unit.hpp>
+#include <boost/units/systems/base_dimensions/plane_angle_base_dimension.hpp>
+
+namespace boost {
+
+namespace units {
+
+struct gradian_base_unit : public base_unit<gradian_base_unit, plane_angle_dimension, -2>
+{
+ static std::string name() { return("gradian"); }
+ static std::string symbol() { return("grad"); }
+};
+
+} // namespace units
+
+} // namespace boost
+
+#if BOOST_UNITS_HAS_BOOST_TYPEOF
+
+#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
+
+BOOST_TYPEOF_REGISTER_TYPE(boost::units::gradian_base_unit)
+
+#endif
+
+#endif // BOOST_UNITS_GRADIAN_BASE_UNIT_HPP

Added: sandbox/units/boost/units/systems/base_units/gram_base_unit.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/base_units/gram_base_unit.hpp 2007-05-31 14:34:24 EDT (Thu, 31 May 2007)
@@ -0,0 +1,43 @@
+// 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_GRAM_BASE_UNIT_HPP
+#define BOOST_UNITS_GRAM_BASE_UNIT_HPP
+
+#include <string>
+
+#include <boost/units/config.hpp>
+#include <boost/units/base_unit.hpp>
+#include <boost/units/scaled_base_unit.hpp>
+#include <boost/units/systems/base_dimensions/mass_base_dimension.hpp>
+
+namespace boost {
+
+namespace units {
+
+struct gram_base_unit : public base_unit<gram_base_unit, mass_dimension, -15>
+{
+ static std::string name() { return("gram"); }
+ static std::string symbol() { return("g"); }
+};
+
+} // namespace units
+
+} // namespace boost
+
+#if BOOST_UNITS_HAS_BOOST_TYPEOF
+
+#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
+
+BOOST_TYPEOF_REGISTER_TYPE(boost::units::gram_base_unit)
+
+#endif
+
+#endif // BOOST_UNITS_GRAM_BASE_UNIT_HPP

Added: sandbox/units/boost/units/systems/base_units/hour_base_unit.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/base_units/hour_base_unit.hpp 2007-05-31 14:34:24 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_HOUR_BASE_UNIT_HPP
+#define BOOST_UNITS_HOUR_BASE_UNIT_HPP
+
+#include <string>
+
+#include <boost/units/config.hpp>
+#include <boost/units/base_unit.hpp>
+#include <boost/units/systems/base_dimensions/time_base_dimension.hpp>
+
+namespace boost {
+
+namespace units {
+
+struct hour_base_unit : public base_unit<hour_base_unit, time_dimension, -12>
+{
+ static std::string name() { return("hour"); }
+ static std::string symbol() { return("hr"); }
+};
+
+} // namespace units
+
+} // namespace boost
+
+#if BOOST_UNITS_HAS_BOOST_TYPEOF
+
+#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
+
+BOOST_TYPEOF_REGISTER_TYPE(boost::units::hour_base_unit)
+
+#endif
+
+#endif // BOOST_UNITS_HOUR_BASE_UNIT_HPP

Added: sandbox/units/boost/units/systems/base_units/inch_base_unit.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/base_units/inch_base_unit.hpp 2007-05-31 14:34:24 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_INCH_BASE_UNIT_HPP
+#define BOOST_UNITS_INCH_BASE_UNIT_HPP
+
+#include <string>
+
+#include <boost/units/config.hpp>
+#include <boost/units/base_unit.hpp>
+#include <boost/units/systems/base_dimensions/length_base_dimension.hpp>
+
+namespace boost {
+
+namespace units {
+
+struct inch_base_unit : public base_unit<inch_base_unit, length_dimension, -18>
+{
+ static std::string name() { return("inch"); }
+ static std::string symbol() { return("in"); }
+};
+
+} // namespace units
+
+} // namespace boost
+
+#if BOOST_UNITS_HAS_BOOST_TYPEOF
+
+#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
+
+BOOST_TYPEOF_REGISTER_TYPE(boost::units::inch_base_unit)
+
+#endif
+
+#endif // BOOST_UNITS_INCH_BASE_UNIT_HPP

Added: sandbox/units/boost/units/systems/base_units/kelvin_base_unit.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/base_units/kelvin_base_unit.hpp 2007-05-31 14:34:24 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_KELVIN_BASE_UNIT_HPP
+#define BOOST_UNITS_KELVIN_BASE_UNIT_HPP
+
+#include <string>
+
+#include <boost/units/config.hpp>
+#include <boost/units/base_unit.hpp>
+#include <boost/units/systems/base_dimensions/temperature_base_dimension.hpp>
+
+namespace boost {
+
+namespace units {
+
+struct kelvin_base_unit : public base_unit<kelvin_base_unit, temperature_dimension, -9>
+{
+ static std::string name() { return("kelvin"); }
+ static std::string symbol() { return("K"); }
+};
+
+} // namespace units
+
+} // namespace boost
+
+#if BOOST_UNITS_HAS_BOOST_TYPEOF
+
+#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
+
+BOOST_TYPEOF_REGISTER_TYPE(boost::units::kelvin_base_unit)
+
+#endif
+
+#endif // BOOST_UNITS_KELVIN_BASE_UNIT_HPP

Added: sandbox/units/boost/units/systems/base_units/kilogram_base_unit.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/base_units/kilogram_base_unit.hpp 2007-05-31 14:34:24 EDT (Thu, 31 May 2007)
@@ -0,0 +1,27 @@
+// 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_KILOGRAM_BASE_UNIT_HPP
+#define BOOST_UNITS_KILOGRAM_BASE_UNIT_HPP
+
+#include <boost/units/scaled_base_unit.hpp>
+#include <boost/units/systems/base_units/gram_base_unit.hpp>
+
+namespace boost {
+
+namespace units {
+
+typedef scaled_base_unit<gram_base_unit, scale<10, static_rational<3> > > kilogram_base_unit;
+
+} // namespace units
+
+} // namespace boost
+
+#endif // BOOST_UNITS_KILOGRAM_BASE_UNIT_HPP

Added: sandbox/units/boost/units/systems/base_units/meter_base_unit.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/base_units/meter_base_unit.hpp 2007-05-31 14:34:24 EDT (Thu, 31 May 2007)
@@ -0,0 +1,44 @@
+// 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_METER_BASE_UNIT_HPP
+#define BOOST_UNITS_METER_BASE_UNIT_HPP
+
+#include <string>
+
+#include <boost/units/config.hpp>
+#include <boost/units/base_unit.hpp>
+#include <boost/units/scaled_base_unit.hpp>
+#include <boost/units/systems/base_dimensions/length_base_dimension.hpp>
+
+namespace boost {
+
+namespace units {
+
+struct meter_base_unit : public base_unit<meter_base_unit, length_dimension, -20>
+{
+ static std::string name() { return("meter"); }
+ static std::string symbol() { return("m"); }
+};
+
+}
+
+}
+
+#if BOOST_UNITS_HAS_BOOST_TYPEOF
+
+#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
+
+BOOST_TYPEOF_REGISTER_TYPE(boost::units::meter_base_unit)
+
+#endif
+
+#endif // BOOST_UNITS_METER_BASE_UNIT_HPP
+

Added: sandbox/units/boost/units/systems/base_units/mile_base_unit.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/base_units/mile_base_unit.hpp 2007-05-31 14:34:24 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_MILE_BASE_UNIT_HPP
+#define BOOST_UNITS_MILE_BASE_UNIT_HPP
+
+#include <string>
+
+#include <boost/units/config.hpp>
+#include <boost/units/base_unit.hpp>
+#include <boost/units/systems/base_dimensions/length_base_dimension.hpp>
+
+namespace boost {
+
+namespace units {
+
+struct mile_base_unit : public base_unit<mile_base_unit, length_dimension, -16>
+{
+ static std::string name() { return("mile"); }
+ static std::string symbol() { return("mi"); }
+};
+
+} // namespace units
+
+} // namespace boost
+
+#if BOOST_UNITS_HAS_BOOST_TYPEOF
+
+#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
+
+BOOST_TYPEOF_REGISTER_TYPE(boost::units::mile_base_unit)
+
+#endif
+
+#endif // BOOST_UNITS_MILE_BASE_UNIT_HPP

Added: sandbox/units/boost/units/systems/base_units/minute_base_unit.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/base_units/minute_base_unit.hpp 2007-05-31 14:34:24 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_MINUTE_BASE_UNIT_HPP
+#define BOOST_UNITS_MINUTE_BASE_UNIT_HPP
+
+#include <string>
+
+#include <boost/units/config.hpp>
+#include <boost/units/base_unit.hpp>
+#include <boost/units/systems/base_dimensions/time_base_dimension.hpp>
+
+namespace boost {
+
+namespace units {
+
+struct minute_base_unit : public base_unit<minute_base_unit, time_dimension, -13>
+{
+ static std::string name() { return("minute"); }
+ static std::string symbol() { return("min"); }
+};
+
+} // namespace units
+
+} // namespace boost
+
+#if BOOST_UNITS_HAS_BOOST_TYPEOF
+
+#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
+
+BOOST_TYPEOF_REGISTER_TYPE(boost::units::minute_base_unit)
+
+#endif
+
+#endif // BOOST_UNITS_MINUTE_BASE_UNIT_HPP

Added: sandbox/units/boost/units/systems/base_units/mole_base_unit.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/base_units/mole_base_unit.hpp 2007-05-31 14:34:24 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_MOLE_BASE_UNIT_HPP
+#define BOOST_UNITS_MOLE_BASE_UNIT_HPP
+
+#include <string>
+
+#include <boost/units/config.hpp>
+#include <boost/units/base_unit.hpp>
+#include <boost/units/systems/base_dimensions/amount_base_dimension.hpp>
+
+namespace boost {
+
+namespace units {
+
+struct mole_base_unit : public base_unit<mole_base_unit, amount_dimension, -6>
+{
+ static std::string name() { return("mole"); }
+ static std::string symbol() { return("mol"); }
+};
+
+} // namespace units
+
+} // namespace boost
+
+#if BOOST_UNITS_HAS_BOOST_TYPEOF
+
+#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
+
+BOOST_TYPEOF_REGISTER_TYPE(boost::units::mole_base_unit)
+
+#endif
+
+#endif // BOOST_UNITS_MOLE_BASE_UNIT_HPP

Added: sandbox/units/boost/units/systems/base_units/radian_base_unit.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/base_units/radian_base_unit.hpp 2007-05-31 14:34:24 EDT (Thu, 31 May 2007)
@@ -0,0 +1,43 @@
+// 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_RADIAN_BASE_UNIT_HPP
+#define BOOST_UNITS_RADIAN_BASE_UNIT_HPP
+
+#include <string>
+
+#include <boost/units/config.hpp>
+#include <boost/units/base_unit.hpp>
+#include <boost/units/systems/base_dimensions/plane_angle_base_dimension.hpp>
+
+namespace boost {
+
+namespace units {
+
+struct radian_base_unit : public base_unit<radian_base_unit, plane_angle_dimension, -4>
+{
+ static std::string name() { return("radian"); }
+ static std::string symbol() { return("rad"); }
+};
+
+} // namespace units
+
+} // namespace boost
+
+#if BOOST_UNITS_HAS_BOOST_TYPEOF
+
+#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
+
+BOOST_TYPEOF_REGISTER_TYPE(boost::units::radian_base_unit)
+
+
+#endif
+
+#endif // BOOST_UNITS_RADIAN_BASE_UNIT_HPP

Added: sandbox/units/boost/units/systems/base_units/second_base_unit.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/base_units/second_base_unit.hpp 2007-05-31 14:34:24 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_SECOND_BASE_UNIT_HPP
+#define BOOST_UNITS_SECOND_BASE_UNIT_HPP
+
+#include <string>
+
+#include <boost/units/config.hpp>
+#include <boost/units/base_unit.hpp>
+#include <boost/units/systems/base_dimensions/time_base_dimension.hpp>
+
+namespace boost {
+
+namespace units {
+
+struct second_base_unit : public base_unit<second_base_unit, time_dimension, -14>
+{
+ static std::string name() { return("second"); }
+ static std::string symbol() { return("s"); }
+};
+
+} // namespace units
+
+} // namespace boost
+
+#if BOOST_UNITS_HAS_BOOST_TYPEOF
+
+#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
+
+BOOST_TYPEOF_REGISTER_TYPE(boost::units::second_base_unit)
+
+#endif
+
+#endif // BOOST_UNITS_SECOND_BASE_UNIT_HPP

Added: sandbox/units/boost/units/systems/base_units/steradian_base_unit.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/base_units/steradian_base_unit.hpp 2007-05-31 14:34:24 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_STERADIAN_BASE_UNIT_HPP
+#define BOOST_UNITS_STERADIAN_BASE_UNIT_HPP
+
+#include <string>
+
+#include <boost/units/config.hpp>
+#include <boost/units/base_unit.hpp>
+#include <boost/units/systems/base_dimensions/solid_angle_base_dimension.hpp>
+
+namespace boost {
+
+namespace units {
+
+struct steradian_base_unit : public base_unit<steradian_base_unit, solid_angle_dimension, -1>
+{
+ static std::string name() { return("steradian"); }
+ static std::string symbol() { return("sr"); }
+};
+
+} // namespace units
+
+} // namespace boost
+
+#if BOOST_UNITS_HAS_BOOST_TYPEOF
+
+#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
+
+BOOST_TYPEOF_REGISTER_TYPE(boost::units::steradian_base_unit)
+
+#endif
+
+#endif // BOOST_UNITS_STERADIAN_BASE_UNIT_HPP

Added: sandbox/units/boost/units/systems/base_units/yard_base_unit.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/base_units/yard_base_unit.hpp 2007-05-31 14:34:24 EDT (Thu, 31 May 2007)
@@ -0,0 +1,43 @@
+// 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_YARD_BASE_UNIT_HPP
+#define BOOST_UNITS_YARD_BASE_UNIT_HPP
+
+#include <string>
+
+#include <boost/units/config.hpp>
+#include <boost/units/base_unit.hpp>
+#include <boost/units/systems/base_dimensions/length_base_dimension.hpp>
+
+namespace boost {
+
+namespace units {
+
+struct yard_base_unit : public base_unit<yard_base_unit, length_dimension, -17>
+{
+ static std::string name() { return("yard"); }
+ static std::string symbol() { return("yd"); }
+};
+
+} // namespace units
+
+} // namespace boost
+
+#if BOOST_UNITS_HAS_BOOST_TYPEOF
+
+#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
+
+BOOST_TYPEOF_REGISTER_TYPE(boost::units::yard_base_unit)
+
+
+#endif
+
+#endif // BOOST_UNITS_YARD_BASE_UNIT_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