#include <libosmscout/include/osmscout/util/OpeningHours.h>
|
| static std::optional< OpeningHours > | Parse (const std::string &str, bool explicitClosedDays=false) |
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]
| osmscout::OpeningHours::OpeningHours |
( |
OpeningHours && | | ) |
|
|
default |
◆ ~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 |
Parse OSM opening hours string
- Parameters
-
| str | |
| explicitClosedDays | explicitly add empty rule for week days when is closed |
- Returns
The documentation for this class was generated from the following file: