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"; |
Matthew Barth | bf7b7b1 | 2017-03-07 15:46:59 -0600 | [diff] [blame] | 11 | static constexpr auto ctarget = "target"; |
Brad Bishop | 0fcb8b3 | 2017-01-04 21:55:04 -0500 | [diff] [blame] | 12 | |
| 13 | static const std::string input = cinput; |
| 14 | static const std::string label = clabel; |
Matthew Barth | bf7b7b1 | 2017-03-07 15:46:59 -0600 | [diff] [blame] | 15 | static const std::string target = ctarget; |
Brad Bishop | 6bb97a9 | 2016-12-19 13:06:40 -0500 | [diff] [blame] | 16 | } |
Patrick Williams | 3667cf3 | 2015-10-20 22:39:11 -0500 | [diff] [blame] | 17 | |
Brad Bishop | 6bb97a9 | 2016-12-19 13:06:40 -0500 | [diff] [blame] | 18 | namespace type |
| 19 | { |
Brad Bishop | 0fcb8b3 | 2017-01-04 21:55:04 -0500 | [diff] [blame] | 20 | static constexpr auto cfan = "fan"; |
| 21 | static constexpr auto ctemp = "temp"; |
| 22 | static constexpr auto cvolt = "in"; |
Brad Bishop | 5afe21a | 2017-01-06 20:44:05 -0500 | [diff] [blame] | 23 | static constexpr auto ccurr = "current"; |
| 24 | static constexpr auto cenergy = "energy"; |
| 25 | static constexpr auto cpower = "power"; |
Brad Bishop | 0fcb8b3 | 2017-01-04 21:55:04 -0500 | [diff] [blame] | 26 | |
| 27 | static const std::string fan = cfan; |
| 28 | static const std::string temp = ctemp; |
| 29 | static const std::string volt = cvolt; |
Brad Bishop | 5afe21a | 2017-01-06 20:44:05 -0500 | [diff] [blame] | 30 | static const std::string curr = ccurr; |
| 31 | static const std::string energy = cenergy; |
| 32 | static const std::string power = cpower; |
Brad Bishop | 6bb97a9 | 2016-12-19 13:06:40 -0500 | [diff] [blame] | 33 | } |
Patrick Williams | 3667cf3 | 2015-10-20 22:39:11 -0500 | [diff] [blame] | 34 | } |
| 35 | |
Brad Bishop | 03476f1 | 2016-12-19 13:09:12 -0500 | [diff] [blame] | 36 | // vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 |