diff options
author | vng <viktor.govako@gmail.com> | 2012-06-23 05:05:10 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:40:11 +0300 |
commit | 733b39ccb51c1c85b7a2e5ccde0e99efdebd3a13 (patch) | |
tree | 86d9a7c4513ddf426434b35803f25638e7b8ddf5 /storage | |
parent | 5e02a090f27966d41f2d25050e699afc5b3e12b5 (diff) |
Add Framework::GetCountryName(id).
Diffstat (limited to 'storage')
-rw-r--r-- | storage/country_info.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/storage/country_info.hpp b/storage/country_info.hpp index 119037aa72..2525f1c9d2 100644 --- a/storage/country_info.hpp +++ b/storage/country_info.hpp @@ -16,6 +16,7 @@ namespace storage FilesContainerR m_reader; vector<CountryDef> m_countries; + /// ID - is a country file name without an extension. map<string, CountryInfo> m_id2info; mutable my::Cache<uint32_t, vector<m2::RegionD> > m_cache; @@ -43,7 +44,9 @@ namespace storage string GetRegionFile(m2::PointD const & pt) const; + /// @param[in] pt Point inside country. void GetRegionInfo(m2::PointD const & pt, CountryInfo & info) const; + /// @param[in] id Country file name without an extension. void GetRegionInfo(string const & id, CountryInfo & info) const; /// Return limit rects of USA:\n |