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:
authorConstantin Shalnev <c.shalnev@corp.mail.ru>2016-01-14 17:23:07 +0300
committerConstantin Shalnev <c.shalnev@corp.mail.ru>2016-01-14 17:23:07 +0300
commit80146c3fafed3e20e0e5034757a1b63de8b769a2 (patch)
treefe84ce63efbe25ea06345023173aa8394dc58a12 /indexer/classificator_loader.cpp
parentc4badbc01a88353a7467463cf9b5dfe58b0bf94f (diff)
Added initialization of all classificators/drules
Diffstat (limited to 'indexer/classificator_loader.cpp')
-rw-r--r--indexer/classificator_loader.cpp17
1 files changed, 14 insertions, 3 deletions
diff --git a/indexer/classificator_loader.cpp b/indexer/classificator_loader.cpp
index 789515dd54..ca8f34058d 100644
--- a/indexer/classificator_loader.cpp
+++ b/indexer/classificator_loader.cpp
@@ -1,6 +1,7 @@
#include "indexer/classificator_loader.hpp"
#include "indexer/classificator.hpp"
#include "indexer/drawing_rules.hpp"
+#include "indexer/map_style_reader.hpp"
#include "platform/platform.hpp"
@@ -45,10 +46,20 @@ namespace classificator
Platform & p = GetPlatform();
- ReadCommon(p.GetReader("classificator.txt"),
- p.GetReader("types.txt"));
+ MapStyle const originMapStyle = GetStyleReader().GetCurrentStyle();
- drule::LoadRules();
+ for (int i = 0; i < MapStyleCount; ++i)
+ {
+ MapStyle const mapStyle = static_cast<MapStyle>(i);
+ GetStyleReader().SetCurrentStyle(mapStyle);
+
+ ReadCommon(p.GetReader("classificator.txt"),
+ p.GetReader("types.txt"));
+
+ drule::LoadRules();
+ }
+
+ GetStyleReader().SetCurrentStyle(originMapStyle);
LOG(LDEBUG, ("Reading of classificator finished"));
}