Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r56125 - trunk/boost/units/base_units/us
From: boost_at_[hidden]
Date: 2009-09-09 16:35:35


Author: matthiasschabel
Date: 2009-09-09 16:35:34 EDT (Wed, 09 Sep 2009)
New Revision: 56125
URL: http://svn.boost.org/trac/boost/changeset/56125

Log:
add base unit for pound-force
Added:
   trunk/boost/units/base_units/us/pound_force.hpp (contents, props changed)

Added: trunk/boost/units/base_units/us/pound_force.hpp
==============================================================================
--- (empty file)
+++ trunk/boost/units/base_units/us/pound_force.hpp 2009-09-09 16:35:34 EDT (Wed, 09 Sep 2009)
@@ -0,0 +1,32 @@
+// Boost.Units - A C++ library for zero-overhead dimensional analysis and
+// unit/quantity manipulation and conversion
+//
+// Copyright (C) 2003-2009 Matthias Christian Schabel
+// Copyright (C) 2007-2009 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_US_POUND_FORCE_HPP_INCLUDED
+#define BOOST_UNIT_SYSTEMS_US_POUND_FORCE_HPP_INCLUDED
+
+#include <string>
+
+#include <boost/units/config.hpp>
+#include <boost/units/base_unit.hpp>
+//#include <boost/units/physical_dimensions/mass.hpp>
+#include <boost/units/systems/si/force.hpp>
+#include <boost/units/conversion.hpp>
+
+BOOST_UNITS_DEFINE_BASE_UNIT_WITH_CONVERSIONS(us, pound_force, "pound-force", "lbf", 4.4482216152605, si::force, -600); // exact conversion
+
+#if BOOST_UNITS_HAS_BOOST_TYPEOF
+
+#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
+
+BOOST_TYPEOF_REGISTER_TYPE(boost::units::us::pound_force_base_unit)
+
+#endif
+
+#endif // BOOST_UNIT_SYSTEMS_US_POUND_FORCE_HPP_INCLUDED


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