8#include <boost/asio/any_io_executor.hpp>
9#include <boost/asio/thread_pool.hpp>
46 raw_body_part_data.clear();
47 auto res =
convert(prev_data_converter(line_number), output_data, raw_body_part_data);
48 return res.transform([line_number,
this](
auto) {
return this->
operator()(line_number); });
56 -> std::expected<std::size_t, std::string_view>;
auto get_n_lines() const -> std::size_t
const StructData * OutputType
std::expected< OutputType, std::string_view > RunResult
ConverterTask(std::string_view name, DataConvertOptions prev_convert, std::size_t n_lines=1)
std::vector< StructData > output_data_
static void translate_raw_data(StructData &struct_data, ReceiveDataSquence &receive_raw_data)
static auto convert(std::string_view binary_data, StructData &output, ReceiveDataSquence &body_part_data) -> std::expected< std::size_t, std::string_view >
std::vector< DataElementType > ReceiveDataSquence
std::bitset< common::HIT_DATA_BIT_LENGTH > DataElementType
StructDeserializer(size_t n_lines=1)
auto run(const OutputTo< InputType > auto &prev_data_converter, std::size_t line_number=0) -> RunResult
static auto check_is_hit(const DataElementType &element) -> bool
std::vector< ReceiveDataSquence > raw_body_part_data_
auto operator()(std::size_t line_number=0) const -> OutputType
static void byte_reverse_data_sq(ReceiveDataSquence &receive_raw_data)
constexpr auto FLAG_BIT_POSITION
void reset_struct_data(StructData &struct_data)