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:
authorvng <viktor.govako@gmail.com>2011-08-15 18:14:56 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:21:40 +0300
commit2d7908f048e3ffc7899a1eae1225c57176fbeab9 (patch)
tree182276da2e7451bcae18ae6e1251a3af284dedfa /indexer/feature_data.hpp
parente7101c28c17cb79f7a7e7307f6826e00e3a2ebe1 (diff)
Add types mapping to feature serialization\deserialization.
Diffstat (limited to 'indexer/feature_data.hpp')
-rw-r--r--indexer/feature_data.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/indexer/feature_data.hpp b/indexer/feature_data.hpp
index 5a23c2a6a8..194b2410ec 100644
--- a/indexer/feature_data.hpp
+++ b/indexer/feature_data.hpp
@@ -1,4 +1,5 @@
#pragma once
+#include "classificator.hpp"
#include "../coding/multilang_utf8_string.hpp"
#include "../coding/value_opt_string.hpp"
@@ -176,8 +177,10 @@ public:
WriteToSink(sink, header);
+ Classificator & c = classif();
+
for (size_t i = 0; i < m_Types.size(); ++i)
- WriteVarUint(sink, m_Types[i]);
+ WriteVarUint(sink, c.TypeForIndex(m_Types[i]));
FeatureParamsBase::Write(sink, header, GetGeomType());
}