1 // !!! WARNING: This is a GENERATED Code..Please do NOT Edit !!!
2 #include <iostream>
3 #include "frup.hpp"
4 
5 extern const FruMap frus = {
6 % for key in fruDict.keys():
7    {${key},{
8 <%
9     fru = fruDict[key]
10 %>
11     % for object,interfaces in fru.items():
12          {"${object}",{
13          % for interface,properties in interfaces.items():
14              {"${interface}",{
15             % if properties:
16                 % for dbus_property,property_value in properties.items():
17                     {"${dbus_property}",{
18                         "${property_value.get("IPMIFruSection", "")}",
19                         "${property_value.get("IPMIFruProperty", "")}", \
20 <%
21     delimiter = property_value.get("IPMIFruValueDelimiter")
22     if not delimiter:
23         delimiter = ""
24     else:
25         delimiter = '\\' + hex(delimiter)[1:]
26 %>
27                      "${delimiter}"
28                  }},
29                 % endfor
30             %endif
31              }},
32          % endfor
33         }},
34     % endfor
35    }},
36 % endfor
37 };
38