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-08-25 08:47:17 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:22:21 +0300
commit23894576db1c9c13ba55d9173488202a050a0d3a (patch)
treee8c7f3572c476271e431b6b7166595bf83565880 /indexer/feature_processor.hpp
parentb9df96e89b57666178aada45c4c25eece8f8d756 (diff)
[Refactoring] Factor out feature loading routine to separate instance.
Diffstat (limited to 'indexer/feature_processor.hpp')
-rw-r--r--indexer/feature_processor.hpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/indexer/feature_processor.hpp b/indexer/feature_processor.hpp
index f3bdf5d662..00ad6f503e 100644
--- a/indexer/feature_processor.hpp
+++ b/indexer/feature_processor.hpp
@@ -1,7 +1,10 @@
#pragma once
+#include "data_header.hpp"
#include "features_vector.hpp"
+#include "../defines.hpp"
+
#include "../coding/file_reader.hpp"
#include "../coding/file_container.hpp"
@@ -14,7 +17,11 @@ namespace feature
void ForEachFromDat(ModelReaderPtr reader, ToDo & toDo)
{
FilesContainerR container(reader);
- FeaturesVector featureSource(container);
+
+ DataHeader header;
+ header.Load(container.GetReader(HEADER_FILE_TAG));
+
+ FeaturesVector featureSource(container, header);
featureSource.ForEachOffset(bind<void>(ref(toDo), _1, _2));
}