Utility for parsing simple OpenStreetMap opening hours.
More...
#include <OpeningHours.h>
|
static std::optional< OpeningHours > | Parse (const std::string &str, bool explicitClosedDays=false) |
| Parse OSM opening hours string. More...
|
|
Utility for parsing simple OpenStreetMap opening hours.
see https://wiki.openstreetmap.org/wiki/Key:opening_hours
◆ WeekDay
Day of the week in the Gregorian calendar.
And special entries for holidays.
Enumerator |
---|
Monday | |
Tuesday | |
Wednesday | |
Thursday | |
Friday | |
Saturday | |
Sunday | |
PublicHoliday | |
SchoolHoliday | |
◆ OpeningHours() [1/3]
osmscout::OpeningHours::OpeningHours |
( |
std::vector< Rule > |
rules | ) |
|
|
explicit |
◆ OpeningHours() [2/3]
osmscout::OpeningHours::OpeningHours |
( |
const OpeningHours & |
| ) |
|
|
default |
◆ OpeningHours() [3/3]
◆ ~OpeningHours()
osmscout::OpeningHours::~OpeningHours |
( |
| ) |
|
|
default |
◆ GetRules()
std::vector<Rule> osmscout::OpeningHours::GetRules |
( |
| ) |
const |
|
inline |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ Parse()
std::optional< OpeningHours > osmscout::OpeningHours::Parse |
( |
const std::string & |
str, |
|
|
bool |
explicitClosedDays = false |
|
) |
| |
|
static |
The documentation for this class was generated from the following files: