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

Method GetExceptionStatus

libs/transit/transit_schedule.cpp:215–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213}
214
215Status DateException::GetExceptionStatus(Date const & date) const
216{
217 auto const & [dateExc, isOpen] = Extract();
218
219 if (GetDatesRelation(date, dateExc) == DateTimeRelation::Equal)
220 return isOpen ? Status::Open : Status::Closed;
221
222 return Status::Unknown;
223}
224
225// TimeInterval ------------------------------------------------------------------------------------
226TimeInterval::TimeInterval(gtfs::Time const & startTime, gtfs::Time const & endTime)

Callers 2

GetStatusMethod · 0.80
GetFrequencyMethod · 0.80

Calls 1

GetDatesRelationFunction · 0.85

Tested by

no test coverage detected