From 0dc0baa25593b462517e0a8e603154dcd917cdc5 Mon Sep 17 00:00:00 2001 From: Maxim Pimenov Date: Mon, 9 Apr 2018 20:40:11 +0300 Subject: [coding] [geometry] Refactored geometry serialization. This commit moves all the code related to geometry serialization from indexer/ and coding/ to a single place, namely coding/geometry_coding.{c,h}pp. --- indexer/centers_table.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'indexer/centers_table.hpp') diff --git a/indexer/centers_table.hpp b/indexer/centers_table.hpp index ee223368b3..68e151c614 100644 --- a/indexer/centers_table.hpp +++ b/indexer/centers_table.hpp @@ -1,6 +1,6 @@ #pragma once -#include "indexer/coding_params.hpp" +#include "coding/geometry_coding.hpp" #include "geometry/point2d.hpp" @@ -53,7 +53,7 @@ public: // Loads CentersTable instance. Note that |reader| must be alive // until the destruction of loaded table. Returns nullptr if // CentersTable can't be loaded. - static unique_ptr Load(Reader & reader, serial::CodingParams const & codingParams); + static unique_ptr Load(Reader & reader, serial::GeometryCodingParams const & codingParams); private: virtual bool Init() = 0; @@ -62,7 +62,7 @@ private: class CentersTableBuilder { public: - inline void SetCodingParams(serial::CodingParams const & codingParams) + inline void SetGeometryCodingParams(serial::GeometryCodingParams const & codingParams) { m_codingParams = codingParams; } @@ -71,7 +71,7 @@ public: void Freeze(Writer & writer) const; private: - serial::CodingParams m_codingParams; + serial::GeometryCodingParams m_codingParams; vector m_centers; vector m_ids; -- cgit v1.2.3