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:
authorAlex Zolotarev <alex@mapswithme.com>2013-10-28 01:59:27 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:04:07 +0300
commitc8f9746719a51c6dced456d46d76ae569702be52 (patch)
tree9933f9d29b6b97c858bf25386b0feb9930858ea0 /platform/platform.hpp
parent0b1ec9b3e3c70ff6aff69ff89c8f8d8341122cd3 (diff)
Started refactoring of Platform::GetReader() - needed to fix guides loading bug
Diffstat (limited to 'platform/platform.hpp')
-rw-r--r--platform/platform.hpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/platform/platform.hpp b/platform/platform.hpp
index 9c24c7e92d..ec7399edc1 100644
--- a/platform/platform.hpp
+++ b/platform/platform.hpp
@@ -45,7 +45,7 @@ protected:
/// Internal function to get full path for input file.
/// Uses m_writeableDir and m_resourcesDir.
- string ReadPathForFile(string const & file) const;
+ string ReadPathForFile(string const & file, char const * searchScope) const;
/// Hash some unique string into uniform format.
static string HashUniqueID(string const & s);
@@ -76,8 +76,10 @@ public:
/// @return reader for file decriptor.
/// @throws FileAbsentException
- /// @param[in] file descriptor which we want to read
- ModelReader * GetReader(string const & file) const;
+ /// @param[in] file name or full path which we want to read, don't forget to free memory or wrap it to ReaderPtr
+ /// @param[in] searchScope looks for file in dirs in given order: [w]ritable, [r]esources, by [f]ull path
+ /// @TODO add [e]xternal resource scope for Android (obb support)
+ ModelReader * GetReader(string const & file, char const * searchScope = "wrf") const;
/// @name File operations
//@{