summaryrefslogtreecommitdiffstats
path: root/src/test/templates/propertygentest.mako.hpp
blob: 16febd7b85407b57ff4006788f85fa26b864469f (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
29
30
31
32
33
34
const std::array<std::string, ${len(meta)}> meta = {
% for m in meta:
    "${m.name}"s,
% endfor
};

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

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

const std::array<GroupOfProperties, ${len(propertygroups)}> groups = {{
% for g in propertygroups:
    // ${g.name}
    {
        % for p in g.members:
        Property{ interfaces[${p[0]}], properties[${p[1]}], meta[${p[2]}] },
        % endfor
    },
% endfor
}};

const std::array<std::string, ${len(propertygroups)}> types = {
% for g in propertygroups:
    "${g.datatype}"s,
% endfor
};
OpenPOWER on IntegriCloud