| 217 | } |
| 218 | |
| 219 | bool TimeTable::IsValid() const |
| 220 | { |
| 221 | if (m_weekdays.empty()) |
| 222 | return false; |
| 223 | |
| 224 | if (!IsTwentyFourHours()) |
| 225 | { |
| 226 | if (m_openingTime.IsEmpty()) |
| 227 | return false; |
| 228 | |
| 229 | auto copy = GetExcludeTime(); |
| 230 | if (!FixTimeSpans(m_openingTime, copy)) |
| 231 | return false; |
| 232 | } |
| 233 | |
| 234 | return true; |
| 235 | } |
| 236 | |
| 237 | osmoh::Timespan TimeTable::GetPredefinedOpeningTime() const |
| 238 | { |
no test coverage detected