blob: 4d991c70f1f2f0b70a1df1bbb8a57393b46259da (
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 "std/limits.hpp"
#include "std/unique_ptr.hpp"
class MwmValue;
namespace search
{
namespace v2
{
class HouseToStreetTable
{
public:
virtual ~HouseToStreetTable() = default;
/// @todo Actually, value may be nullptr in the very common case.
/// It's better to construct a table from MwmHandle.
static unique_ptr<HouseToStreetTable> Load(MwmValue & value);
// Returns true and stores to |streetIndex| the index number of the
// correct street corresponding to the house in the list of streets
// generated by ReverseGeocoder. Returns false if there is no such
// street.
virtual bool Get(uint32_t houseId, uint32_t & streetIndex) const = 0;
};
} // namespace v2
} // namespace search
|