diff options
author | vng <viktor.govako@gmail.com> | 2011-06-30 10:52:22 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:20:14 +0300 |
commit | 233683d1670e89076c82401e2693315046c7244e (patch) | |
tree | 3b0a9b71d53e853e663da18c362f6ba267b1bc85 /map/feature_vec_model.hpp | |
parent | f0587a9105b5519903f4f2c3dada1ee3572e7ce1 (diff) |
[Refactoring] Use Reader interface everywhere, when possible. Platform class now is a Reader factory.
Diffstat (limited to 'map/feature_vec_model.hpp')
-rw-r--r-- | map/feature_vec_model.hpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/map/feature_vec_model.hpp b/map/feature_vec_model.hpp index dc6731a732..03d553984e 100644 --- a/map/feature_vec_model.hpp +++ b/map/feature_vec_model.hpp @@ -19,15 +19,17 @@ namespace model class FeaturesFetcher { - m2::RectD m_rect; - + public: #ifdef USE_BUFFER_READER - typedef BufferReader reader_t; + typedef BufferReader ReaderT; #else - typedef FileReader reader_t; + typedef ModelReaderPtr ReaderT; #endif - typedef Index<reader_t>::Type index_t; + private: + m2::RectD m_rect; + + typedef Index<ReaderT>::Type index_t; index_t m_multiIndex; @@ -38,7 +40,7 @@ namespace model void InitClassificator(); - void AddMap(string const & fName); + void AddMap(ReaderT const & file); void RemoveMap(string const & fName); void Clean(); void ClearCaches(); |