YPC  0.2.0
parser_type.h
1 #pragma once
2 #include <cstdint>
3 
4 namespace ypc {
5 namespace utc {
6 
7 constexpr static uint32_t parser_type_length = sizeof(uint32_t);
8 
9 constexpr static uint32_t unknown_result_parser = 0;
10 constexpr static uint32_t onchain_result_parser = 1;
11 constexpr static uint32_t offchain_result_parser = 2;
12 constexpr static uint32_t local_result_parser = 0x3;
13 constexpr static uint32_t forward_result_parser = 0x4;
14 
15 constexpr static uint32_t unknown_datasource_parser = 0;
16 constexpr static uint32_t single_sealed_datasource_parser = 1;
17 constexpr static uint32_t multi_sealed_datasource_parser = 2;
18 constexpr static uint32_t noinput_datasource_parser = 3;
19 constexpr static uint32_t raw_datasource_parser = 4;
20 
21 constexpr static uint32_t no_model_parser = 0;
22 constexpr static uint32_t has_model_parser = 1;
23 
25  uint32_t value;
26  struct _data {
27  uint32_t result_type : 4;
28  uint32_t data_source_type : 4;
29  uint32_t has_model : 1;
30  } d;
31 };
32 } // namespace utc
33 } // namespace ypc
ypc::utc::parser_type_t
Definition: parser_type.h:24
ypc::utc::parser_type_t::_data
Definition: parser_type.h:26