forked from mapsme/omim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
defines.hpp
129 lines (107 loc) · 4.67 KB
/
defines.hpp
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
#pragma once
// Only defines and constexprs are allowed in this file.
#define DATA_FILE_EXTENSION ".mwm"
#define DATA_FILE_EXTENSION_TMP ".mwm.tmp"
#define DIFF_FILE_EXTENSION ".mwmdiff"
#define DIFF_APPLYING_FILE_EXTENSION ".diff.applying"
#define FONT_FILE_EXTENSION ".ttf"
#define OSM2FEATURE_FILE_EXTENSION ".osm2ft"
#define EXTENSION_TMP ".tmp"
#define RAW_GEOM_FILE_EXTENSION ".rawgeom"
#define LOC_IDX_FILE_EXTENSION ".locidx"
#define LOC_DATA_FILE_EXTENSION ".locdata"
#define OSM_DATA_FILE_EXTENSION ".osm"
#define ARCHIVE_TRACKS_FILE_EXTENSION ".track"
#define ARCHIVE_TRACKS_ZIPPED_FILE_EXTENSION ".track.zip"
#define STATS_EXTENSION ".stats"
#define NODES_FILE "nodes.dat"
#define WAYS_FILE "ways.dat"
#define RELATIONS_FILE "relations.dat"
#define TOWNS_FILE "towns.csv"
#define OFFSET_EXT ".offs"
#define ID2REL_EXT ".id2rel"
#define CENTERS_FILE_TAG "centers"
#define FEATURES_FILE_TAG_V1_V9 "dat"
#define FEATURES_FILE_TAG "features"
#define GEOMETRY_FILE_TAG "geom"
#define TRIANGLE_FILE_TAG "trg"
#define INDEX_FILE_TAG "idx"
#define SEARCH_INDEX_FILE_TAG "sdx"
#define SEARCH_ADDRESS_FILE_TAG "addr"
#define POSTCODE_POINTS_FILE_TAG "postcode_points"
#define POSTCODES_FILE_TAG "postcodes"
#define CITIES_BOUNDARIES_FILE_TAG "cities_boundaries"
#define FEATURE_TO_OSM_FILE_TAG "feature_to_osm"
#define HEADER_FILE_TAG "header"
#define VERSION_FILE_TAG "version"
#define METADATA_FILE_TAG "meta"
#define METADATA_INDEX_FILE_TAG "metaidx"
#define ALTITUDES_FILE_TAG "altitudes"
#define ROAD_ACCESS_FILE_TAG "roadaccess"
#define RESTRICTIONS_FILE_TAG "restrictions"
#define ROUTING_FILE_TAG "routing"
#define CROSS_MWM_FILE_TAG "cross_mwm"
#define FEATURE_OFFSETS_FILE_TAG "offs"
#define SEARCH_RANKS_FILE_TAG "ranks"
#define POPULARITY_RANKS_FILE_TAG "popularity"
#define RATINGS_FILE_TAG "ratings"
#define REGION_INFO_FILE_TAG "rgninfo"
#define METALINES_FILE_TAG "metalines"
#define CAMERAS_INFO_FILE_TAG "speedcams"
#define ISOLINES_INFO_FILE_TAG "isolines_info"
#define TRAFFIC_KEYS_FILE_TAG "traffic"
#define TRANSIT_CROSS_MWM_FILE_TAG "transit_cross_mwm"
#define TRANSIT_FILE_TAG "transit"
#define UGC_FILE_TAG "ugc"
#define CITY_ROADS_FILE_TAG "city_roads"
#define DESCRIPTIONS_FILE_TAG "descriptions"
#define MAXSPEEDS_FILE_TAG "maxspeeds"
#define READY_FILE_EXTENSION ".ready"
#define RESUME_FILE_EXTENSION ".resume"
#define DOWNLOADING_FILE_EXTENSION ".downloading"
#define BOOKMARKS_FILE_EXTENSION ".kml"
#define ROUTING_FILE_EXTENSION ".routing"
#define NOROUTING_FILE_EXTENSION ".norouting"
#define TRANSIT_FILE_EXTENSION ".transit.json"
#define GEOM_INDEX_TMP_EXT ".geomidx.tmp"
#define CELL2FEATURE_SORTED_EXT ".c2f.sorted"
#define CELL2FEATURE_TMP_EXT ".c2f.tmp"
#define LOCALITY_INDEX_TMP_EXT ".locidx.tmp"
#define CELL2LOCALITY_SORTED_EXT ".c2l.sorted"
#define CELL2LOCALITY_TMP_EXT ".c2l.tmp"
#define COUNTRIES_FILE "countries.txt"
#define COUNTRIES_META_FILE "countries_meta.txt"
#define WORLD_FILE_NAME "World"
#define WORLD_COASTS_FILE_NAME "WorldCoasts"
#define SETTINGS_FILE_NAME "settings.ini"
#define MARKETING_SETTINGS_FILE_NAME "marketing_settings.ini"
#define SEARCH_CATEGORIES_FILE_NAME "categories.txt"
#define SEARCH_CUISINE_CATEGORIES_FILE_NAME "categories_cuisines.txt"
#define SEARCH_BRAND_CATEGORIES_FILE_NAME "categories_brands.txt"
#define PACKED_POLYGONS_INFO_TAG "info"
#define PACKED_POLYGONS_FILE "packed_polygons.bin"
#define EXTERNAL_RESOURCES_FILE "external_resources.txt"
#define GPS_TRACK_FILENAME "gps_track.dat"
#define RESTRICTIONS_FILENAME "restrictions.csv"
#define ROAD_ACCESS_FILENAME "road_access.csv"
#define ROAD_ACCESS_CONDITIONAL_EXT ".access_conditional"
#define MINI_ROUNDABOUT_ROADS_EXTENSION ".mini_roundabouts_roads_ids"
#define METALINES_FILENAME "metalines.bin"
#define CAMERAS_TO_WAYS_FILENAME "cameras_to_ways.bin"
#define MINI_ROUNDABOUTS_FILENAME "mini_roundabouts.bin"
#define MAXSPEEDS_FILENAME "maxspeeds.csv"
#define BOUNDARY_POSTCODE_TMP_FILENAME "boundary_postcode" DATA_FILE_EXTENSION_TMP
#define CITIES_AREAS_TMP_FILENAME "cities_areas" DATA_FILE_EXTENSION_TMP
#define ROUTING_CITY_BOUNDARIES_TMP_FILENAME "routing_city_boundaries" DATA_FILE_EXTENSION_TMP
#define ROUTING_CITY_BOUNDARIES_DUMP_FILENAME "routing_city_boundaries.bin"
#define CROSS_MWM_OSM_WAYS_DIR "cross_mwm_osm_ways"
#define TEMP_ADDR_FILENAME "tempaddr"
#define TRAFFIC_FILE_EXTENSION ".traffic"
#define SKIPPED_ELEMENTS_FILE "skipped_elements.json"
#define REPLACED_TAGS_FILE "replaced_tags.txt"
#define MIXED_TAGS_FILE "mixed_tags.txt"
#define MIXED_NODES_FILE "mixed_nodes.txt"
#define LOCALIZATION_DESCRIPTION_SUFFIX " Description"
#define BOOKING_EXCLUDED_FILE "booking_excluded.txt"
#define BUILDING_PARTS_MAPPING_FILE "building_parts_mapping.bin"
auto constexpr kInvalidRatingValue = 0.0f;