OGLplus  (0.59.0) a C++ wrapper for rendering APIs

electrical_resistance.hpp
Go to the documentation of this file.
1 
9 #ifndef EAGINE_UNITS_UNIT_SI_ELECTRICAL_RESISTANCE_HPP
10 #define EAGINE_UNITS_UNIT_SI_ELECTRICAL_RESISTANCE_HPP
11 
12 #include "../../dim/electrical_resistance.hpp"
13 #include "common.hpp"
14 #include "electric_current.hpp"
15 #include "electric_tension.hpp"
16 
17 namespace eagine::units {
18 
19 // ohm
20 using ohm = unit<electrical_resistance, si>;
21 
22 template <>
23 struct name_of<ohm> {
24  static constexpr const char mp_str[] = "ohm";
25 };
26 
27 template <>
28 struct symbol_of<ohm> {
29  static constexpr const char mp_str[] = {char(0xCE), char(0xA9), '\0'};
30 };
31 
32 // derived
33 using milliohm = make_scaled_unit_t<scales::milli, ohm>;
34 using kiloohm = make_scaled_unit_t<scales::kilo, ohm>;
35 // TODO
36 
37 } // namespace eagine::units
38 
39 #endif // EAGINE_UNITS_UNIT_SI_ELECTRICAL_RESISTANCE_HPP

Copyright © 2015-2021 Matúš Chochlík.
<chochlik -at -gmail.com>
Documentation generated on Tue Apr 13 2021 by Doxygen (version 1.8.17).