Mercurial > hg > vamp-build-and-test
comparison DEPENDENCIES/generic/include/boost/units/systems/cgs/io.hpp @ 16:2665513ce2d3
Add boost headers
author | Chris Cannam |
---|---|
date | Tue, 05 Aug 2014 11:11:38 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
15:663ca0da4350 | 16:2665513ce2d3 |
---|---|
1 // Boost.Units - A C++ library for zero-overhead dimensional analysis and | |
2 // unit/quantity manipulation and conversion | |
3 // | |
4 // Copyright (C) 2003-2008 Matthias Christian Schabel | |
5 // Copyright (C) 2008 Steven Watanabe | |
6 // | |
7 // Distributed under the Boost Software License, Version 1.0. (See | |
8 // accompanying file LICENSE_1_0.txt or copy at | |
9 // http://www.boost.org/LICENSE_1_0.txt) | |
10 | |
11 #ifndef BOOST_UNITS_CGS_IO_HPP | |
12 #define BOOST_UNITS_CGS_IO_HPP | |
13 | |
14 #include <boost/units/io.hpp> | |
15 #include <boost/units/reduce_unit.hpp> | |
16 #include <boost/units/systems/cgs.hpp> | |
17 | |
18 namespace boost { | |
19 | |
20 namespace units { | |
21 | |
22 inline std::string name_string(const reduce_unit<cgs::acceleration>::type&) { return "galileo"; } | |
23 inline std::string symbol_string(const reduce_unit<cgs::acceleration>::type&) { return "Gal"; } | |
24 | |
25 inline std::string name_string(const reduce_unit<cgs::current>::type&) { return "biot"; } | |
26 inline std::string symbol_string(const reduce_unit<cgs::current>::type&) { return "Bi"; } | |
27 | |
28 inline std::string name_string(const reduce_unit<cgs::dynamic_viscosity>::type&) { return "poise"; } | |
29 inline std::string symbol_string(const reduce_unit<cgs::dynamic_viscosity>::type&) { return "P"; } | |
30 | |
31 inline std::string name_string(const reduce_unit<cgs::energy>::type&) { return "erg"; } | |
32 inline std::string symbol_string(const reduce_unit<cgs::energy>::type&) { return "erg"; } | |
33 | |
34 inline std::string name_string(const reduce_unit<cgs::force>::type&) { return "dyne"; } | |
35 inline std::string symbol_string(const reduce_unit<cgs::force>::type&) { return "dyn"; } | |
36 | |
37 inline std::string name_string(const reduce_unit<cgs::kinematic_viscosity>::type&) { return "stoke"; } | |
38 inline std::string symbol_string(const reduce_unit<cgs::kinematic_viscosity>::type&) { return "St"; } | |
39 | |
40 inline std::string name_string(const reduce_unit<cgs::pressure>::type&) { return "barye"; } | |
41 inline std::string symbol_string(const reduce_unit<cgs::pressure>::type&) { return "Ba"; } | |
42 | |
43 inline std::string name_string(const reduce_unit<cgs::wavenumber>::type&) { return "kayser"; } | |
44 inline std::string symbol_string(const reduce_unit<cgs::wavenumber>::type&) { return "K"; } | |
45 | |
46 } // namespace units | |
47 | |
48 } // namespace boost | |
49 | |
50 #endif // BOOST_UNITS_CGS_IO_HPP |