summaryrefslogtreecommitdiffstats
path: root/src/test/templates/pathgentest.mako.hpp
blob: b217c56aaa4527199a2e0d91c424d766c2a2b4ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
const std::array<std::string, ${len(meta)}> meta = {
% for m in meta:
    "${m.name}"s,
% endfor
};

const std::array<std::string, ${len(paths)}> paths = {
% for p in paths:
    "${p.name}"s,
% endfor
};

const std::array<PathMeta, ${len(pathmeta)}> pathMeta = {{
% for p in pathmeta:
    PathMeta{ paths[${p.path}], meta[${p.meta}] },
% endfor
}};

const std::array<RefVector<const std::string>, ${len(pathgroups)}> groups = {{
% for g in pathgroups:
    // ${g.name}
    {
        % for p in g.members:
        paths[${p[0]}],
        % endfor
    },
% endfor
}};
OpenPOWER on IntegriCloud