|
Boost-Commit : |
From: steven_at_[hidden]
Date: 2008-05-13 00:32:41
Author: steven_watanabe
Date: 2008-05-13 00:32:36 EDT (Tue, 13 May 2008)
New Revision: 45316
URL: http://svn.boost.org/trac/boost/changeset/45316
Log:
Broke up non-si units into separate headers
Added:
sandbox/units/boost/units/systems/other/acre.hpp (contents, props changed)
sandbox/units/boost/units/systems/other/angstrom.hpp (contents, props changed)
sandbox/units/boost/units/systems/other/apothecaries_dram.hpp (contents, props changed)
sandbox/units/boost/units/systems/other/apothecaries_ounce.hpp (contents, props changed)
sandbox/units/boost/units/systems/other/apothecaries_pound.hpp (contents, props changed)
sandbox/units/boost/units/systems/other/apothecaries_scruple.hpp (contents, props changed)
sandbox/units/boost/units/systems/other/arcdegree.hpp (contents, props changed)
sandbox/units/boost/units/systems/other/arcminute.hpp (contents, props changed)
sandbox/units/boost/units/systems/other/arcsecond.hpp (contents, props changed)
sandbox/units/boost/units/systems/other/are.hpp (contents, props changed)
sandbox/units/boost/units/systems/other/astronomical_unit.hpp (contents, props changed)
sandbox/units/boost/units/systems/other/avoirdupois_dram.hpp (contents, props changed)
sandbox/units/boost/units/systems/other/avoirdupois_ounce.hpp (contents, props changed)
sandbox/units/boost/units/systems/other/avoirdupois_pound.hpp (contents, props changed)
sandbox/units/boost/units/systems/other/bar.hpp (contents, props changed)
sandbox/units/boost/units/systems/other/barn.hpp (contents, props changed)
sandbox/units/boost/units/systems/other/bushel.hpp (contents, props changed)
sandbox/units/boost/units/systems/other/chain.hpp (contents, props changed)
sandbox/units/boost/units/systems/other/day.hpp (contents, props changed)
sandbox/units/boost/units/systems/other/dry_pint.hpp (contents, props changed)
sandbox/units/boost/units/systems/other/dry_quart.hpp (contents, props changed)
sandbox/units/boost/units/systems/other/fathom.hpp (contents, props changed)
sandbox/units/boost/units/systems/other/fermi.hpp (contents, props changed)
sandbox/units/boost/units/systems/other/fluid_dram.hpp (contents, props changed)
sandbox/units/boost/units/systems/other/fluid_ounce.hpp (contents, props changed)
sandbox/units/boost/units/systems/other/foot.hpp (contents, props changed)
sandbox/units/boost/units/systems/other/gallon.hpp (contents, props changed)
sandbox/units/boost/units/systems/other/gill.hpp (contents, props changed)
sandbox/units/boost/units/systems/other/grain.hpp (contents, props changed)
sandbox/units/boost/units/systems/other/hectare.hpp (contents, props changed)
sandbox/units/boost/units/systems/other/hour.hpp (contents, props changed)
sandbox/units/boost/units/systems/other/knot.hpp (contents, props changed)
sandbox/units/boost/units/systems/other/league.hpp (contents, props changed)
sandbox/units/boost/units/systems/other/light_day.hpp (contents, props changed)
sandbox/units/boost/units/systems/other/light_hour.hpp (contents, props changed)
sandbox/units/boost/units/systems/other/light_minute.hpp (contents, props changed)
sandbox/units/boost/units/systems/other/light_second.hpp (contents, props changed)
sandbox/units/boost/units/systems/other/light_year.hpp (contents, props changed)
sandbox/units/boost/units/systems/other/link.hpp (contents, props changed)
sandbox/units/boost/units/systems/other/liquid_pint.hpp (contents, props changed)
sandbox/units/boost/units/systems/other/liquid_quart.hpp (contents, props changed)
sandbox/units/boost/units/systems/other/liter.hpp (contents, props changed)
sandbox/units/boost/units/systems/other/long_ton.hpp (contents, props changed)
sandbox/units/boost/units/systems/other/micron.hpp (contents, props changed)
sandbox/units/boost/units/systems/other/mile.hpp (contents, props changed)
sandbox/units/boost/units/systems/other/minim.hpp (contents, props changed)
sandbox/units/boost/units/systems/other/minute.hpp (contents, props changed)
sandbox/units/boost/units/systems/other/nautical_mile.hpp (contents, props changed)
sandbox/units/boost/units/systems/other/non_si_unit.hpp (contents, props changed)
sandbox/units/boost/units/systems/other/parsec.hpp (contents, props changed)
sandbox/units/boost/units/systems/other/peck.hpp (contents, props changed)
sandbox/units/boost/units/systems/other/pennyweight.hpp (contents, props changed)
sandbox/units/boost/units/systems/other/rod.hpp (contents, props changed)
sandbox/units/boost/units/systems/other/short_hundredweight.hpp (contents, props changed)
sandbox/units/boost/units/systems/other/short_ton.hpp (contents, props changed)
sandbox/units/boost/units/systems/other/ton.hpp (contents, props changed)
Text files modified:
sandbox/units/boost/units/systems/other/non_si_units.hpp | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
Added: sandbox/units/boost/units/systems/other/acre.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/other/acre.hpp 2008-05-13 00:32:36 EDT (Tue, 13 May 2008)
@@ -0,0 +1,19 @@
+// 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-2008 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_UNIT_SYSTEMS_OTHER_ACRE_HPP_INCLUDED
+#define BOOST_UNIT_SYSTEMS_OTHER_ACRE_HPP_INCLUDED
+
+#include <boost/units/systems/other/non_si_unit.hpp>
+#include <boost/units/systems/si/area.hpp>
+
+BOOST_UNITS_NON_SI_UNIT(survey, acre, acre, 4046.873, SI::area, 29);
+
+#endif
Added: sandbox/units/boost/units/systems/other/angstrom.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/other/angstrom.hpp 2008-05-13 00:32:36 EDT (Tue, 13 May 2008)
@@ -0,0 +1,28 @@
+// 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-2008 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_UNIT_SYSTEMS_OTHER_ANGSTROM_HPP_INCLUDED
+#define BOOST_UNIT_SYSTEMS_OTHER_ANGSTROM_HPP_INCLUDED
+
+#include <boost/units/scaled_base_unit.hpp>
+#include <boost/units/static_rational.hpp>
+#include <boost/units/systems/base_units/meter.hpp>
+
+namespace boost {
+namespace units {
+namespace metric {
+
+typedef scaled_base_unit<meter_base_unit, scale<10, static_rational<10> > > angstrom_base_unit;
+
+}
+}
+}
+
+#endif
Added: sandbox/units/boost/units/systems/other/apothecaries_dram.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/other/apothecaries_dram.hpp 2008-05-13 00:32:36 EDT (Tue, 13 May 2008)
@@ -0,0 +1,26 @@
+// 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-2008 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_UNIT_SYSTEMS_OTHER_APOTHECARIES_DRAM_HPP_INCLUDED
+#define BOOST_UNIT_SYSTEMS_OTHER_APOTHECARIES_DRAM_HPP_INCLUDED
+
+#include <boost/units/scaled_base_unit.hpp>
+#include <boost/units/static_rational.hpp>
+#include <boost/units/systems/other/grain.hpp>
+
+namespace boost {
+namespace units {
+namespace us {
+typedef scaled_base_unit<grain_base_unit, scale<60, static_rational<1> > > apothecaries_dram_base_unit; //3.8879346e-3*kilograms
+}
+}
+}
+
+#endif
Added: sandbox/units/boost/units/systems/other/apothecaries_ounce.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/other/apothecaries_ounce.hpp 2008-05-13 00:32:36 EDT (Tue, 13 May 2008)
@@ -0,0 +1,26 @@
+// 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-2008 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_UNIT_SYSTEMS_OTHER_APOTHECARIES_OUNCE_HPP_INCLUDED
+#define BOOST_UNIT_SYSTEMS_OTHER_APOTHECARIES_OUNCE_HPP_INCLUDED
+
+#include <boost/units/scaled_base_unit.hpp>
+#include <boost/units/static_rational.hpp>
+#include <boost/units/systems/other/apothecaries_dram.hpp>
+
+namespace boost {
+namespace units {
+namespace us {
+typedef scaled_base_unit<apothecaries_dram_base_unit, scale<2, static_rational<3> > > apothecaries_ounce_base_unit; //3.11034768e-2*kilograms
+}
+}
+}
+
+#endif
Added: sandbox/units/boost/units/systems/other/apothecaries_pound.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/other/apothecaries_pound.hpp 2008-05-13 00:32:36 EDT (Tue, 13 May 2008)
@@ -0,0 +1,26 @@
+// 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-2008 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_UNIT_SYSTEMS_OTHER_APOTHECARIES_POUND_HPP_INCLUDED
+#define BOOST_UNIT_SYSTEMS_OTHER_APOTHECARIES_POUND_HPP_INCLUDED
+
+#include <boost/units/scaled_base_unit.hpp>
+#include <boost/units/static_rational.hpp>
+#include <boost/units/systems/other/apothecaries_ounce.hpp>
+
+namespace boost {
+namespace units {
+namespace us {
+typedef scaled_base_unit<apothecaries_ounce_base_unit, scale<12, static_rational<1> > > apothecaries_pound_base_unit;//3.732417216e-1*kilograms
+}
+}
+}
+
+#endif
Added: sandbox/units/boost/units/systems/other/apothecaries_scruple.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/other/apothecaries_scruple.hpp 2008-05-13 00:32:36 EDT (Tue, 13 May 2008)
@@ -0,0 +1,26 @@
+// 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-2008 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_UNIT_SYSTEMS_OTHER_APOTHECARIES_SCRUPLE_HPP_INCLUDED
+#define BOOST_UNIT_SYSTEMS_OTHER_APOTHECARIES_SCRUPLE_HPP_INCLUDED
+
+#include <boost/units/scaled_base_unit.hpp>
+#include <boost/units/static_rational.hpp>
+#include <boost/units/systems/other/grain.hpp>
+
+namespace boost {
+namespace units {
+namespace us {
+typedef scaled_base_unit<grain_base_unit, scale<20, static_rational<1> > > apothecaries_scruple_base_unit; //1.2959782e-3*kilograms
+}
+}
+}
+
+#endif
Added: sandbox/units/boost/units/systems/other/arcdegree.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/other/arcdegree.hpp 2008-05-13 00:32:36 EDT (Tue, 13 May 2008)
@@ -0,0 +1,19 @@
+// 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-2008 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_UNIT_SYSTEMS_OTHER_ARCDEGREE_HPP_INCLUDED
+#define BOOST_UNIT_SYSTEMS_OTHER_ARCDEGREE_HPP_INCLUDED
+
+#include <boost/units/systems/other/non_si_unit.hpp>
+#include <boost/units/systems/base_units/radian.hpp>
+
+BOOST_UNITS_NON_SI_UNIT(metric, arcdegree, argdegree, (3.14159265358979323846264338328/180), radian_base_unit, 7);
+
+#endif
Added: sandbox/units/boost/units/systems/other/arcminute.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/other/arcminute.hpp 2008-05-13 00:32:36 EDT (Tue, 13 May 2008)
@@ -0,0 +1,19 @@
+// 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-2008 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_UNIT_SYSTEMS_OTHER_ARCMINUTE_HPP_INCLUDED
+#define BOOST_UNIT_SYSTEMS_OTHER_ARCMINUTE_HPP_INCLUDED
+
+#include <boost/units/systems/other/non_si_unit.hpp>
+#include <boost/units/systems/base_units/radian.hpp>
+
+BOOST_UNITS_NON_SI_UNIT(metric, arcminute, arcminute, (3.14159265358979323846264338328/10800), radian_base_unit, 8);
+
+#endif
Added: sandbox/units/boost/units/systems/other/arcsecond.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/other/arcsecond.hpp 2008-05-13 00:32:36 EDT (Tue, 13 May 2008)
@@ -0,0 +1,19 @@
+// 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-2008 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_UNIT_SYSTEMS_OTHER_ARCSECOND_HPP_INCLUDED
+#define BOOST_UNIT_SYSTEMS_OTHER_ARCSECOND_HPP_INCLUDED
+
+#include <boost/units/systems/other/non_si_unit.hpp>
+#include <boost/units/systems/base_units/radian.hpp>
+
+BOOST_UNITS_NON_SI_UNIT(metric, arcsecond, arcsecond, (3.14159265358979323846264338328/648000), radian_base_unit, 9);
+
+#endif
Added: sandbox/units/boost/units/systems/other/are.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/other/are.hpp 2008-05-13 00:32:36 EDT (Tue, 13 May 2008)
@@ -0,0 +1,19 @@
+// 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-2008 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_UNIT_SYSTEMS_OTHER_ARE_HPP_INCLUDED
+#define BOOST_UNIT_SYSTEMS_OTHER_ARE_HPP_INCLUDED
+
+#include <boost/units/systems/other/non_si_unit.hpp>
+#include <boost/units/systems/si/area.hpp>
+
+BOOST_UNITS_NON_SI_UNIT(metric, are, are, 1.0e2, SI::area, 10);
+
+#endif
Added: sandbox/units/boost/units/systems/other/astronomical_unit.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/other/astronomical_unit.hpp 2008-05-13 00:32:36 EDT (Tue, 13 May 2008)
@@ -0,0 +1,20 @@
+// 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-2008 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_UNIT_SYSTEMS_OTHER_ASTRONOMICAL_UNIT_HPP_INCLUDED
+#define BOOST_UNIT_SYSTEMS_OTHER_ASTRONOMICAL_UNIT_HPP_INCLUDED
+
+#include <boost/units/systems/other/non_si_unit.hpp>
+#include <boost/units/systems/base_units/meter.hpp>
+
+// TODO: what is the symbol???
+BOOST_UNITS_NON_SI_UNIT(astronomical, astronomical_unit, astronomical_unit, 149597870691.0, meter_base_unit, 0);
+
+#endif
Added: sandbox/units/boost/units/systems/other/avoirdupois_dram.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/other/avoirdupois_dram.hpp 2008-05-13 00:32:36 EDT (Tue, 13 May 2008)
@@ -0,0 +1,19 @@
+// 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-2008 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_UNIT_SYSTEMS_OTHER_AVOIRDUPOIS_DRAM_HPP_INCLUDED
+#define BOOST_UNIT_SYSTEMS_OTHER_AVOIRDUPOIS_DRAM_HPP_INCLUDED
+
+#include <boost/units/systems/other/non_si_unit.hpp>
+#include <boost/units/systems/base_units/kilogram.hpp>
+
+BOOST_UNITS_NON_SI_UNIT(us, avoirdupois_dram, avoirdupois_dram, 1.7718451953125e-3, kilogram_base_unit, 21);
+
+#endif
Added: sandbox/units/boost/units/systems/other/avoirdupois_ounce.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/other/avoirdupois_ounce.hpp 2008-05-13 00:32:36 EDT (Tue, 13 May 2008)
@@ -0,0 +1,26 @@
+// 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-2008 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_UNIT_SYSTEMS_OTHER_AVOIRDUPOIS_OUNCE_HPP_INCLUDED
+#define BOOST_UNIT_SYSTEMS_OTHER_AVOIRDUPOIS_OUNCE_HPP_INCLUDED
+
+#include <boost/units/scaled_base_unit.hpp>
+#include <boost/units/static_rational.hpp>
+#include <boost/units/systems/other/avoirdupois_dram.hpp>
+
+namespace boost {
+namespace units {
+namespace us {
+typedef scaled_base_unit<avoirdupois_dram_base_unit, scale<2, static_rational<4> > > avoirdupois_ounce_base_unit; //2.8349523125e-2*kilograms
+}
+}
+}
+
+#endif
Added: sandbox/units/boost/units/systems/other/avoirdupois_pound.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/other/avoirdupois_pound.hpp 2008-05-13 00:32:36 EDT (Tue, 13 May 2008)
@@ -0,0 +1,26 @@
+// 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-2008 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_UNIT_SYSTEMS_OTHER_AVOIRDUPOIS_POUND_HPP_INCLUDED
+#define BOOST_UNIT_SYSTEMS_OTHER_AVOIRDUPOIS_POUND_HPP_INCLUDED
+
+#include <boost/units/scaled_base_unit.hpp>
+#include <boost/units/static_rational.hpp>
+#include <boost/units/systems/other/avoirdupois_dram.hpp>
+
+namespace boost {
+namespace units {
+namespace us {
+typedef scaled_base_unit<avoirdupois_dram_base_unit, scale<2, static_rational<8> > > avoirdupois_pound_base_unit; //4.5359237e-1*kilograms
+}
+}
+}
+
+#endif
Added: sandbox/units/boost/units/systems/other/bar.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/other/bar.hpp 2008-05-13 00:32:36 EDT (Tue, 13 May 2008)
@@ -0,0 +1,19 @@
+// 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-2008 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_UNIT_SYSTEMS_OTHER_BAR_HPP_INCLUDED
+#define BOOST_UNIT_SYSTEMS_OTHER_BAR_HPP_INCLUDED
+
+#include <boost/units/systems/other/non_si_unit.hpp>
+#include <boost/units/systems/si/pressure.hpp>
+
+BOOST_UNITS_NON_SI_UNIT(metric, bar, bar, 1.0e5, SI::pressure, 14);
+
+#endif
Added: sandbox/units/boost/units/systems/other/barn.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/other/barn.hpp 2008-05-13 00:32:36 EDT (Tue, 13 May 2008)
@@ -0,0 +1,19 @@
+// 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-2008 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_UNIT_SYSTEMS_OTHER_BARN_HPP_INCLUDED
+#define BOOST_UNIT_SYSTEMS_OTHER_BARN_HPP_INCLUDED
+
+#include <boost/units/systems/other/non_si_unit.hpp>
+#include <boost/units/systems/si/area.hpp>
+
+BOOST_UNITS_NON_SI_UNIT(metric, barn, barn, 1.0e-28, SI::area, 11);
+
+#endif
Added: sandbox/units/boost/units/systems/other/bushel.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/other/bushel.hpp 2008-05-13 00:32:36 EDT (Tue, 13 May 2008)
@@ -0,0 +1,26 @@
+// 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-2008 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_UNIT_SYSTEMS_OTHER_BUSHEL_HPP_INCLUDED
+#define BOOST_UNIT_SYSTEMS_OTHER_BUSHEL_HPP_INCLUDED
+
+#include <boost/units/scaled_base_unit.hpp>
+#include <boost/units/static_rational.hpp>
+#include <boost/units/systems/other/dry_pint.hpp>
+
+namespace boost {
+namespace units {
+namespace us {
+typedef scaled_base_unit<dry_pint_base_unit, scale<2, static_rational<6> > > bushel_base_unit; //3.523907e-2*cubic_meters
+}
+}
+}
+
+#endif
Added: sandbox/units/boost/units/systems/other/chain.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/other/chain.hpp 2008-05-13 00:32:36 EDT (Tue, 13 May 2008)
@@ -0,0 +1,19 @@
+// 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-2008 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_UNIT_SYSTEMS_OTHER_CHAIN_HPP_INCLUDED
+#define BOOST_UNIT_SYSTEMS_OTHER_CHAIN_HPP_INCLUDED
+
+#include <boost/units/systems/other/non_si_unit.hpp>
+#include <boost/units/systems/base_units/meter.hpp>
+
+BOOST_UNITS_NON_SI_UNIT(survey, chain, chain, 20.11684, meter_base_unit, 27);
+
+#endif
Added: sandbox/units/boost/units/systems/other/day.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/other/day.hpp 2008-05-13 00:32:36 EDT (Tue, 13 May 2008)
@@ -0,0 +1,35 @@
+// 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-2008 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_UNIT_SYSTEMS_OTHER_DAY_HPP_INCLUDED
+#define BOOST_UNIT_SYSTEMS_OTHER_DAY_HPP_INCLUDED
+
+#include <boost/units/scaled_base_unit.hpp>
+#include <boost/units/static_rational.hpp>
+#include <boost/units/systems/base_units/hour.hpp>
+
+namespace boost {
+namespace units {
+namespace metric {
+
+typedef scaled_base_unit<units::hour_base_unit, scale<24, static_rational<1> > > day_base_unit;
+
+}
+
+template<>
+struct base_unit_info<metric::day_base_unit> {
+ static const char* name() { return("day"); }
+ static const char* symbol() { return("day"); }
+};
+
+}
+}
+
+#endif
Added: sandbox/units/boost/units/systems/other/dry_pint.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/other/dry_pint.hpp 2008-05-13 00:32:36 EDT (Tue, 13 May 2008)
@@ -0,0 +1,19 @@
+// 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-2008 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_UNIT_SYSTEMS_OTHER_DRY_PINT_HPP_INCLUDED
+#define BOOST_UNIT_SYSTEMS_OTHER_DRY_PINT_HPP_INCLUDED
+
+#include <boost/units/systems/other/non_si_unit.hpp>
+#include <boost/units/systems/si/volume.hpp>
+
+BOOST_UNITS_NON_SI_UNIT(us, dry_pint, dry_pint, 5.506105e-4, SI::volume, 20);
+
+#endif
Added: sandbox/units/boost/units/systems/other/dry_quart.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/other/dry_quart.hpp 2008-05-13 00:32:36 EDT (Tue, 13 May 2008)
@@ -0,0 +1,26 @@
+// 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-2008 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_UNIT_SYSTEMS_OTHER_DRY_QUART_HPP_INCLUDED
+#define BOOST_UNIT_SYSTEMS_OTHER_DRY_QUART_HPP_INCLUDED
+
+#include <boost/units/scaled_base_unit.hpp>
+#include <boost/units/static_rational.hpp>
+#include <boost/units/systems/other/dry_pint.hpp>
+
+namespace boost {
+namespace units {
+namespace us {
+typedef scaled_base_unit<dry_pint_base_unit, scale<2, static_rational<1> > > dry_quart_base_unit; //1.101221e-3*cubic_meters
+}
+}
+}
+
+#endif
Added: sandbox/units/boost/units/systems/other/fathom.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/other/fathom.hpp 2008-05-13 00:32:36 EDT (Tue, 13 May 2008)
@@ -0,0 +1,19 @@
+// 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-2008 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_UNIT_SYSTEMS_OTHER_FATHOM_HPP_INCLUDED
+#define BOOST_UNIT_SYSTEMS_OTHER_FATHOM_HPP_INCLUDED
+
+#include <boost/units/systems/other/non_si_unit.hpp>
+#include <boost/units/systems/base_units/meter.hpp>
+
+BOOST_UNITS_NON_SI_UNIT(nautical, fathom, fathom, 1.852, meter_base_unit, 15);
+
+#endif
Added: sandbox/units/boost/units/systems/other/fermi.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/other/fermi.hpp 2008-05-13 00:32:36 EDT (Tue, 13 May 2008)
@@ -0,0 +1,28 @@
+// 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-2008 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_UNIT_SYSTEMS_OTHER_FERMI_HPP_INCLUDED
+#define BOOST_UNIT_SYSTEMS_OTHER_FERMI_HPP_INCLUDED
+
+#include <boost/units/scaled_base_unit.hpp>
+#include <boost/units/static_rational.hpp>
+#include <boost/units/systems/base_units/meter.hpp>
+
+namespace boost {
+namespace units {
+namespace metric {
+
+typedef scaled_base_unit<meter_base_unit, scale<10, static_rational<15> > > fermi_base_unit;
+
+}
+}
+}
+
+#endif
Added: sandbox/units/boost/units/systems/other/fluid_dram.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/other/fluid_dram.hpp 2008-05-13 00:32:36 EDT (Tue, 13 May 2008)
@@ -0,0 +1,26 @@
+// 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-2008 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_UNIT_SYSTEMS_OTHER_FLUID_DRAM_HPP_INCLUDED
+#define BOOST_UNIT_SYSTEMS_OTHER_FLUID_DRAM_HPP_INCLUDED
+
+#include <boost/units/scaled_base_unit.hpp>
+#include <boost/units/static_rational.hpp>
+#include <boost/units/systems/other/minim.hpp>
+
+namespace boost {
+namespace units {
+namespace us {
+typedef scaled_base_unit<minim_base_unit, scale<60, static_rational<1> > > fluid_dram_base_unit; //3.696691e-6*cubic_meters
+}
+}
+}
+
+#endif
Added: sandbox/units/boost/units/systems/other/fluid_ounce.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/other/fluid_ounce.hpp 2008-05-13 00:32:36 EDT (Tue, 13 May 2008)
@@ -0,0 +1,26 @@
+// 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-2008 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_UNIT_SYSTEMS_OTHER_FLUID_OUNCE_HPP_INCLUDED
+#define BOOST_UNIT_SYSTEMS_OTHER_FLUID_OUNCE_HPP_INCLUDED
+
+#include <boost/units/scaled_base_unit.hpp>
+#include <boost/units/static_rational.hpp>
+#include <boost/units/systems/other/fluid_dram.hpp>
+
+namespace boost {
+namespace units {
+namespace us {
+typedef scaled_base_unit<fluid_dram_base_unit, scale<2, static_rational<3> > > fluid_ounce_base_unit; //2.957353e-5*cubic_meters
+}
+}
+}
+
+#endif
Added: sandbox/units/boost/units/systems/other/foot.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/other/foot.hpp 2008-05-13 00:32:36 EDT (Tue, 13 May 2008)
@@ -0,0 +1,19 @@
+// 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-2008 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_UNIT_SYSTEMS_OTHER_FOOT_HPP_INCLUDED
+#define BOOST_UNIT_SYSTEMS_OTHER_FOOT_HPP_INCLUDED
+
+#include <boost/units/systems/other/non_si_unit.hpp>
+#include <boost/units/systems/base_units/meter.hpp>
+
+BOOST_UNITS_NON_SI_UNIT(survey, foot, foot, 0.3048006, meter_base_unit, 25);
+
+#endif
Added: sandbox/units/boost/units/systems/other/gallon.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/other/gallon.hpp 2008-05-13 00:32:36 EDT (Tue, 13 May 2008)
@@ -0,0 +1,26 @@
+// 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-2008 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_UNIT_SYSTEMS_OTHER_GALLON_HPP_INCLUDED
+#define BOOST_UNIT_SYSTEMS_OTHER_GALLON_HPP_INCLUDED
+
+#include <boost/units/scaled_base_unit.hpp>
+#include <boost/units/static_rational.hpp>
+#include <boost/units/systems/other/fluid_dram.hpp>
+
+namespace boost {
+namespace units {
+namespace us {
+typedef scaled_base_unit<fluid_dram_base_unit, scale<2, static_rational<10> > > gallon_base_unit; //3.785412e-3*cubic_meters
+}
+}
+}
+
+#endif
Added: sandbox/units/boost/units/systems/other/gill.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/other/gill.hpp 2008-05-13 00:32:36 EDT (Tue, 13 May 2008)
@@ -0,0 +1,26 @@
+// 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-2008 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_UNIT_SYSTEMS_OTHER_GILL_HPP_INCLUDED
+#define BOOST_UNIT_SYSTEMS_OTHER_GILL_HPP_INCLUDED
+
+#include <boost/units/scaled_base_unit.hpp>
+#include <boost/units/static_rational.hpp>
+#include <boost/units/systems/other/fluid_dram.hpp>
+
+namespace boost {
+namespace units {
+namespace us {
+typedef scaled_base_unit<fluid_dram_base_unit, scale<2, static_rational<5> > > gill_base_unit; //1.182941e-4*cubic_meters
+}
+}
+}
+
+#endif
Added: sandbox/units/boost/units/systems/other/grain.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/other/grain.hpp 2008-05-13 00:32:36 EDT (Tue, 13 May 2008)
@@ -0,0 +1,19 @@
+// 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-2008 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_UNIT_SYSTEMS_OTHER_GRAIN_HPP_INCLUDED
+#define BOOST_UNIT_SYSTEMS_OTHER_GRAIN_HPP_INCLUDED
+
+#include <boost/units/systems/other/non_si_unit.hpp>
+#include <boost/units/systems/base_units/kilogram.hpp>
+
+BOOST_UNITS_NON_SI_UNIT(us, grain, grain, 6.479891e-5, kilogram_base_unit, 23);
+
+#endif
Added: sandbox/units/boost/units/systems/other/hectare.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/other/hectare.hpp 2008-05-13 00:32:36 EDT (Tue, 13 May 2008)
@@ -0,0 +1,19 @@
+// 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-2008 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_UNIT_SYSTEMS_OTHER_HECTARE_HPP_INCLUDED
+#define BOOST_UNIT_SYSTEMS_OTHER_HECTARE_HPP_INCLUDED
+
+#include <boost/units/systems/other/non_si_unit.hpp>
+#include <boost/units/systems/si/area.hpp>
+
+BOOST_UNITS_NON_SI_UNIT(metric, hectare, hectare, 1.0e4, SI::area, 12);
+
+#endif
Added: sandbox/units/boost/units/systems/other/hour.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/other/hour.hpp 2008-05-13 00:32:36 EDT (Tue, 13 May 2008)
@@ -0,0 +1,36 @@
+// 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-2008 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_UNIT_SYSTEMS_OTHER_HOUR_HPP_INCLUDED
+#define BOOST_UNIT_SYSTEMS_OTHER_HOUR_HPP_INCLUDED
+
+#include <boost/units/scaled_base_unit.hpp>
+#include <boost/units/static_rational.hpp>
+#include <boost/units/units_fwd.hpp>
+#include <boost/units/systems/base_units/second.hpp>
+
+namespace boost {
+namespace units {
+namespace metric {
+
+typedef scaled_base_unit<second_base_unit, scale<60, static_rational<2> > > hour_base_unit;
+
+}
+
+template<>
+struct base_unit_info<metric::hour_base_unit> {
+ static const char* name() { return("hour"); }
+ static const char* symbol() { return("hr"); }
+};
+
+}
+}
+
+#endif
Added: sandbox/units/boost/units/systems/other/knot.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/other/knot.hpp 2008-05-13 00:32:36 EDT (Tue, 13 May 2008)
@@ -0,0 +1,19 @@
+// 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-2008 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_UNIT_SYSTEMS_OTHER_KNOT_HPP_INCLUDED
+#define BOOST_UNIT_SYSTEMS_OTHER_KNOT_HPP_INCLUDED
+
+#include <boost/units/systems/other/non_si_unit.hpp>
+#include <boost/units/systems/si/velocity.hpp>
+
+BOOST_UNITS_NON_SI_UNIT(nautical, knot, knot, (1852.0/3600.0), SI::velocity, 16);
+
+#endif
Added: sandbox/units/boost/units/systems/other/league.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/other/league.hpp 2008-05-13 00:32:36 EDT (Tue, 13 May 2008)
@@ -0,0 +1,19 @@
+// 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-2008 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_UNIT_SYSTEMS_OTHER_LEAGUE_HPP_INCLUDED
+#define BOOST_UNIT_SYSTEMS_OTHER_LEAGUE_HPP_INCLUDED
+
+#include <boost/units/systems/other/non_si_unit.hpp>
+#include <boost/units/systems/base_units/meter.hpp>
+
+BOOST_UNITS_NON_SI_UNIT(nautical, league, league, 5556.0, meter_base_unit, 17);
+
+#endif
Added: sandbox/units/boost/units/systems/other/light_day.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/other/light_day.hpp 2008-05-13 00:32:36 EDT (Tue, 13 May 2008)
@@ -0,0 +1,19 @@
+// 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-2008 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_UNIT_SYSTEMS_OTHER_LIGHT_DAY_HPP_INCLUDED
+#define BOOST_UNIT_SYSTEMS_OTHER_LIGHT_DAY_HPP_INCLUDED
+
+#include <boost/units/systems/other/non_si_unit.hpp>
+#include <boost/units/systems/base_units/meter.hpp>
+
+BOOST_UNITS_NON_SI_UNIT(astronomical, light_day, light_day, 2.59020683712e13, meter_base_unit, 1);
+
+#endif
Added: sandbox/units/boost/units/systems/other/light_hour.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/other/light_hour.hpp 2008-05-13 00:32:36 EDT (Tue, 13 May 2008)
@@ -0,0 +1,19 @@
+// 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-2008 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_UNIT_SYSTEMS_OTHER_LIGHT_HOUR_HPP_INCLUDED
+#define BOOST_UNIT_SYSTEMS_OTHER_LIGHT_HOUR_HPP_INCLUDED
+
+#include <boost/units/systems/other/non_si_unit.hpp>
+#include <boost/units/systems/base_units/meter.hpp>
+
+BOOST_UNITS_NON_SI_UNIT(astronomical, light_hour, light_hour, 1.0792528488e12, meter_base_unit, 2);
+
+#endif
Added: sandbox/units/boost/units/systems/other/light_minute.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/other/light_minute.hpp 2008-05-13 00:32:36 EDT (Tue, 13 May 2008)
@@ -0,0 +1,19 @@
+// 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-2008 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_UNIT_SYSTEMS_OTHER_LIGHT_MINUTE_HPP_INCLUDED
+#define BOOST_UNIT_SYSTEMS_OTHER_LIGHT_MINUTE_HPP_INCLUDED
+
+#include <boost/units/systems/other/non_si_unit.hpp>
+#include <boost/units/systems/base_units/meter.hpp>
+
+BOOST_UNITS_NON_SI_UNIT(astronomical, light_minute, light_minute, 1.798754748e10, meter_base_unit, 3);
+
+#endif
Added: sandbox/units/boost/units/systems/other/light_second.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/other/light_second.hpp 2008-05-13 00:32:36 EDT (Tue, 13 May 2008)
@@ -0,0 +1,19 @@
+// 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-2008 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_UNIT_SYSTEMS_OTHER_LIGHT_SECOND_HPP_INCLUDED
+#define BOOST_UNIT_SYSTEMS_OTHER_LIGHT_SECOND_HPP_INCLUDED
+
+#include <boost/units/systems/other/non_si_unit.hpp>
+#include <boost/units/systems/base_units/meter.hpp>
+
+BOOST_UNITS_NON_SI_UNIT(astronomical, light_second, light_second, 2.99792458e8, meter_base_unit, 4);
+
+#endif
Added: sandbox/units/boost/units/systems/other/light_year.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/other/light_year.hpp 2008-05-13 00:32:36 EDT (Tue, 13 May 2008)
@@ -0,0 +1,19 @@
+// 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-2008 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_UNIT_SYSTEMS_OTHER_LIGHT_YEAR_HPP_INCLUDED
+#define BOOST_UNIT_SYSTEMS_OTHER_LIGHT_YEAR_HPP_INCLUDED
+
+#include <boost/units/systems/other/non_si_unit.hpp>
+#include <boost/units/systems/base_units/meter.hpp>
+
+BOOST_UNITS_NON_SI_UNIT(astronomical, light_year, light_year, 9.460730472580e15, meter_base_unit, 5);
+
+#endif
Added: sandbox/units/boost/units/systems/other/link.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/other/link.hpp 2008-05-13 00:32:36 EDT (Tue, 13 May 2008)
@@ -0,0 +1,19 @@
+// 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-2008 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_UNIT_SYSTEMS_OTHER_LINK_HPP_INCLUDED
+#define BOOST_UNIT_SYSTEMS_OTHER_LINK_HPP_INCLUDED
+
+#include <boost/units/systems/other/non_si_unit.hpp>
+#include <boost/units/systems/base_units/meter.hpp>
+
+BOOST_UNITS_NON_SI_UNIT(survey, link, link, 0.2011684, meter_base_unit, 24);
+
+#endif
Added: sandbox/units/boost/units/systems/other/liquid_pint.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/other/liquid_pint.hpp 2008-05-13 00:32:36 EDT (Tue, 13 May 2008)
@@ -0,0 +1,26 @@
+// 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-2008 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_UNIT_SYSTEMS_OTHER_LIQUID_PINT_HPP_INCLUDED
+#define BOOST_UNIT_SYSTEMS_OTHER_LIQUID_PINT_HPP_INCLUDED
+
+#include <boost/units/scaled_base_unit.hpp>
+#include <boost/units/static_rational.hpp>
+#include <boost/units/systems/other/fluid_dram.hpp>
+
+namespace boost {
+namespace units {
+namespace us {
+typedef scaled_base_unit<fluid_dram_base_unit, scale<2, static_rational<7> > > liquid_pint_base_unit; //4.731765e-4*cubic_meters
+}
+}
+}
+
+#endif
Added: sandbox/units/boost/units/systems/other/liquid_quart.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/other/liquid_quart.hpp 2008-05-13 00:32:36 EDT (Tue, 13 May 2008)
@@ -0,0 +1,26 @@
+// 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-2008 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_UNIT_SYSTEMS_OTHER_LIQUID_QUART_HPP_INCLUDED
+#define BOOST_UNIT_SYSTEMS_OTHER_LIQUID_QUART_HPP_INCLUDED
+
+#include <boost/units/scaled_base_unit.hpp>
+#include <boost/units/static_rational.hpp>
+#include <boost/units/systems/other/fluid_dram.hpp>
+
+namespace boost {
+namespace units {
+namespace us {
+typedef scaled_base_unit<fluid_dram_base_unit, scale<2, static_rational<8> > > liquid_quart_base_unit; //9.463529e-4*cubic_meters
+}
+}
+}
+
+#endif
Added: sandbox/units/boost/units/systems/other/liter.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/other/liter.hpp 2008-05-13 00:32:36 EDT (Tue, 13 May 2008)
@@ -0,0 +1,19 @@
+// 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-2008 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_UNIT_SYSTEMS_OTHER_LITER_HPP_INCLUDED
+#define BOOST_UNIT_SYSTEMS_OTHER_LITER_HPP_INCLUDED
+
+#include <boost/units/systems/other/non_si_unit.hpp>
+#include <boost/units/systems/si/volume.hpp>
+
+BOOST_UNITS_NON_SI_UNIT(metric, liter, L, 1.0e-3, SI::volume, 13);
+
+#endif
Added: sandbox/units/boost/units/systems/other/long_ton.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/other/long_ton.hpp 2008-05-13 00:32:36 EDT (Tue, 13 May 2008)
@@ -0,0 +1,19 @@
+// 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-2008 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_UNIT_SYSTEMS_OTHER_LONG_TON_HPP_INCLUDED
+#define BOOST_UNIT_SYSTEMS_OTHER_LONG_TON_HPP_INCLUDED
+
+#include <boost/units/systems/other/non_si_unit.hpp>
+#include <boost/units/systems/base_units/kilogram.hpp>
+
+BOOST_UNITS_NON_SI_UNIT(us, long_ton, long_ton, 1.0160469088e3, kilogram_base_unit, 22);
+
+#endif
Added: sandbox/units/boost/units/systems/other/micron.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/other/micron.hpp 2008-05-13 00:32:36 EDT (Tue, 13 May 2008)
@@ -0,0 +1,28 @@
+// 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-2008 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_UNIT_SYSTEMS_OTHER_MICRON_HPP_INCLUDED
+#define BOOST_UNIT_SYSTEMS_OTHER_MICRON_HPP_INCLUDED
+
+#include <boost/units/scaled_base_unit.hpp>
+#include <boost/units/static_rational.hpp>
+#include <boost/units/systems/base_units/meter.hpp>
+
+namespace boost {
+namespace units {
+namespace metric {
+
+typedef scaled_base_unit<meter_base_unit, scale<10, static_rational<6> > > micron_base_unit;
+
+}
+}
+}
+
+#endif
Added: sandbox/units/boost/units/systems/other/mile.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/other/mile.hpp 2008-05-13 00:32:36 EDT (Tue, 13 May 2008)
@@ -0,0 +1,19 @@
+// 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-2008 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_UNIT_SYSTEMS_OTHER_MILE_HPP_INCLUDED
+#define BOOST_UNIT_SYSTEMS_OTHER_MILE_HPP_INCLUDED
+
+#include <boost/units/systems/other/non_si_unit.hpp>
+#include <boost/units/systems/base_units/meter.hpp>
+
+BOOST_UNITS_NON_SI_UNIT(survey, mile, mile, 1609.347, meter_base_unit, 28);
+
+#endif
Added: sandbox/units/boost/units/systems/other/minim.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/other/minim.hpp 2008-05-13 00:32:36 EDT (Tue, 13 May 2008)
@@ -0,0 +1,19 @@
+// 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-2008 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_UNIT_SYSTEMS_OTHER_MINIM_HPP_INCLUDED
+#define BOOST_UNIT_SYSTEMS_OTHER_MINIM_HPP_INCLUDED
+
+#include <boost/units/systems/other/non_si_unit.hpp>
+#include <boost/units/systems/si/volume.hpp>
+
+BOOST_UNITS_NON_SI_UNIT(us, minim, minim, 6.161152e-8, SI::volume, 19);
+
+#endif
Added: sandbox/units/boost/units/systems/other/minute.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/other/minute.hpp 2008-05-13 00:32:36 EDT (Tue, 13 May 2008)
@@ -0,0 +1,36 @@
+// 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-2008 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_UNIT_SYSTEMS_OTHER_MINUTE_HPP_INCLUDED
+#define BOOST_UNIT_SYSTEMS_OTHER_MINUTE_HPP_INCLUDED
+
+#include <boost/units/scaled_base_unit.hpp>
+#include <boost/units/static_rational.hpp>
+#include <boost/units/units_fwd.hpp>
+#include <boost/units/systems/base_units/second.hpp>
+
+namespace boost {
+namespace units {
+namespace metric {
+
+typedef scaled_base_unit<second_base_unit, scale<60, static_rational<1> > > minute_base_unit;
+
+}
+
+template<>
+struct base_unit_info<metric::minute_base_unit> {
+ static const char* name() { return("minute"); }
+ static const char* symbol() { return("min"); }
+};
+
+}
+}
+
+#endif
Added: sandbox/units/boost/units/systems/other/nautical_mile.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/other/nautical_mile.hpp 2008-05-13 00:32:36 EDT (Tue, 13 May 2008)
@@ -0,0 +1,19 @@
+// 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-2008 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_UNIT_SYSTEMS_OTHER_NAUTICAL_MILE_HPP_INCLUDED
+#define BOOST_UNIT_SYSTEMS_OTHER_NAUTICAL_MILE_HPP_INCLUDED
+
+#include <boost/units/systems/other/non_si_unit.hpp>
+#include <boost/units/systems/base_units/meter.hpp>
+
+BOOST_UNITS_NON_SI_UNIT(nautical, nautical_mile, nautical_mile, 1852.0, meter_base_unit, 18);
+
+#endif
Added: sandbox/units/boost/units/systems/other/non_si_unit.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/other/non_si_unit.hpp 2008-05-13 00:32:36 EDT (Tue, 13 May 2008)
@@ -0,0 +1,31 @@
+// 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-2008 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_UNIT_SYSTEMS_OTHER_NON_SI_UNIT_HPP_INCLUDED
+#define BOOST_UNIT_SYSTEMS_OTHER_NON_SI_UNIT_HPP_INCLUDED
+
+#include <boost/units/conversion.hpp>
+
+#define BOOST_UNITS_NON_SI_UNIT(namespace_, name_, symbol_, factor, unit, id)\
+namespace boost { \
+namespace units { \
+namespace namespace_ { \
+struct name_ ## _base_unit \
+ : base_unit<name_ ## _base_unit, unit::dimension_type, id - 100> { \
+ static const char* name() { return(#name_); } \
+ static const char* symbol() { return(#symbol_); }; \
+}; \
+} \
+} \
+} \
+BOOST_UNITS_DEFINE_CONVERSION_FACTOR(namespace_::name_ ## _base_unit, unit, double, factor); \
+BOOST_UNITS_DEFAULT_CONVERSION(namespace_::name_ ## _base_unit, unit)
+
+#endif
Modified: sandbox/units/boost/units/systems/other/non_si_units.hpp
==============================================================================
--- sandbox/units/boost/units/systems/other/non_si_units.hpp (original)
+++ sandbox/units/boost/units/systems/other/non_si_units.hpp 2008-05-13 00:32:36 EDT (Tue, 13 May 2008)
@@ -11,6 +11,8 @@
#ifndef BOOST_UNITS_NON_SI_CONSTANTS_HPP
#define BOOST_UNITS_NON_SI_CONSTANTS_HPP
+#error this header is obsolete, please use the separate headers for each unit
+
// SI conversion factors for various non-SI units
#include <boost/units/conversion.hpp>
Added: sandbox/units/boost/units/systems/other/parsec.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/other/parsec.hpp 2008-05-13 00:32:36 EDT (Tue, 13 May 2008)
@@ -0,0 +1,19 @@
+// 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-2008 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_UNIT_SYSTEMS_OTHER_PARSEC_HPP_INCLUDED
+#define BOOST_UNIT_SYSTEMS_OTHER_PARSEC_HPP_INCLUDED
+
+#include <boost/units/systems/other/non_si_unit.hpp>
+#include <boost/units/systems/base_units/meter.hpp>
+
+BOOST_UNITS_NON_SI_UNIT(astronomical, parsec, parsec, 3.0856775813e16, meter_base_unit, 6);
+
+#endif
Added: sandbox/units/boost/units/systems/other/peck.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/other/peck.hpp 2008-05-13 00:32:36 EDT (Tue, 13 May 2008)
@@ -0,0 +1,26 @@
+// 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-2008 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_UNIT_SYSTEMS_OTHER_PECK_HPP_INCLUDED
+#define BOOST_UNIT_SYSTEMS_OTHER_PECK_HPP_INCLUDED
+
+#include <boost/units/scaled_base_unit.hpp>
+#include <boost/units/static_rational.hpp>
+#include <boost/units/systems/other/dry_pint.hpp>
+
+namespace boost {
+namespace units {
+namespace us {
+typedef scaled_base_unit<dry_pint_base_unit, scale<2, static_rational<4> > > peck_base_unit; //8.809768e-3*cubic_meters
+}
+}
+}
+
+#endif
Added: sandbox/units/boost/units/systems/other/pennyweight.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/other/pennyweight.hpp 2008-05-13 00:32:36 EDT (Tue, 13 May 2008)
@@ -0,0 +1,26 @@
+// 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-2008 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_UNIT_SYSTEMS_OTHER_PENNYWEIGHT_HPP_INCLUDED
+#define BOOST_UNIT_SYSTEMS_OTHER_PENNYWEIGHT_HPP_INCLUDED
+
+#include <boost/units/scaled_base_unit.hpp>
+#include <boost/units/static_rational.hpp>
+#include <boost/units/systems/other/grain.hpp>
+
+namespace boost {
+namespace units {
+namespace us {
+typedef scaled_base_unit<grain_base_unit, scale<24, static_rational<1> > > pennyweight_base_unit; //1.55517384e-3*kilograms
+}
+}
+}
+
+#endif
Added: sandbox/units/boost/units/systems/other/rod.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/other/rod.hpp 2008-05-13 00:32:36 EDT (Tue, 13 May 2008)
@@ -0,0 +1,19 @@
+// 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-2008 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_UNIT_SYSTEMS_OTHER_ROD_HPP_INCLUDED
+#define BOOST_UNIT_SYSTEMS_OTHER_ROD_HPP_INCLUDED
+
+#include <boost/units/systems/other/non_si_unit.hpp>
+#include <boost/units/systems/base_units/meter.hpp>
+
+BOOST_UNITS_NON_SI_UNIT(survey, rod, rod, 5.029210, meter_base_unit, 26);
+
+#endif
Added: sandbox/units/boost/units/systems/other/short_hundredweight.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/other/short_hundredweight.hpp 2008-05-13 00:32:36 EDT (Tue, 13 May 2008)
@@ -0,0 +1,26 @@
+// 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-2008 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_UNIT_SYSTEMS_OTHER_SHORT_HUNDREDWEIGHT_HPP_INCLUDED
+#define BOOST_UNIT_SYSTEMS_OTHER_SHORT_HUNDREDWEIGHT_HPP_INCLUDED
+
+#include <boost/units/scaled_base_unit.hpp>
+#include <boost/units/static_rational.hpp>
+#include <boost/units/systems/other/avoirdupois_pound.hpp>
+
+namespace boost {
+namespace units {
+namespace us {
+typedef scaled_base_unit<avoirdupois_pound_base_unit, scale<10, static_rational<2> > > short_hundredweight_base_unit; //4.5359237e1*kilograms
+}
+}
+}
+
+#endif
Added: sandbox/units/boost/units/systems/other/short_ton.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/other/short_ton.hpp 2008-05-13 00:32:36 EDT (Tue, 13 May 2008)
@@ -0,0 +1,26 @@
+// 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-2008 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_UNIT_SYSTEMS_OTHER_SHORT_TON_HPP_INCLUDED
+#define BOOST_UNIT_SYSTEMS_OTHER_SHORT_TON_HPP_INCLUDED
+
+#include <boost/units/scaled_base_unit.hpp>
+#include <boost/units/static_rational.hpp>
+#include <boost/units/systems/other/avoirdupois_pound.hpp>
+
+namespace boost {
+namespace units {
+namespace us {
+typedef scaled_base_unit<avoirdupois_pound_base_unit, scale<2000, static_rational<1> > > short_ton_base_unit; //9.0718474e2*kilograms
+}
+}
+}
+
+#endif
Added: sandbox/units/boost/units/systems/other/ton.hpp
==============================================================================
--- (empty file)
+++ sandbox/units/boost/units/systems/other/ton.hpp 2008-05-13 00:32:36 EDT (Tue, 13 May 2008)
@@ -0,0 +1,28 @@
+// 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-2008 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_UNIT_SYSTEMS_OTHER_TON_HPP_INCLUDED
+#define BOOST_UNIT_SYSTEMS_OTHER_TON_HPP_INCLUDED
+
+#include <boost/units/scaled_base_unit.hpp>
+#include <boost/units/static_rational.hpp>
+#include <boost/units/systems/base_units/kilogram.hpp>
+
+namespace boost {
+namespace units {
+namespace metric {
+
+typedef scaled_base_unit<kilogram_base_unit, scale<10, static_rational<3> > > ton_base_unit;
+
+}
+}
+}
+
+#endif
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