diff options
author | Sergey Magidovich <mgsergio@mapswithme.com> | 2016-02-07 16:39:15 +0300 |
---|---|---|
committer | Sergey Yershov <yershov@corp.mail.ru> | 2016-03-23 16:20:41 +0300 |
commit | 2317f55b5a9460654f0916f6b85d7fa23837d3be (patch) | |
tree | 7e3e7b127dc3a79381938e14f2f22ef32e3cc694 /indexer/edits_migration.hpp | |
parent | 0e5fd3b1fbc0af74ec4cc9ecdc5988010a35f48e (diff) |
Edits migration.
Diffstat (limited to 'indexer/edits_migration.hpp')
-rw-r--r-- | indexer/edits_migration.hpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/indexer/edits_migration.hpp b/indexer/edits_migration.hpp new file mode 100644 index 0000000000..53e6ba9f8e --- /dev/null +++ b/indexer/edits_migration.hpp @@ -0,0 +1,18 @@ +#pragma once + +#include "indexer/feature_decl.hpp" +#include "indexer/osm_editor.hpp" + +#include "editor/xml_feature.hpp" + +#include "base/exception.hpp" + +namespace editor +{ +DECLARE_EXCEPTION(MigrationError, RootException); + +/// 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::TForEachFeaturesNearByFn & forEach, + XMLFeature const & xml); +} // namespace editor |