SOLA
Loading...
Searching...
No Matches
serializer.h
1// Copyright The SOLA Contributors
2//
3// Licensed under the MIT License.
4// For details on the licensing terms, see the LICENSE file.
5// SPDX-License-Identifier: MIT
6
7#ifndef MINHTON_UTILS_SERIALIZER_H_
8#define MINHTON_UTILS_SERIALIZER_H_
9
10#include <memory>
11
12#include "minhton/message/message.h"
13#include "minhton/message/types_all.h"
14
15namespace minhton {
23public:
24 virtual ~ISerializer() = default;
28 virtual std::string serialize(const minhton::MessageVariant &msg) = 0;
29
33 virtual minhton::MessageVariant deserialize(const std::string &input) = 0;
34};
35} // namespace minhton
36#endif
Definition serializer.h:22
virtual std::string serialize(const minhton::MessageVariant &msg)=0
virtual minhton::MessageVariant deserialize(const std::string &input)=0
Definition minhton_watchdog_ns3.cpp:24