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:
authorvng <viktor.govako@gmail.com>2011-06-30 10:52:22 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:20:14 +0300
commit233683d1670e89076c82401e2693315046c7244e (patch)
tree3b0a9b71d53e853e663da18c362f6ba267b1bc85 /indexer/features_vector.hpp
parentf0587a9105b5519903f4f2c3dada1ee3572e7ce1 (diff)
[Refactoring] Use Reader interface everywhere, when possible. Platform class now is a Reader factory.
Diffstat (limited to 'indexer/features_vector.hpp')
-rw-r--r--indexer/features_vector.hpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/indexer/features_vector.hpp b/indexer/features_vector.hpp
index 0f4b40592d..9fcd5cedc5 100644
--- a/indexer/features_vector.hpp
+++ b/indexer/features_vector.hpp
@@ -11,7 +11,7 @@
struct FeatureReaders
{
FilesContainerR m_cont;
- FileReader m_datR;
+ FilesContainerR::ReaderT m_datR;
FeatureReaders(FilesContainerR const & cont)
: m_cont(cont), m_datR(cont.GetReader(DATA_FILE_TAG))
@@ -46,10 +46,10 @@ public:
// bind<void>(toDo, bind(&FeaturesVector<ReaderT>::DeserializeFeature, this, _2, _3, &f)));
//}
- bool IsMyData(string const & fName) const
- {
- return m_RecordReader.IsEqual(fName);
- }
+ //bool IsMyData(string const & fName) const
+ //{
+ // return m_RecordReader.IsEqual(fName);
+ //}
private:
template <class ToDo> class feature_getter
@@ -71,6 +71,6 @@ private:
}
};
- VarRecordReader<FileReader, &VarRecordSizeReaderVarint> m_RecordReader;
+ VarRecordReader<FilesContainerR::ReaderT, &VarRecordSizeReaderVarint> m_RecordReader;
mutable FeatureType::read_source_t m_source;
};