blob: d4969bc8e4ba25457d646a77895c2dee6e3bdbaa (
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
25
26
27
28
29
30
|
#pragma once
#include "indexer/feature.hpp"
#include "geometry/rect2d.hpp"
#include "std/function.hpp"
namespace df
{
class MapDataProvider
{
public:
typedef function<void (FeatureID const &)> TReadIdCallback;
typedef function<void (FeatureType const &)> TReadFeatureCallback;
typedef function<void (TReadFeatureCallback const & , vector<FeatureID> const &)> TReadFeaturesFn;
typedef function<void (TReadIdCallback const & , m2::RectD const &, int)> TReadIDsFn;
MapDataProvider(TReadIDsFn const & idsReader, TReadFeaturesFn const & featureReader);
void ReadFeaturesID(TReadIdCallback const & fn, m2::RectD const & r, int scale) const;
void ReadFeatures(TReadFeatureCallback const & fn, vector<FeatureID> const & ids) const;
private:
TReadFeaturesFn m_featureReader;
TReadIDsFn m_idsReader;
};
}
|