Jaghathiswari Rankappagounder Natarajan | 9c11894 | 2019-02-12 13:22:55 -0800 | [diff] [blame] | 1 | ## This file is a template. The comment below is emitted |
| 2 | ## into the rendered file; feel free to edit this file. |
| 3 | // !!! WARNING: This is a GENERATED Code..Please do NOT Edit !!! |
| 4 | |
| 5 | #include "types.hpp" |
| 6 | using namespace ipmi::sensor; |
| 7 | |
| 8 | extern const EntityInfoMap entities = { |
| 9 | % for key in entityDict.iterkeys(): |
| 10 | {${key},{ |
| 11 | <% |
| 12 | entity = entityDict[key] |
| 13 | containerEntityId = entity["containerEntityId"] |
| 14 | containerEntityInstance = entity["containerEntityInstance"] |
| 15 | isList = entity["isList"] |
| 16 | isLinked = entity["isLinked"] |
| 17 | entityId1 = entity["entityId1"] |
| 18 | entityInstance1 = entity["entityInstance1"] |
| 19 | entityId2 = entity["entityId2"] |
| 20 | entityInstance2 = entity["entityInstance2"] |
| 21 | entityId3 = entity["entityId3"] |
| 22 | entityInstance3 = entity["entityInstance3"] |
| 23 | entityId4 = entity["entityId4"] |
| 24 | entityInstance4 = entity["entityInstance4"] |
| 25 | %> |
| 26 | ${containerEntityId},${containerEntityInstance},${isList},${isLinked},{ |
| 27 | std::make_pair(${entityId1}, ${entityInstance1}), |
| 28 | std::make_pair(${entityId2}, ${entityInstance2}), |
| 29 | std::make_pair(${entityId3}, ${entityInstance3}), |
| 30 | std::make_pair(${entityId4}, ${entityInstance4}) } |
| 31 | |
| 32 | }}, |
| 33 | % endfor |
| 34 | }; |