| 15 | osmoh::Timespan const kTwentyFourHours = {0_h, 24_h}; |
| 16 | |
| 17 | editor::ui::OpeningDays MakeOpeningDays(osmoh::Weekdays const & wds) |
| 18 | { |
| 19 | std::set<osmoh::Weekday> openingDays; |
| 20 | for (auto const & wd : wds.GetWeekdayRanges()) |
| 21 | { |
| 22 | if (wd.HasSunday()) |
| 23 | openingDays.insert(osmoh::Weekday::Sunday); |
| 24 | if (wd.HasMonday()) |
| 25 | openingDays.insert(osmoh::Weekday::Monday); |
| 26 | if (wd.HasTuesday()) |
| 27 | openingDays.insert(osmoh::Weekday::Tuesday); |
| 28 | if (wd.HasWednesday()) |
| 29 | openingDays.insert(osmoh::Weekday::Wednesday); |
| 30 | if (wd.HasThursday()) |
| 31 | openingDays.insert(osmoh::Weekday::Thursday); |
| 32 | if (wd.HasFriday()) |
| 33 | openingDays.insert(osmoh::Weekday::Friday); |
| 34 | if (wd.HasSaturday()) |
| 35 | openingDays.insert(osmoh::Weekday::Saturday); |
| 36 | } |
| 37 | return openingDays; |
| 38 | } |
| 39 | |
| 40 | void SetUpWeekdays(osmoh::Weekdays const & wds, editor::ui::TimeTable & tt) |
| 41 | { |
no test coverage detected