blob: d5f40303246de54601b933ad0c9508a0ad629ad8 (
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
|
#ifndef GEO_JSON_HH
#define GEO_JSON_HH
#include <filesystem>
#include <memory>
#include <optional>
#include <string>
#include <string_view>
class Logger;
class GeoJson {
public:
virtual ~GeoJson() = default;
static std::unique_ptr<GeoJson> create(std::shared_ptr<Logger> logger,
std::filesystem::path db);
virtual std::optional<std::string> get_data(double lat, double lng,
std::string_view data) const = 0;
protected:
GeoJson() = default;
GeoJson(GeoJson const&) = delete;
GeoJson& operator=(GeoJson const&) = delete;
};
#endif // GEO_JSON_HH
|