blob: 04ea87c12299572fded92499f3662199a68f72c4 [file] [log] [blame]
## 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>
#include <utility>
namespace ipmi {
namespace 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
};
} // namespace sensor
} // namespace ipmi