|
srs-control 0.2.2
|
#include <ProtoMsgReader.hpp>

Public Member Functions | |
| ProtoMsg () | |
| ProtoMsg (const ProtoMsg &)=delete | |
| Deleted copy constructor. | |
| ProtoMsg & | operator= (const ProtoMsg &)=delete |
| Deleted copy assignment. | |
| ProtoMsg (ProtoMsg &&)=default | |
| Default move constructor. | |
| ProtoMsg & | operator= (ProtoMsg &&)=default |
| Default move assignment. | |
| ~ProtoMsg () | |
| Default destructor. | |
| void | convert (std::string_view msg, StructData &struct_data) |
| auto | convert (std::string_view msg) -> const StructData & |
Private Attributes | |
| std::unique_ptr< process::Proto2StructConverter > | proto_to_struct_converter_ |
| A converter to transform Protobuf struct to native C++ struct. | |
| std::unique_ptr< process::ProtoDeserializer > | proto_deserializer_ |
| A converter to transform binary data to Protobuf struct. | |
Definition at line 17 of file ProtoMsgReader.hpp.
| srs::reader::ProtoMsg::ProtoMsg | ( | ) |
Constructor allocates the memeory for member variables
Definition at line 10 of file ProtoMsgReader.cpp.
|
delete |
Deleted copy constructor.
|
default |
Default move constructor.
|
default |
Default destructor.
| auto srs::reader::ProtoMsg::convert | ( | std::string_view | msg | ) | -> const StructData & |
Convert binary data to a struct, owned by ProtoMsgReader.
Description.
| msg | The input binary data. |
Definition at line 24 of file ProtoMsgReader.cpp.
| void srs::reader::ProtoMsg::convert | ( | std::string_view | msg, |
| StructData & | struct_data ) |
Convert binary data to a struct (inout).
| msg | The input binary data. |
| struct_data | The struct data to store the deserialized binary data. |
Definition at line 18 of file ProtoMsgReader.cpp.
|
private |
A converter to transform binary data to Protobuf struct.
Definition at line 64 of file ProtoMsgReader.hpp.
|
private |
A converter to transform Protobuf struct to native C++ struct.
Definition at line 61 of file ProtoMsgReader.hpp.