summaryrefslogtreecommitdiff
path: root/templates/data.cpp.ede
diff options
context:
space:
mode:
Diffstat (limited to 'templates/data.cpp.ede')
-rw-r--r--templates/data.cpp.ede4
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/data.cpp.ede b/templates/data.cpp.ede
index c56d9fc..ac6012c 100644
--- a/templates/data.cpp.ede
+++ b/templates/data.cpp.ede
@@ -1,6 +1,9 @@
1// generated file, do not modify! 1// generated file, do not modify!
2// {{ dateTime }} 2// {{ dateTime }}
3 3
4#include <string>
5#include <iostream>
6
4#include "{{ moduleName }}.hpp" 7#include "{{ moduleName }}.hpp"
5 8
6{% for t in definitions %} 9{% for t in definitions %}
@@ -20,6 +23,7 @@ template<> json toJSON<{{ t.value.dataName }}>({{ t.value.dataName }} &v) {
20} 23}
21 24
22template<> {{ t.value.dataName }} fromJSON<{{ t.value.dataName }}>({{ t.value.dataName }} &v, json &obj) { 25template<> {{ t.value.dataName }} fromJSON<{{ t.value.dataName }}>({{ t.value.dataName }} &v, json &obj) {
26 std::cout << "fromJSON: {{ t.value.dataName }}\n";
23 enum ::{{ t.value.dataName }}::tag tagType; 27 enum ::{{ t.value.dataName }}::tag tagType;
24 std::string tag = obj["tag"]; 28 std::string tag = obj["tag"];
25 {% for c in t.value.constructors %} 29 {% for c in t.value.constructors %}