blob: 4b3e66b4861aaaf749a3606f97aafc78320c8153 [file] [log] [blame]
Brad Bishopc9e173f2017-05-09 00:23:11 -04001const std::array<std::string, ${len(meta)}> meta = {
2% for m in meta:
3 "${m.name}"s,
4% endfor
5};
6
7const std::array<std::string, ${len(interfaces)}> interfaces = {
8% for i in interfaces:
9 "${i.name}"s,
10% endfor
11};
12
13const std::array<std::string, ${len(propertynames)}> properties = {
14% for p in propertynames:
15 "${p.name}"s,
16% endfor
17};
18
19const std::array<GroupOfProperties, ${len(propertygroups)}> groups = {{
20% for g in propertygroups:
21 // ${g.name}
22 {
23 % for p in g.members:
Brad Bishop6522cdc2018-07-10 12:04:04 -040024 ::Property{ interfaces[${p[0]}], properties[${p[1]}], meta[${p[2]}] },
Brad Bishopc9e173f2017-05-09 00:23:11 -040025 % endfor
26 },
27% endfor
28}};
29
30const std::array<std::string, ${len(propertygroups)}> types = {
31% for g in propertygroups:
32 "${g.datatype}"s,
33% endfor
34};