Repo created
This commit is contained in:
parent
4af19165ec
commit
68073add76
12458 changed files with 12350765 additions and 2 deletions
23
libs/editor/edits_migration.hpp
Normal file
23
libs/editor/edits_migration.hpp
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
#pragma once
|
||||
|
||||
#include "editor/osm_editor.hpp"
|
||||
#include "editor/xml_feature.hpp"
|
||||
|
||||
#include "indexer/feature_decl.hpp"
|
||||
#include "indexer/feature_source.hpp"
|
||||
|
||||
#include "base/exception.hpp"
|
||||
|
||||
#include <functional>
|
||||
|
||||
namespace editor
|
||||
{
|
||||
DECLARE_EXCEPTION(MigrationError, RootException);
|
||||
|
||||
using GenerateIDFn = std::function<FeatureID()>;
|
||||
|
||||
/// Tries to match xml feature with one on a new mwm and returns FeatureID
|
||||
/// of a found feature, throws MigrationError if migration fails.
|
||||
FeatureID MigrateFeatureIndex(osm::Editor::ForEachFeaturesNearByFn & forEach, XMLFeature const & xml,
|
||||
FeatureStatus const featureStatus, GenerateIDFn const & generateID);
|
||||
} // namespace editor
|
||||
Loading…
Add table
Add a link
Reference in a new issue