Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Pimenov <m@maps.me>2018-04-09 20:40:11 +0300
committerRoman Kuznetsov <r.kuznetsow@gmail.com>2018-04-11 14:27:47 +0300
commit0dc0baa25593b462517e0a8e603154dcd917cdc5 (patch)
tree93452601558bbb6260e55962ba5360ebda8699ee /indexer/centers_table.hpp
parentb333719087bbe70c2e3d6ec03151b131670e2d26 (diff)
[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.
Diffstat (limited to 'indexer/centers_table.hpp')
-rw-r--r--indexer/centers_table.hpp8
1 files changed, 4 insertions, 4 deletions
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<CentersTable> Load(Reader & reader, serial::CodingParams const & codingParams);
+ static unique_ptr<CentersTable> 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<m2::PointU> m_centers;
vector<uint32_t> m_ids;