aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/geo/load_save_helper.h
blob: 4a5fceea18770ea2122e3c1703635a660a9351a0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once

#include <library/cpp/geo/window.h>
#include <util/stream/input.h>
#include <util/ysaveload.h>

template <>
struct TSerializer<NGeo::TGeoPoint> {
    static void Save(IOutputStream*, const NGeo::TGeoPoint&);
    static void Load(IInputStream*, NGeo::TGeoPoint&);
};

template <>
struct TSerializer<NGeo::TGeoWindow> {
    static void Save(IOutputStream*, const NGeo::TGeoWindow&);
    static void Load(IInputStream*, NGeo::TGeoWindow&);
};

template <>
struct TSerializer<NGeo::TSize> {
    static void Save(IOutputStream*, const NGeo::TSize&);
    static void Load(IInputStream*, NGeo::TSize&);
};