SOLA
Loading...
Searching...
No Matches
serializer_cereal.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_CEREAL_H_
8#define MINHTON_UTILS_SERIALIZER_CEREAL_H_
9
10#include <cassert>
11#include <unordered_map>
12#include <variant>
13
14#include "minhton/algorithms/esearch/find_query.h"
15#include "minhton/algorithms/esearch/node_data.h"
16#include "minhton/core/constants.h"
17#include "minhton/utils/serializer.h"
18
19namespace minhton::serializer {
23class SerializerCereal final : public ISerializer {
24public:
25 ~SerializerCereal() override = default;
26
27 std::string serialize(const minhton::MessageVariant &msg) override;
28
29 minhton::MessageVariant deserialize(const std::string &str) override;
30};
31} // namespace minhton::serializer
32#endif
Definition serializer.h:22
Definition serializer_cereal.h:23
minhton::MessageVariant deserialize(const std::string &str) override
Definition serializer_cereal.cpp:37
std::string serialize(const minhton::MessageVariant &msg) override
Definition serializer_cereal.cpp:30