forked from organicmaps/organicmaps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmwm_traits.cpp
57 lines (50 loc) · 1.54 KB
/
mwm_traits.cpp
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#include "platform/mwm_traits.hpp"
namespace version
{
MwmTraits::MwmTraits(MwmVersion const & version) : m_version(version) {}
MwmTraits::SearchIndexFormat MwmTraits::GetSearchIndexFormat() const
{
return SearchIndexFormat::CompressedBitVectorWithHeader;
}
MwmTraits::HouseToStreetTableFormat MwmTraits::GetHouseToStreetTableFormat() const
{
return HouseToStreetTableFormat::HouseToStreetTableWithHeader;
}
MwmTraits::CentersTableFormat MwmTraits::GetCentersTableFormat() const
{
return CentersTableFormat::EliasFanoMapWithHeader;
}
std::string DebugPrint(MwmTraits::SearchIndexFormat format)
{
switch (format)
{
case MwmTraits::SearchIndexFormat::FeaturesWithRankAndCenter:
return "FeaturesWithRankAndCenter";
case MwmTraits::SearchIndexFormat::CompressedBitVector:
return "CompressedBitVector";
case MwmTraits::SearchIndexFormat::CompressedBitVectorWithHeader:
return "CompressedBitVectorWithHeader";
}
UNREACHABLE();
}
std::string DebugPrint(MwmTraits::HouseToStreetTableFormat format)
{
switch (format)
{
case MwmTraits::HouseToStreetTableFormat::HouseToStreetTableWithHeader:
return "HouseToStreetTableWithHeader";
case MwmTraits::HouseToStreetTableFormat::Unknown:
return "Unknown";
}
UNREACHABLE();
}
std::string DebugPrint(MwmTraits::CentersTableFormat format)
{
switch (format)
{
case MwmTraits::CentersTableFormat::PlainEliasFanoMap: return "PlainEliasFanoMap";
case MwmTraits::CentersTableFormat::EliasFanoMapWithHeader: return "EliasFanoMapWithHeader";
}
UNREACHABLE();
}
} // namespace version