diff options
author | Constantin Shalnev <c.shalnev@corp.mail.ru> | 2016-01-14 17:23:07 +0300 |
---|---|---|
committer | Constantin Shalnev <c.shalnev@corp.mail.ru> | 2016-01-14 17:23:07 +0300 |
commit | 80146c3fafed3e20e0e5034757a1b63de8b769a2 (patch) | |
tree | fe84ce63efbe25ea06345023173aa8394dc58a12 /indexer/classificator_loader.cpp | |
parent | c4badbc01a88353a7467463cf9b5dfe58b0bf94f (diff) |
Added initialization of all classificators/drules
Diffstat (limited to 'indexer/classificator_loader.cpp')
-rw-r--r-- | indexer/classificator_loader.cpp | 17 |
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")); } |