summaryrefslogtreecommitdiff
path: root/c++/codec/csv.h
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2023-07-20 23:31:26 +0200
committerClaudius "keldu" Holeksa <mail@keldu.de>2023-07-20 23:31:26 +0200
commit99094047fa22540c82e870d804c7a09b68325a53 (patch)
tree1a995d80badfd33e0ae9c887b0381584ca1ec06f /c++/codec/csv.h
parent933f712dd3fa4a1e40b4a16bb22c67a37e0d0ead (diff)
c++: Add basic csv files
Diffstat (limited to 'c++/codec/csv.h')
-rw-r--r--c++/codec/csv.h25
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>();
+ }
+};
+}