diff options
-rw-r--r-- | c++/codec/csv.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/c++/codec/csv.h b/c++/codec/csv.h new file mode 100644 index 0000000..67c2c1d --- /dev/null +++ b/c++/codec/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>(); + } +}; +} |