MCPcopy Create free account
hub / github.com/comaps/comaps / IsValid

Method IsValid

libs/editor/opening_hours_ui.cpp:219–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217}
218
219bool 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
237osmoh::Timespan TimeTable::GetPredefinedOpeningTime() const
238{

Callers 1

Calls 3

FixTimeSpansFunction · 0.85
emptyMethod · 0.45
IsEmptyMethod · 0.45

Tested by

no test coverage detected