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/timezone.hh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/timezone.hh (limited to 'src/timezone.hh') diff --git a/src/timezone.hh b/src/timezone.hh new file mode 100644 index 0000000..3d33eb8 --- /dev/null +++ b/src/timezone.hh @@ -0,0 +1,27 @@ +#ifndef TIMEZONE_HH +#define TIMEZONE_HH + +#include +#include +#include + +class Logger; + +class Timezone { +public: + virtual ~Timezone() = default; + + static std::unique_ptr create(std::shared_ptr logger, + std::filesystem::path geojsondb, + std::filesystem::path tzinfo_dir); + + virtual std::optional get_local_time(double lat, double lng, + time_t utc_time) const = 0; + +protected: + Timezone() = default; + Timezone(Timezone const&) = delete; + Timezone& operator=(Timezone const&) = delete; +}; + +#endif // TIMEZONE_HH -- cgit v1.2.3-70-g09d2