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

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

#include "../coding/reader.hpp"
#include "../base/logging.hpp"

namespace classificator
{
  void Read(string const & rules, string const & classificator, string const & visibility)
  {
    LOG(LINFO, ("Reading drawing rules"));
    drule::ReadRules(rules.c_str());
    LOG(LINFO, ("Reading classificator"));
    if (!classif().ReadClassificator(classificator.c_str()))
      MYTHROW(Reader::OpenException, ("drawing rules or classificator file"));

    LOG(LINFO, ("Reading visibility"));
    (void)classif().ReadVisibility(visibility.c_str());
    LOG(LINFO, ("Reading visibility done"));
  }
}