diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2023-12-04 12:18:14 +0100 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2023-12-04 12:18:14 +0100 |
commit | a14896f9ed209dd3f9597722e5a5697bd7dbf531 (patch) | |
tree | 089ca5cbbd206d1921f8f6b53292f5bc1902ca5c /modules/codec/csv.h | |
parent | 84ecdcbca9e55b1f57fbb832e12ff4fdbb86e7c9 (diff) |
meta: Renamed folder containing source
Diffstat (limited to 'modules/codec/csv.h')
-rw-r--r-- | modules/codec/csv.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/modules/codec/csv.h b/modules/codec/csv.h new file mode 100644 index 0000000..67c2c1d --- /dev/null +++ b/modules/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>(); + } +}; +} |