xref: /openbmc/phosphor-dbus-monitor/src/test/templates/callbackgentest.mako.hpp (revision 78199b44b1438295b79f562e9d240034c05e4171)
13ce5c484SBrad Bishop auto storageCount = ${len(instances)};
23ce5c484SBrad Bishop 
3*78199b44SGunnar Mills const std::array<Index, ${len(instancegroups)}> indices = {{
43ce5c484SBrad Bishop % for g in instancegroups:
53ce5c484SBrad Bishop     {
63ce5c484SBrad Bishop     % for i in g.members:
73ce5c484SBrad Bishop         {Index::key_type{${i[0]}, ${i[2]}, ${i[3]}}, ${i[5]}},
83ce5c484SBrad Bishop     % endfor
93ce5c484SBrad Bishop     },
103ce5c484SBrad Bishop % endfor
113ce5c484SBrad Bishop }};
123ce5c484SBrad Bishop 
133ce5c484SBrad Bishop const std::array<std::tuple<std::string, size_t>, ${len(callbacks)}> callbacks = {{
143ce5c484SBrad Bishop % for c in callbacks:
153ce5c484SBrad Bishop     std::tuple<std::string, size_t>{"${c.datatype}", ${c.instances}},
163ce5c484SBrad Bishop % endfor
173ce5c484SBrad Bishop }};
18