summaryrefslogtreecommitdiff
path: root/modules/codec/forst.h
blob: 7e8fbf0fe5ce0ca77f14d5e824d7dc052174ab3c (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
26
27
28
29
30
31
32
#pragma once

#include "data.h"

namespace saw {
namespace encode {
struct KelForst {};
}
}

#include "forst.tmpl.hpp"

namespace saw {
class data<schema::String, encode::KelForst> {
private:
	own<buffer> buff_;
public:
	data(own<buffer> buff):
		buff_{std::move(buff)}
	{}
};

template<typename... T, string_literal... Keys>
class data<schema::Struct<schema::Member<T,Keys>...>, encode::KelForst> {
private:
	own<buffer> buff_;
public:
	data(own<buffer> buff):
		buff_{std::move(buff)}
	{}
};
}