diff options
author | Constantin Shalnev <c.shalnev@corp.mail.ru> | 2015-09-11 16:17:10 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 03:04:57 +0300 |
commit | 057f55fb515899ba39eb3334da0fc62232cf404d (patch) | |
tree | 3e9486684775c1a5ba857d9168e40e93725cd51e /indexer/drawing_rules.hpp | |
parent | ad8154bac4539ef5921af1cc3f94af8f538c2a9f (diff) |
Added city rank table
Diffstat (limited to 'indexer/drawing_rules.hpp')
-rw-r--r-- | indexer/drawing_rules.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/indexer/drawing_rules.hpp b/indexer/drawing_rules.hpp index 1624ed3f3a..8292836fea 100644 --- a/indexer/drawing_rules.hpp +++ b/indexer/drawing_rules.hpp @@ -1,5 +1,7 @@ #pragma once + #include "indexer/drawing_rule_def.hpp" +#include "indexer/drules_city_rank_table.hpp" #include "base/base.hpp" #include "base/buffer_vector.hpp" @@ -66,6 +68,8 @@ namespace drule /// background color for scales in range [0...scales::UPPER_STYLE_SCALE] vector<uint32_t> m_bgColors; + unique_ptr<ICityRankTable> m_cityRankTable; + public: RulesHolder(); ~RulesHolder(); @@ -81,12 +85,15 @@ namespace drule uint32_t GetBgColor(int scale) const; + double GetCityRank(int scale, uint32_t population) const; + #ifdef OMIM_OS_DESKTOP void LoadFromTextProto(string const & buffer); static void SaveToBinaryProto(string const & buffer, ostream & s); #endif void LoadFromBinaryProto(string const & s); + void LoadCityRankTableFromString(string & s); template <class ToDo> void ForEachRule(ToDo toDo) { |