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