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