xref: /openbmc/openpower-host-ipmi-oem/scripts/inventorysensor.cpp.mako (revision e17897f92ccdf66ae3c860f91f839bc291f48d22)
1## This file is a template.  The comment below is emitted
2## into the rendered file; feel free to edit this file.
3
4// !!! WARNING: This is a GENERATED Code..Please do NOT Edit !!!
5
6#include "oemhandler.hpp"
7
8extern const ObjectIDMap invSensors = {
9% for key in sensorDict.keys():
10   % if key:
11{"${key}",
12    {
13<%
14       objectPath = sensorDict[key]
15       sensorID = objectPath["sensorID"]
16       sensorType = objectPath["sensorType"]
17       eventReadingType = objectPath["eventReadingType"]
18       offset = objectPath["offset"]
19%>
20        ${sensorID},${sensorType},${eventReadingType},${offset}
21    }
22},
23   % endif
24% endfor
25};
26
27