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

main.cpp « openlr_assessment_tool « openlr_match_quality « openlr - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ee6878f19e78db645c21891533980d3d7bd3644a (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#include "map/framework.hpp"

#include "openlr/openlr_match_quality/openlr_assessment_tool/mainwindow.hpp"

#include "3party/gflags/src/gflags/gflags.h"

#include <cstdio>

#include <QApplication>

using namespace openlr;

namespace
{
DEFINE_string(resources_path, "", "Path to resources directory");
DEFINE_string(data_path, "", "Path to data directory");
}  // namespace

int main(int argc, char * argv[])
{
  google::SetUsageMessage("Visualize and check matched routes.");
  google::ParseCommandLineFlags(&argc, &argv, true);

  Platform & platform = GetPlatform();
  if (!FLAGS_resources_path.empty())
    platform.SetResourceDir(FLAGS_resources_path);
  if (!FLAGS_data_path.empty())
    platform.SetWritableDirForTests(FLAGS_data_path);

  Q_INIT_RESOURCE(resources_common);
  QApplication app(argc, argv);

  FrameworkParams params;
  params.m_enableLocalAds = false;

  Framework framework(params);
  MainWindow mainWindow(framework);

  mainWindow.showMaximized();

  return app.exec();
}