diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2023-12-04 17:01:04 +0100 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2023-12-04 17:01:04 +0100 |
commit | a863f9af9fff0ecb276c6769149d9672961b7533 (patch) | |
tree | 9f7bc499df30e651ae0cc6c2ffca0dd64b4e3769 /modules/codec/c++/csv.h | |
parent | 8da0229a7e172a86c023edc6bb25ba803c68f5d3 (diff) |
codec: Moving structure around
Diffstat (limited to 'modules/codec/c++/csv.h')
-rw-r--r-- | modules/codec/c++/csv.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/modules/codec/c++/csv.h b/modules/codec/c++/csv.h new file mode 100644 index 0000000..67c2c1d --- /dev/null +++ b/modules/codec/c++/csv.h @@ -0,0 +1,25 @@ +#pragma once + +#include "data.h" + +namespace saw { +namespace encode { +struct Csv {}; +} + +template<typename Schema> +class codec<Schema, encode::Csv> { +public: + template<typename FromEncode> + static error_or<void> encode(const data<Schema, FromEncode>& from, data<Schema,encode::Csv>& to){ + + return make_error<err::not_implemented>(); + } + + template<typename ToDecode> + static error_or<void> decode(data<Schema,encode::Csv>& from, data<Schema, FromEncode>& to){ + + return make_error<err::not_implemented>(); + } +}; +} |