xref: /openbmc/phosphor-dbus-monitor/src/test/templates/callbackgentest.mako.hpp (revision 78199b44b1438295b79f562e9d240034c05e4171)
1 auto storageCount = ${len(instances)};
2 
3 const std::array<Index, ${len(instancegroups)}> indices = {{
4 % for g in instancegroups:
5     {
6     % for i in g.members:
7         {Index::key_type{${i[0]}, ${i[2]}, ${i[3]}}, ${i[5]}},
8     % endfor
9     },
10 % endfor
11 }};
12 
13 const std::array<std::tuple<std::string, size_t>, ${len(callbacks)}> callbacks = {{
14 % for c in callbacks:
15     std::tuple<std::string, size_t>{"${c.datatype}", ${c.instances}},
16 % endfor
17 }};
18