blob: 0e200cb90b1431f1f98d2bb323ae1049ebe1004c (
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.hpp"
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)}
{}
};
}
|