blob: eeb8303736b6122edabccfaa479984f39c6a1bf6 (
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
31
32
|
#pragma once
#include "generator/ugc_db.hpp"
#include "ugc/types.hpp"
#include "indexer/feature_data.hpp"
#include "base/geo_object_id.hpp"
#include <string>
namespace generator
{
class UGCTranslator
{
public:
UGCTranslator();
UGCTranslator(std::string const & dbFilename);
bool TranslateUGC(base::GeoObjectId const & id, ugc::UGC & ugc);
// For testing only
void CreateDb(std::string const & data);
private:
UGCDB m_db;
};
bool GetUgcForFeature(base::GeoObjectId const & osmId, feature::TypesHolder const & th,
UGCTranslator & translator, ugc::UGC & result);
} // namespace generator
|