blob: 76ba3562b5dcfc29ca462dfcd4aefd588e3a7527 (
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 "editor/osm_editor.hpp"
class DataSource;
namespace search
{
class EditorDelegate : public osm::Editor::Delegate
{
public:
EditorDelegate(DataSource const & dataSource);
// osm::Editor::Delegate overrides:
MwmSet::MwmId GetMwmIdByMapName(string const & name) const override;
unique_ptr<FeatureType> GetOriginalFeature(FeatureID const & fid) const override;
string GetOriginalFeatureStreet(FeatureType & ft) const override;
void ForEachFeatureAtPoint(osm::Editor::FeatureTypeFn && fn,
m2::PointD const & point) const override;
private:
DataSource const & m_dataSource;
};
} // namespace search
|