2024-05-31 22:59:00 -04:00
|
|
|
#ifndef RFL_PARSING_PARSER_NAMED_TUPLE_HPP_
|
|
|
|
#define RFL_PARSING_PARSER_NAMED_TUPLE_HPP_
|
|
|
|
|
|
|
|
#include "NamedTupleParser.hpp"
|
|
|
|
#include "Parser_base.hpp"
|
|
|
|
|
|
|
|
namespace rfl {
|
2024-06-08 14:10:59 -04:00
|
|
|
namespace parsing {
|
2024-05-31 22:59:00 -04:00
|
|
|
|
2024-06-08 14:10:59 -04:00
|
|
|
template <class R, class W, class... FieldTypes, class ProcessorsType>
|
|
|
|
requires AreReaderAndWriter<R, W, NamedTuple<FieldTypes...>>
|
|
|
|
struct Parser<R, W, NamedTuple<FieldTypes...>, ProcessorsType>
|
2024-06-16 00:13:15 -04:00
|
|
|
: public NamedTupleParser<
|
|
|
|
R,
|
|
|
|
W,
|
|
|
|
/*_ignore_empty_containers=*/false,
|
|
|
|
/*_all_required=*/ProcessorsType::all_required_,
|
|
|
|
ProcessorsType,
|
|
|
|
FieldTypes...> {};
|
2024-05-31 22:59:00 -04:00
|
|
|
|
2024-06-08 14:10:59 -04:00
|
|
|
} // namespace parsing
|
|
|
|
} // namespace rfl
|
2024-05-31 22:59:00 -04:00
|
|
|
|
|
|
|
#endif
|