diff options
author | Yuri Gorshenin <y@maps.me> | 2015-06-16 18:15:09 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:53:25 +0300 |
commit | 598e71858b63ef4e587efd932db41474f8f516a0 (patch) | |
tree | 19e39c1dd331579432c9b58e5e1e82c750842ac3 /platform/platform.hpp | |
parent | 9148053b3aa67aac443ade98e2ed2ae899419095 (diff) |
Storage redesign.
Diffstat (limited to 'platform/platform.hpp')
-rw-r--r-- | platform/platform.hpp | 11 |
1 files changed, 10 insertions, 1 deletions
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 |