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>
9 #include <string>
10 #include <tuple>
11 
12 namespace open_power
13 {
14 namespace occ
15 {
16 
17 using instanceID = unsigned int;
18 using sensorID = uint8_t;
19 using sensorName = std::string;
20 using sensorDefs = std::tuple<sensorID, sensorName>;
21 const std::map<instanceID, sensorDefs> Status::sensorMap = {
22 \
23 % for occ in occDict:
24 <%
25     instance = occ.get("Instance")
26     id = occ.get("SensorID")
27     name = occ.get("SensorName")
28 %>\
29 \
30     { ${instance}, { ${id}, "${name}" }},\
31 
32 % endfor
33 };
34 
35 } // namespace occ
36 } // namespace open_power
37