summaryrefslogtreecommitdiff
path: root/modules/codec/c++/forst.h
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2023-12-04 17:01:04 +0100
committerClaudius "keldu" Holeksa <mail@keldu.de>2023-12-04 17:01:04 +0100
commita863f9af9fff0ecb276c6769149d9672961b7533 (patch)
tree9f7bc499df30e651ae0cc6c2ffca0dd64b4e3769 /modules/codec/c++/forst.h
parent8da0229a7e172a86c023edc6bb25ba803c68f5d3 (diff)
codec: Moving structure around
Diffstat (limited to 'modules/codec/c++/forst.h')
-rw-r--r--modules/codec/c++/forst.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/modules/codec/c++/forst.h b/modules/codec/c++/forst.h
new file mode 100644
index 0000000..7e8fbf0
--- /dev/null
+++ b/modules/codec/c++/forst.h
@@ -0,0 +1,32 @@
+#pragma once
+
+#include "data.h"
+
+namespace saw {
+namespace encode {
+struct KelForst {};
+}
+}
+
+#include "forst.tmpl.hpp"
+
+namespace saw {
+class data<schema::String, encode::KelForst> {
+private:
+ own<buffer> buff_;
+public:
+ data(own<buffer> buff):
+ buff_{std::move(buff)}
+ {}
+};
+
+template<typename... T, string_literal... Keys>
+class data<schema::Struct<schema::Member<T,Keys>...>, encode::KelForst> {
+private:
+ own<buffer> buff_;
+public:
+ data(own<buffer> buff):
+ buff_{std::move(buff)}
+ {}
+};
+}