|
From: Matthias S. <mat...@us...> - 2007-04-03 17:12:27
|
Update of /cvsroot/boost-sandbox/boost-sandbox/boost/units/systems/angles In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv9916/systems/angles Modified Files: degrees.hpp gradians.hpp radians.hpp Log Message: extended SI unit system to improve compliance with standard Index: gradians.hpp =================================================================== RCS file: /cvsroot/boost-sandbox/boost-sandbox/boost/units/systems/angles/gradians.hpp,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- gradians.hpp 2 Apr 2007 03:15:14 -0000 1.4 +++ gradians.hpp 3 Apr 2007 17:12:25 -0000 1.5 @@ -55,7 +55,7 @@ //namespace angle { // //typedef unit<dimensionless_type,gradian_ns::system> dimensionless_gradian; -//typedef unit<angle_type,gradian_ns::system> gradian; ///< angle gradian unit constant +//typedef unit<plane_angle_type,gradian_ns::system> gradian; ///< angle gradian unit constant // //} // namespace gradian_ns // @@ -63,7 +63,7 @@ //BOOST_UNITS_STATIC_CONSTANT(gradians,angle::gradian); // //template<> -//struct base_unit_info<angle_tag,gradian_ns::system_tag> +//struct base_unit_info<plane_angle_tag,gradian_ns::system_tag> //{ // static std::string name() { return "gradian"; } // static std::string symbol() { return "grad"; } @@ -102,7 +102,7 @@ typedef homogeneous_system<system_tag> system; ///< gradian unit system typedef unit<dimensionless_type,system> dimensionless; -typedef unit<angle_type,system> gradian; ///< angle gradian unit constant +typedef unit<plane_angle_type,system> gradian; ///< angle gradian unit constant } // namespace gradians @@ -112,7 +112,7 @@ BOOST_UNITS_STATIC_CONSTANT(gradians,angles::gradians::gradian); template<> -struct base_unit_info<angle_tag,angles::gradians::system_tag> +struct base_unit_info<plane_angle_tag,angles::gradians::system_tag> { static std::string name() { return "gradian"; } static std::string symbol() { return "grad"; } Index: radians.hpp =================================================================== RCS file: /cvsroot/boost-sandbox/boost-sandbox/boost/units/systems/angles/radians.hpp,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- radians.hpp 2 Apr 2007 20:12:51 -0000 1.5 +++ radians.hpp 3 Apr 2007 17:12:25 -0000 1.6 @@ -57,7 +57,7 @@ typedef homogeneous_system<system_tag> system; ///< radian unit system typedef unit<dimensionless_type,system> dimensionless; -typedef unit<angle_type,system> radian; ///< angle radian unit constant +typedef unit<plane_angle_type,system> radian; ///< angle radian unit constant } // namespace radians @@ -67,7 +67,7 @@ BOOST_UNITS_STATIC_CONSTANT(radians,angles::radians::radian); template<> -struct base_unit_info<angle_tag,angles::radians::system_tag> +struct base_unit_info<plane_angle_tag,angles::radians::system_tag> { static std::string name() { return "radian"; } static std::string symbol() { return "rad"; } Index: degrees.hpp =================================================================== RCS file: /cvsroot/boost-sandbox/boost-sandbox/boost/units/systems/angles/degrees.hpp,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- degrees.hpp 2 Apr 2007 03:15:14 -0000 1.4 +++ degrees.hpp 3 Apr 2007 17:12:25 -0000 1.5 @@ -55,7 +55,7 @@ //namespace angle { // //typedef unit<dimensionless_type,degree_ns::system> dimensionless_degree; -//typedef unit<angle_type,degree_ns::system> degree; ///< angle degree unit constant +//typedef unit<plane_angle_type,degree_ns::system> degree; ///< angle degree unit constant // //} // namespace angle // @@ -63,7 +63,7 @@ //BOOST_UNITS_STATIC_CONSTANT(degrees,angle::degree); // //template<> -//struct base_unit_info<angle_tag,degree_ns::system_tag> +//struct base_unit_info<plane_angle_tag,degree_ns::system_tag> //{ // static std::string name() { return "degree"; } // static std::string symbol() { return "deg"; } @@ -102,7 +102,7 @@ typedef homogeneous_system<system_tag> system; ///< degree unit system typedef unit<dimensionless_type,system> dimensionless; -typedef unit<angle_type,system> degree; ///< angle degree unit constant +typedef unit<plane_angle_type,system> degree; ///< angle degree unit constant } // namespace degrees @@ -112,7 +112,7 @@ BOOST_UNITS_STATIC_CONSTANT(degrees,angles::degrees::degree); template<> -struct base_unit_info<angle_tag,angles::degrees::system_tag> +struct base_unit_info<plane_angle_tag,angles::degrees::system_tag> { static std::string name() { return "degree"; } static std::string symbol() { return "deg"; } |