xref: /openbmc/phosphor-dbus-monitor/src/test/templates/conditiongentest.mako.hpp (revision b97bfff73e44e53571f8a00b80ec947496930d7b)
1*b97bfff7SBrad Bishop const std::array<std::vector<size_t>, ${len(callbackgroups)}> groups = {{
2*b97bfff7SBrad Bishop % for g in callbackgroups:
3*b97bfff7SBrad Bishop     {${', '.join([str(x) for x in g.members])}},
4*b97bfff7SBrad Bishop % endfor
5*b97bfff7SBrad Bishop }};
6*b97bfff7SBrad Bishop 
7*b97bfff7SBrad Bishop <% graphs = [ x for x in callbacks if hasattr(x, 'graph')] %>\
8*b97bfff7SBrad Bishop const std::array<size_t, ${len(graphs)}> callbacks = {
9*b97bfff7SBrad Bishop % for g in graphs:
10*b97bfff7SBrad Bishop     ${g.graph},
11*b97bfff7SBrad Bishop % endfor
12*b97bfff7SBrad Bishop };
13