File indexing completed on 2025-01-30 10:01:46
0001
0002
0003
0004
0005
0006
0007
0008
0009
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 }
0047
0048 }
0049
0050 #endif