Welcome to mirror list, hosted at ThFree Co, Russian Federation.

feature_processor.hpp « indexer - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 08b1a1d8b0194bde5f697ba864a2ab79f2c5e6ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#pragma once

#include "indexer/data_header.hpp"
#include "indexer/features_vector.hpp"

#include "defines.hpp"

#include "coding/file_reader.hpp"
#include "coding/file_container.hpp"

#include "std/bind.hpp"


namespace feature
{
  template <class ToDo>
  void ForEachFromDat(ModelReaderPtr reader, ToDo & toDo)
  {
    FeaturesVectorTest features((FilesContainerR(reader)));
    features.GetVector().ForEach(ref(toDo));
  }

  template <class ToDo>
  void ForEachFromDat(string const & fPath, ToDo & toDo)
  {
    ForEachFromDat(new FileReader(fPath), toDo);
  }
}