Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
IMessageComm.hpp
Go to the documentation of this file.
1#ifndef IV_SRC_COMMS_IMESSAGECOMM_HPP_
2#define IV_SRC_COMMS_IMESSAGECOMM_HPP_
3
6
7namespace iv::comms
8{
9
11{
12public:
13 ~IMessageComm() override = default;
14 [[nodiscard]] std::vector<std::byte> serialize() const override = 0;
15 [[nodiscard]] bool deserialize(const std::vector<std::byte> &data) override = 0;
16
17 std::vector<std::byte> bytes;
18};
19
20}// namespace iv::comms
21
22#endif//IV_SRC_COMMS_IMESSAGECOMM_HPP_
Definition IMessageComm.hpp:11
std::vector< std::byte > serialize() const override=0
std::vector< std::byte > bytes
Definition IMessageComm.hpp:17
bool deserialize(const std::vector< std::byte > &data) override=0
~IMessageComm() override=default
Definition ISerializable.hpp:10
Definition ApiCommunicationController.cpp:12