mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-23 14:43:43 +00:00
To expand with full Organic Maps and Maps.ME commits history run: git remote add om-historic [om-historic.git repo url] git fetch --tags om-historic git replace squashed-history historic-commits
18 lines
600 B
C++
18 lines
600 B
C++
#pragma once
|
|
|
|
#include "opening_hours.hpp"
|
|
|
|
#include <ctime>
|
|
|
|
namespace osmoh
|
|
{
|
|
bool IsActive(Timespan span, std::tm const & date);
|
|
bool IsActive(WeekdayRange const & range, std::tm const & date);
|
|
bool IsActive(Holiday const & holiday, std::tm const & date);
|
|
bool IsActive(Weekdays const & weekdays, std::tm const & date);
|
|
bool IsActive(MonthdayRange const & range, std::tm const & date);
|
|
bool IsActive(YearRange const & range, std::tm const & date);
|
|
bool IsActive(WeekRange const & range, std::tm const & date);
|
|
bool IsActive(RuleSequence const & rule, time_t const timestamp);
|
|
} // namespace osmoh
|