summaryrefslogtreecommitdiffstats
path: root/library/cpp/geo/load_save_helper.h
diff options
context:
space:
mode:
authorvvvv <[email protected]>2023-07-31 18:21:04 +0300
committervvvv <[email protected]>2023-07-31 18:21:04 +0300
commitdec41c40e51aa407edef81a3c566a5a15780fc49 (patch)
tree4f197b596b32f35eca368121f0dff913419da9af /library/cpp/geo/load_save_helper.h
parent3ca8b54c96e09eb2b65be7f09675623438d559c7 (diff)
YQL-16239 Move purecalc to public
Diffstat (limited to 'library/cpp/geo/load_save_helper.h')
-rw-r--r--library/cpp/geo/load_save_helper.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/library/cpp/geo/load_save_helper.h b/library/cpp/geo/load_save_helper.h
new file mode 100644
index 00000000000..4a5fceea187
--- /dev/null
+++ b/library/cpp/geo/load_save_helper.h
@@ -0,0 +1,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&);
+};