Brad Bishop | 26b815f | 2017-01-04 13:32:47 -0500 | [diff] [blame] | 1 | #pragma once |
Patrick Williams | 3667cf3 | 2015-10-20 22:39:11 -0500 | [diff] [blame] | 2 | |
| 3 | #include <string> |
| 4 | |
| 5 | namespace hwmon |
| 6 | { |
Brad Bishop | 6bb97a9 | 2016-12-19 13:06:40 -0500 | [diff] [blame] | 7 | namespace entry |
| 8 | { |
Brad Bishop | 0fcb8b3 | 2017-01-04 21:55:04 -0500 | [diff] [blame] | 9 | static constexpr auto cinput = "input"; |
| 10 | static constexpr auto clabel = "label"; |
| 11 | |
| 12 | static const std::string input = cinput; |
| 13 | static const std::string label = clabel; |
Brad Bishop | 6bb97a9 | 2016-12-19 13:06:40 -0500 | [diff] [blame] | 14 | } |
Patrick Williams | 3667cf3 | 2015-10-20 22:39:11 -0500 | [diff] [blame] | 15 | |
Brad Bishop | 6bb97a9 | 2016-12-19 13:06:40 -0500 | [diff] [blame] | 16 | namespace type |
| 17 | { |
Brad Bishop | 0fcb8b3 | 2017-01-04 21:55:04 -0500 | [diff] [blame] | 18 | static constexpr auto cfan = "fan"; |
| 19 | static constexpr auto ctemp = "temp"; |
| 20 | static constexpr auto cvolt = "in"; |
Brad Bishop | 5afe21a | 2017-01-06 20:44:05 -0500 | [diff] [blame] | 21 | static constexpr auto ccurr = "current"; |
| 22 | static constexpr auto cenergy = "energy"; |
| 23 | static constexpr auto cpower = "power"; |
Brad Bishop | 0fcb8b3 | 2017-01-04 21:55:04 -0500 | [diff] [blame] | 24 | |
| 25 | static const std::string fan = cfan; |
| 26 | static const std::string temp = ctemp; |
| 27 | static const std::string volt = cvolt; |
Brad Bishop | 5afe21a | 2017-01-06 20:44:05 -0500 | [diff] [blame] | 28 | static const std::string curr = ccurr; |
| 29 | static const std::string energy = cenergy; |
| 30 | static const std::string power = cpower; |
Brad Bishop | 6bb97a9 | 2016-12-19 13:06:40 -0500 | [diff] [blame] | 31 | } |
Patrick Williams | 3667cf3 | 2015-10-20 22:39:11 -0500 | [diff] [blame] | 32 | } |
| 33 | |
Brad Bishop | 03476f1 | 2016-12-19 13:09:12 -0500 | [diff] [blame] | 34 | // vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 |