blob: 123babbfe070a5d3cc7efa2a24687924c08d9f99 [file] [log] [blame]
Vishwanatha Subbanna6add0b82017-07-21 19:02:37 +05301## 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 Filippov1d69e192019-03-21 18:12:07 +03009#include <string>
10#include <tuple>
Vishwanatha Subbanna6add0b82017-07-21 19:02:37 +053011
12namespace open_power
13{
14namespace occ
15{
16
Chris Cain7e374fb2022-04-07 09:47:23 -050017using instanceID = unsigned int;
Vishwanatha Subbanna6add0b82017-07-21 19:02:37 +053018using sensorID = uint8_t;
Alexander Filippov1d69e192019-03-21 18:12:07 +030019using sensorName = std::string;
20using sensorDefs = std::tuple<sensorID, sensorName>;
21const std::map<instanceID, sensorDefs> Status::sensorMap = {
Vishwanatha Subbanna6add0b82017-07-21 19:02:37 +053022\
23% for occ in occDict:
24<%
25 instance = occ.get("Instance")
26 id = occ.get("SensorID")
Alexander Filippov1d69e192019-03-21 18:12:07 +030027 name = occ.get("SensorName")
Vishwanatha Subbanna6add0b82017-07-21 19:02:37 +053028%>\
29\
Alexander Filippov1d69e192019-03-21 18:12:07 +030030 { ${instance}, { ${id}, "${name}" }},\
Vishwanatha Subbanna6add0b82017-07-21 19:02:37 +053031
32% endfor
33};
34
35} // namespace occ
36} // namespace open_power