summaryrefslogtreecommitdiffstats
path: root/scripts/writeentity.mako.cpp
diff options
context:
space:
mode:
authorPatrick Venture <venture@google.com>2019-08-19 12:25:54 -0700
committerPatrick Venture <venture@google.com>2019-09-19 10:20:47 -0700
commit1ad9da8a7882a643ca28fedbdc614f1855e3669a (patch)
tree2533fde8f95d730e2090fce01f32590dc3d611a5 /scripts/writeentity.mako.cpp
parent87fd2cd13314a2b0b8cbc6441e724a4fea57e20c (diff)
downloadphosphor-host-ipmid-1ad9da8a7882a643ca28fedbdc614f1855e3669a.tar.gz
phosphor-host-ipmid-1ad9da8a7882a643ca28fedbdc614f1855e3669a.zip
drop entity YAML in favor of json provided file
Step 5 of moving from entity map from YAML to JSON drops support for a built-in YAML mapping of the entity containers. Tested: Not tested. No platform upstream updates this YAML file in their builds. Signed-off-by: Patrick Venture <venture@google.com> Change-Id: Ic2918f568f5a6f4a9f9135990889b3bb84a0c81d
Diffstat (limited to 'scripts/writeentity.mako.cpp')
-rw-r--r--scripts/writeentity.mako.cpp40
1 files changed, 0 insertions, 40 deletions
diff --git a/scripts/writeentity.mako.cpp b/scripts/writeentity.mako.cpp
deleted file mode 100644
index 04ea87c..0000000
--- a/scripts/writeentity.mako.cpp
+++ /dev/null
@@ -1,40 +0,0 @@
-## 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
OpenPOWER on IntegriCloud