summaryrefslogtreecommitdiffstats
path: root/src/test/templates/propertywatchgentest.mako.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/templates/propertywatchgentest.mako.hpp')
-rw-r--r--src/test/templates/propertywatchgentest.mako.hpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/test/templates/propertywatchgentest.mako.hpp b/src/test/templates/propertywatchgentest.mako.hpp
new file mode 100644
index 0000000..ac4dbee
--- /dev/null
+++ b/src/test/templates/propertywatchgentest.mako.hpp
@@ -0,0 +1,17 @@
+auto storageCount = ${len(instances)};
+
+const std::array<Index, ${len(instancegroups)}> indicies = {{
+% for g in instancegroups:
+ {
+ % for i in g.members:
+ {Index::key_type{${i[0]}, ${i[2]}, ${i[3]}}, ${i[5]}},
+ % endfor
+ },
+% endfor
+}};
+
+const std::array<std::tuple<std::string, size_t>, ${len(watches)}> watches = {{
+% for w in watches:
+ std::tuple<std::string, size_t>{"${w.datatype}", ${w.instances}},
+% endfor
+}};
OpenPOWER on IntegriCloud