blob: 3d33eb88b257e2e25e81947dd8110d47bb1dc484 (
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
|
#ifndef TIMEZONE_HH
#define TIMEZONE_HH
#include <filesystem>
#include <memory>
#include <optional>
class Logger;
class Timezone {
public:
virtual ~Timezone() = default;
static std::unique_ptr<Timezone> create(std::shared_ptr<Logger> logger,
std::filesystem::path geojsondb,
std::filesystem::path tzinfo_dir);
virtual std::optional<time_t> 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
|