| Vishwanatha Subbanna | 6add0b8 | 2017-07-21 19:02:37 +0530 | [diff] [blame] | 1 | ## This file is a template.  The comment below is emitted | 
 | 2 | ## into the rendered file; feel free to edit this file. | 
 | 3 | // WARNING: Generated header. Do not edit! | 
 | 4 |  | 
 | 5 |  | 
 | 6 | #pragma once | 
 | 7 |  | 
 | 8 | #include <map> | 
| Alexander Filippov | 1d69e19 | 2019-03-21 18:12:07 +0300 | [diff] [blame] | 9 | #include <string> | 
 | 10 | #include <tuple> | 
| Vishwanatha Subbanna | 6add0b8 | 2017-07-21 19:02:37 +0530 | [diff] [blame] | 11 |  | 
 | 12 | namespace open_power | 
 | 13 | { | 
 | 14 | namespace occ | 
 | 15 | { | 
 | 16 |  | 
| Chris Cain | 7e374fb | 2022-04-07 09:47:23 -0500 | [diff] [blame] | 17 | using instanceID = unsigned int; | 
| Vishwanatha Subbanna | 6add0b8 | 2017-07-21 19:02:37 +0530 | [diff] [blame] | 18 | using sensorID = uint8_t; | 
| Alexander Filippov | 1d69e19 | 2019-03-21 18:12:07 +0300 | [diff] [blame] | 19 | using sensorName = std::string; | 
 | 20 | using sensorDefs = std::tuple<sensorID, sensorName>; | 
 | 21 | const std::map<instanceID, sensorDefs> Status::sensorMap = { | 
| Vishwanatha Subbanna | 6add0b8 | 2017-07-21 19:02:37 +0530 | [diff] [blame] | 22 | \ | 
 | 23 | % for occ in occDict: | 
 | 24 | <% | 
 | 25 |     instance = occ.get("Instance") | 
 | 26 |     id = occ.get("SensorID") | 
| Alexander Filippov | 1d69e19 | 2019-03-21 18:12:07 +0300 | [diff] [blame] | 27 |     name = occ.get("SensorName") | 
| Vishwanatha Subbanna | 6add0b8 | 2017-07-21 19:02:37 +0530 | [diff] [blame] | 28 | %>\ | 
 | 29 | \ | 
| Alexander Filippov | 1d69e19 | 2019-03-21 18:12:07 +0300 | [diff] [blame] | 30 |     { ${instance}, { ${id}, "${name}" }},\ | 
| Vishwanatha Subbanna | 6add0b8 | 2017-07-21 19:02:37 +0530 | [diff] [blame] | 31 |  | 
 | 32 | % endfor | 
 | 33 | }; | 
 | 34 |  | 
 | 35 | } // namespace occ | 
 | 36 | } // namespace open_power |