diff options
Diffstat (limited to 'c++/codec/forst.h')
-rw-r--r-- | c++/codec/forst.h | 19 |
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)} + {} }; } |