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

framework_factory.cpp « map - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6c336b519b9abe1f6c4a357516a5e145f850393f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "../base/SRC_FIRST.hpp"

#include "framework_factory.hpp"
#include "benchmark_framework.hpp"
#include "feature_vec_model.hpp"

#include "../platform/settings.hpp"

template <typename TModel>
Framework<TModel> * FrameworkFactory<TModel>::CreateFramework(shared_ptr<WindowHandle> const & wh, size_t bottomShift)
{
  bool benchmarkingEnabled = false;
  (void)Settings::Get("IsBenchmarking", benchmarkingEnabled);

  if (benchmarkingEnabled)
    return new BenchmarkFramework<TModel>(wh, bottomShift);
  else
    return new Framework<TModel>(wh, bottomShift);
}

template class FrameworkFactory<model::FeaturesFetcher>;