summaryrefslogtreecommitdiff
path: root/c++/codec/forst.h
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2023-11-27 23:03:57 +0100
committerClaudius "keldu" Holeksa <mail@keldu.de>2023-11-27 23:03:57 +0100
commitaa2ecacd2e477eb5748f060d33138e0c12c0634f (patch)
treed0360b420ecddaf6b9986c004ea3e0b962c9ca1b /c++/codec/forst.h
parent0cf04f2d1ba5ed2a18fe9f3501f363cb3ff76c9f (diff)
codec,core,tools: Adding dangling experimental changes
Diffstat (limited to 'c++/codec/forst.h')
-rw-r--r--c++/codec/forst.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/c++/codec/forst.h b/c++/codec/forst.h
index cadf78e..7e8fbf0 100644
--- a/c++/codec/forst.h
+++ b/c++/codec/forst.h
@@ -6,8 +6,27 @@ 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)}
+ {}
};
}