SRS-control 0.1.4
 
Loading...
Searching...
No Matches
srs::process::StructDeserializer Class Reference

#include <StructDeserializer.hpp>

Collaboration diagram for srs::process::StructDeserializer:

Public Types

using DataElementType = std::bitset<common::HIT_DATA_BIT_LENGTH>
 
using ReceiveDataSquence = std::vector<DataElementType>
 
- Public Types inherited from srs::process::DataConverterBase< std::string_view, const StructData * >
using InputType
 
using OutputType
 
using InputFuture
 
using OutputFuture
 
using CoroType
 

Public Member Functions

 StructDeserializer (asio::thread_pool &thread_pool)
 
auto data () const -> const auto &
 
- Public Member Functions inherited from srs::process::DataConverterBase< std::string_view, const StructData * >
 DataConverterBase (auto coro)
 
auto create_future (this auto &&self, InputFuture &pre_fut, writer::Manager &writers) -> OutputFuture
 

Static Public Attributes

static constexpr auto ConverterOption = std::array{ structure }
 

Private Member Functions

void reset ()
 
auto generate_coro (asio::any_io_executor) -> CoroType
 
auto convert (std::string_view binary_data) -> std::size_t
 
void translate_raw_data (StructData &struct_data)
 
void byte_reverse_data_sq ()
 

Static Private Member Functions

static auto check_is_hit (const DataElementType &element) -> bool
 

Private Attributes

ReceiveDataSquence receive_raw_data_
 
StructData output_data_
 

Detailed Description

Definition at line 10 of file StructDeserializer.hpp.

Member Typedef Documentation

◆ DataElementType

◆ ReceiveDataSquence

Constructor & Destructor Documentation

◆ StructDeserializer()

srs::process::StructDeserializer::StructDeserializer ( asio::thread_pool & thread_pool)
inlineexplicit

Definition at line 17 of file StructDeserializer.hpp.

Member Function Documentation

◆ byte_reverse_data_sq()

void srs::process::StructDeserializer::byte_reverse_data_sq ( )
private

Definition at line 141 of file StructDeserializer.cpp.

◆ check_is_hit()

static auto srs::process::StructDeserializer::check_is_hit ( const DataElementType & element) -> bool
inlinestaticprivate

Definition at line 35 of file StructDeserializer.hpp.

◆ convert()

auto srs::process::StructDeserializer::convert ( std::string_view binary_data) -> std::size_t
private

Definition at line 98 of file StructDeserializer.cpp.

◆ data()

auto srs::process::StructDeserializer::data ( ) const -> const auto&
inlinenodiscard

Definition at line 22 of file StructDeserializer.hpp.

◆ generate_coro()

auto srs::process::StructDeserializer::generate_coro ( asio::any_io_executor ) -> CoroType
private

Definition at line 72 of file StructDeserializer.cpp.

◆ reset()

void srs::process::StructDeserializer::reset ( )
inlineprivate

Definition at line 28 of file StructDeserializer.hpp.

◆ translate_raw_data()

void srs::process::StructDeserializer::translate_raw_data ( StructData & struct_data)
private

Definition at line 124 of file StructDeserializer.cpp.

Member Data Documentation

◆ ConverterOption

auto srs::process::StructDeserializer::ConverterOption = std::array{ structure }
staticconstexpr

Definition at line 15 of file StructDeserializer.hpp.

◆ output_data_

StructData srs::process::StructDeserializer::output_data_
private

Definition at line 26 of file StructDeserializer.hpp.

◆ receive_raw_data_

ReceiveDataSquence srs::process::StructDeserializer::receive_raw_data_
private

Definition at line 25 of file StructDeserializer.hpp.


The documentation for this class was generated from the following files: