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

opentable_dataset.hpp « generator - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3eae535b92d238e0f118bac23946aeb4794fc317 (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
#pragma once

#include "generator/sponsored_dataset.hpp"
#include "generator/sponsored_object_base.hpp"

#include "geometry/latlon.hpp"

#include "base/newtype.hpp"

#include <limits>
#include <string>

namespace generator
{
struct OpentableRestaurant : SponsoredObjectBase
{
  enum class Fields
  {
    Id = 0,
    Latitude,
    Longtitude,
    Name,
    Address,
    DescUrl,
    Phone,
    // Opentable doesn't have translations.
    // Translations,
    Counter
  };

  explicit OpentableRestaurant(std::string const & src);

  static constexpr size_t FieldIndex(Fields field) { return SponsoredObjectBase::FieldIndex(field); }
  static constexpr size_t FieldsCount() { return SponsoredObjectBase::FieldsCount<Fields>(); }

  // string m_translations;
};

using OpentableDataset = SponsoredDataset<OpentableRestaurant>;
}  // namespace generator