From 6232d13f5321b87ddf12a1aa36b4545da45f173d Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Wed, 17 Nov 2021 22:34:57 +0100 Subject: Travel3: Simple image and video display site Reads the images and videos from filesystem and builds a site in memroy. --- src/geo_json.hh | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/geo_json.hh (limited to 'src/geo_json.hh') diff --git a/src/geo_json.hh b/src/geo_json.hh new file mode 100644 index 0000000..d5f4030 --- /dev/null +++ b/src/geo_json.hh @@ -0,0 +1,28 @@ +#ifndef GEO_JSON_HH +#define GEO_JSON_HH + +#include +#include +#include +#include +#include + +class Logger; + +class GeoJson { +public: + virtual ~GeoJson() = default; + + static std::unique_ptr create(std::shared_ptr logger, + std::filesystem::path db); + + virtual std::optional 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 -- cgit v1.2.3-70-g09d2