#include <ProtoMsgReader.hpp>
Definition at line 17 of file ProtoMsgReader.hpp.
◆ ProtoMsg() [1/3]
srs::reader::ProtoMsg::ProtoMsg |
( |
| ) |
|
Constructor allocates the memeory for member variables
Definition at line 7 of file ProtoMsgReader.cpp.
◆ ProtoMsg() [2/3]
srs::reader::ProtoMsg::ProtoMsg |
( |
const ProtoMsg & | | ) |
|
|
delete |
Deleted copy constructor.
◆ ProtoMsg() [3/3]
srs::reader::ProtoMsg::ProtoMsg |
( |
ProtoMsg && | | ) |
|
|
default |
Default move constructor.
◆ ~ProtoMsg()
srs::reader::ProtoMsg::~ProtoMsg |
( |
| ) |
|
|
default |
◆ convert() [1/2]
auto srs::reader::ProtoMsg::convert |
( |
std::string_view | msg | ) |
-> const StructData& |
Convert binary data to a struct, owned by ProtoMsgReader.
Description.
- Parameters
-
msg | The input binary data. |
- Returns
- The const reference to the internal struct data.
Definition at line 21 of file ProtoMsgReader.cpp.
◆ convert() [2/2]
void srs::reader::ProtoMsg::convert |
( |
std::string_view | msg, |
|
|
StructData & | struct_data ) |
Convert binary data to a struct (inout).
- Parameters
-
msg | The input binary data. |
struct_data | The struct data to store the deserialized binary data. |
Definition at line 15 of file ProtoMsgReader.cpp.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ proto_deserializer_
A converter to transform binary data to Protobuf struct.
Definition at line 64 of file ProtoMsgReader.hpp.
◆ proto_to_struct_converter_
A converter to transform Protobuf struct to native C++ struct.
Definition at line 61 of file ProtoMsgReader.hpp.
The documentation for this class was generated from the following files: