summaryrefslogtreecommitdiffstats
path: root/scripts/writeentity.mako.cpp
blob: 4cfc82ba94c16add7b2bf1fb8eefb977b533790e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
## This file is a template.  The comment below is emitted
## into the rendered file; feel free to edit this file.
// !!! WARNING: This is a GENERATED Code..Please do NOT Edit !!!

#include <ipmid/types.hpp>
using namespace ipmi::sensor;

extern const EntityInfoMap entities = {
% for key in entityDict.iterkeys():
{${key},{
<%
       entity = entityDict[key]
       containerEntityId = entity["containerEntityId"]
       containerEntityInstance = entity["containerEntityInstance"]
       isList = entity["isList"]
       isLinked = entity["isLinked"]
       entityId1 = entity["entityId1"]
       entityInstance1 = entity["entityInstance1"]
       entityId2 = entity["entityId2"]
       entityInstance2 = entity["entityInstance2"]
       entityId3 = entity["entityId3"]
       entityInstance3 = entity["entityInstance3"]
       entityId4 = entity["entityId4"]
       entityInstance4 = entity["entityInstance4"]
%>
        ${containerEntityId},${containerEntityInstance},${isList},${isLinked},{
          std::make_pair(${entityId1}, ${entityInstance1}),
          std::make_pair(${entityId2}, ${entityInstance2}),
          std::make_pair(${entityId3}, ${entityInstance3}),
          std::make_pair(${entityId4}, ${entityInstance4}) }

}},
% endfor
};
OpenPOWER on IntegriCloud