summaryrefslogtreecommitdiff
path: root/modules/codec/c++/csv.h
blob: 67c2c1dcc7d0ac9aed5313a7b91624135b965511 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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>();
	}
};
}