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:
Diffstat (limited to 'coding/file_container.hpp')
-rw-r--r--coding/file_container.hpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/coding/file_container.hpp b/coding/file_container.hpp
index 63408b9972..db80621bdd 100644
--- a/coding/file_container.hpp
+++ b/coding/file_container.hpp
@@ -40,17 +40,21 @@ protected:
typedef vector<Info> InfoContainer;
InfoContainer m_info;
- void ReadInfo(FileReader & reader);
+ template <class ReaderT>
+ void ReadInfo(ReaderT & reader);
};
class FilesContainerR : public FilesContainerBase
{
public:
+ typedef ModelReaderPtr ReaderT;
+
explicit FilesContainerR(string const & fName,
uint32_t logPageSize = 10,
uint32_t logPageCount = 10);
+ FilesContainerR(ReaderT const & file);
- FileReader GetReader(Tag const & tag) const;
+ ReaderT GetReader(Tag const & tag) const;
template <typename F> void ForEachTag(F f) const
{
@@ -59,7 +63,7 @@ public:
}
private:
- FileReader m_source;
+ ReaderT m_source;
};
class FilesContainerW : public FilesContainerBase