blob: 6e7e9cb1f502c7316e61496d962fa6f7599f722a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#pragma once
#include "metrics/eye_info.hpp"
#include "base/exception.hpp"
#include <cstdint>
#include <vector>
namespace eye
{
class Serdes
{
public:
DECLARE_EXCEPTION(UnknownVersion, RootException);
static void SerializeInfo(Info const & info, std::vector<int8_t> & result);
static void DeserializeInfo(std::vector<int8_t> const & bytes, Info & result);
static void SerializeMapObjects(MapObjects const & mapObjects, std::vector<int8_t> & result);
static void DeserializeMapObjects(std::vector<int8_t> const & bytes, MapObjects & result);
static void SerializeMapObjectEvent(MapObject const & poi, MapObject::Event const & poiEvent,
std::vector<int8_t> & result);
};
} // namespace eye
|