diff options
author | Csaba Hruska <csaba.hruska@gmail.com> | 2015-09-16 01:00:41 +0200 |
---|---|---|
committer | Csaba Hruska <csaba.hruska@gmail.com> | 2015-09-16 01:00:41 +0200 |
commit | 030fb57e15c35baaee7d4d30e012d3e51e4d871c (patch) | |
tree | a577bbb015d0e524f68d69c5676486ee5cea7f5d /templates/data.hpp.ede | |
parent | 4cf104ca45b4f3f278b3cc8275a9690be3c23fe2 (diff) |
add C++ lib
Diffstat (limited to 'templates/data.hpp.ede')
-rw-r--r-- | templates/data.hpp.ede | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/templates/data.hpp.ede b/templates/data.hpp.ede index 10e1ff4..0dcb02c 100644 --- a/templates/data.hpp.ede +++ b/templates/data.hpp.ede | |||
@@ -4,24 +4,7 @@ | |||
4 | #ifndef HEADER_{{ moduleName }}_H | 4 | #ifndef HEADER_{{ moduleName }}_H |
5 | #define HEADER_{{ moduleName }}_H | 5 | #define HEADER_{{ moduleName }}_H |
6 | 6 | ||
7 | #include <vector> | 7 | #include "RT.hpp" |
8 | #include <map> | ||
9 | #include <string> | ||
10 | |||
11 | #include "json.hpp" | ||
12 | |||
13 | typedef int Int; | ||
14 | typedef int Int32; | ||
15 | typedef unsigned int Word; | ||
16 | typedef unsigned int Word32; | ||
17 | typedef float Float; | ||
18 | typedef bool Bool; | ||
19 | typedef std::string String; | ||
20 | |||
21 | using json = nlohmann::json; | ||
22 | |||
23 | template<typename T> | ||
24 | json toJSON(T &v); | ||
25 | 8 | ||
26 | {% for m in imports %} | 9 | {% for m in imports %} |
27 | #include "{{ m.value }}.hpp" | 10 | #include "{{ m.value }}.hpp" |