From 598e71858b63ef4e587efd932db41474f8f516a0 Mon Sep 17 00:00:00 2001 From: Yuri Gorshenin Date: Tue, 16 Jun 2015 18:15:09 +0300 Subject: Storage redesign. --- platform/platform.hpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'platform/platform.hpp') diff --git a/platform/platform.hpp b/platform/platform.hpp index 91f86740d7..7effb78d90 100644 --- a/platform/platform.hpp +++ b/platform/platform.hpp @@ -1,5 +1,7 @@ #pragma once +#include "platform/country_defines.hpp" + #include "coding/reader.hpp" #include "base/exception.hpp" @@ -12,10 +14,14 @@ #include "defines.hpp" - DECLARE_EXCEPTION(FileAbsentException, RootException); DECLARE_EXCEPTION(NotImplementedException, RootException); +namespace platform +{ +class LocalCountryFile; +} + class Platform { public: @@ -109,6 +115,9 @@ public: /// @return full path to file in the settings directory string SettingsPathForFile(string const & file) const { return SettingsDir() + file; } + ModelReader * GetCountryReader(platform::LocalCountryFile const & file, + TMapOptions options) const; + /// @return reader for file decriptor. /// @throws FileAbsentException /// @param[in] file name or full path which we want to read, don't forget to free memory or wrap it to ReaderPtr -- cgit v1.2.3