diff options
author | Vladimir Byko-Ianko <v.bykoianko@corp.mail.ru> | 2016-02-03 11:45:34 +0300 |
---|---|---|
committer | Sergey Yershov <yershov@corp.mail.ru> | 2016-03-23 16:21:33 +0300 |
commit | b45d339674db25dfd2123d7ddd5cbfa95d1637bf (patch) | |
tree | ca77df866edcc165f5bdb20472f298c81d3da79d /storage/storage_helpers.cpp | |
parent | f6b302a7b26d7d9d05ecb1d75da15b46a6348288 (diff) |
[new downloader] Adding storage_helpers.
Diffstat (limited to 'storage/storage_helpers.cpp')
-rw-r--r-- | storage/storage_helpers.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/storage/storage_helpers.cpp b/storage/storage_helpers.cpp new file mode 100644 index 0000000000..fbcc4ff526 --- /dev/null +++ b/storage/storage_helpers.cpp @@ -0,0 +1,16 @@ +#include "storage/storage_helpers.hpp" + +#include "storage/country_info_getter.hpp" +#include "storage/storage.hpp" + +namespace storage +{ + +bool IsPointCoveredByDownloadedMaps(m2::PointD const & position, + Storage const & storage, + CountryInfoGetter const & countryInfoGetter) +{ + return storage.IsNodeDownloaded(countryInfoGetter.GetRegionCountryId(position)); +} + +} // namespace storage |