blob: 26e1232c1ee54e3539bbfb4e334302db9311aa40 (
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
|
#pragma once
#include "indexer/feature_decl.hpp"
#include "indexer/osm_editor.hpp"
#include "editor/xml_feature.hpp"
#include "base/exception.hpp"
#include "std/functional.hpp"
namespace editor
{
DECLARE_EXCEPTION(MigrationError, RootException);
using TGenerateIDFn = function<FeatureID()>;
/// Tries to match xml feature with one on a new mwm and retruns FeatrueID
/// of a found feature, thows MigrationError if migration fails.
FeatureID MigrateFeatureIndex(osm::Editor::ForEachFeaturesNearByFn & forEach,
XMLFeature const & xml,
osm::Editor::FeatureStatus const featureStatus,
TGenerateIDFn const & generateID);
} // namespace editor
|