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:
authorVladimir Byko-Ianko <v.bykoianko@corp.mail.ru>2016-02-03 11:45:34 +0300
committerSergey Yershov <yershov@corp.mail.ru>2016-03-23 16:21:33 +0300
commitb45d339674db25dfd2123d7ddd5cbfa95d1637bf (patch)
treeca77df866edcc165f5bdb20472f298c81d3da79d /storage/storage_helpers.cpp
parentf6b302a7b26d7d9d05ecb1d75da15b46a6348288 (diff)
[new downloader] Adding storage_helpers.
Diffstat (limited to 'storage/storage_helpers.cpp')
-rw-r--r--storage/storage_helpers.cpp16
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