Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 10:01:46

0001 // Boost.Units - A C++ library for zero-overhead dimensional analysis and 
0002 // unit/quantity manipulation and conversion
0003 //
0004 // Copyright (C) 2003-2008 Matthias Christian Schabel
0005 // Copyright (C) 2008 Steven Watanabe
0006 //
0007 // Distributed under the Boost Software License, Version 1.0. (See
0008 // accompanying file LICENSE_1_0.txt or copy at
0009 // http://www.boost.org/LICENSE_1_0.txt)
0010 
0011 #ifndef BOOST_UNITS_CGS_IO_HPP
0012 #define BOOST_UNITS_CGS_IO_HPP
0013 
0014 #include <boost/units/io.hpp>
0015 #include <boost/units/reduce_unit.hpp>
0016 #include <boost/units/systems/cgs.hpp>
0017 
0018 namespace boost {
0019 
0020 namespace units { 
0021 
0022 inline std::string name_string(const reduce_unit<cgs::acceleration>::type&) { return "galileo"; }
0023 inline std::string symbol_string(const reduce_unit<cgs::acceleration>::type&) { return "Gal"; }
0024 
0025 inline std::string name_string(const reduce_unit<cgs::current>::type&)   { return "biot"; }
0026 inline std::string symbol_string(const reduce_unit<cgs::current>::type&) { return "Bi"; }
0027 
0028 inline std::string name_string(const reduce_unit<cgs::dynamic_viscosity>::type&) { return "poise"; }
0029 inline std::string symbol_string(const reduce_unit<cgs::dynamic_viscosity>::type&) { return "P"; }
0030 
0031 inline std::string name_string(const reduce_unit<cgs::energy>::type&) { return "erg"; }
0032 inline std::string symbol_string(const reduce_unit<cgs::energy>::type&) { return "erg"; }
0033 
0034 inline std::string name_string(const reduce_unit<cgs::force>::type&) { return "dyne"; }
0035 inline std::string symbol_string(const reduce_unit<cgs::force>::type&) { return "dyn"; }
0036 
0037 inline std::string name_string(const reduce_unit<cgs::kinematic_viscosity>::type&) { return "stoke"; }
0038 inline std::string symbol_string(const reduce_unit<cgs::kinematic_viscosity>::type&) { return "St"; }
0039 
0040 inline std::string name_string(const reduce_unit<cgs::pressure>::type&) { return "barye"; }
0041 inline std::string symbol_string(const reduce_unit<cgs::pressure>::type&) { return "Ba"; }
0042 
0043 inline std::string name_string(const reduce_unit<cgs::wavenumber>::type&) { return "kayser"; }
0044 inline std::string symbol_string(const reduce_unit<cgs::wavenumber>::type&) { return "K"; }
0045 
0046 } // namespace units
0047 
0048 } // namespace boost
0049 
0050 #endif // BOOST_UNITS_CGS_IO_HPP