diff options
| author | Joel Klinghed <the_jk@spawned.biz> | 2021-11-17 22:34:57 +0100 |
|---|---|---|
| committer | Joel Klinghed <the_jk@spawned.biz> | 2021-11-17 22:34:57 +0100 |
| commit | 6232d13f5321b87ddf12a1aa36b4545da45f173d (patch) | |
| tree | 23f3316470a14136debd9d02f9e920ca2b06f4cc /src/geo_json.hh | |
Travel3: Simple image and video display site
Reads the images and videos from filesystem and builds a site in
memroy.
Diffstat (limited to 'src/geo_json.hh')
| -rw-r--r-- | src/geo_json.hh | 28 |
1 files changed, 28 insertions, 0 deletions
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 <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 |
