diff --git a/src/Timeline.cpp b/src/Timeline.cpp index ef91c636..c7454bca 100644 --- a/src/Timeline.cpp +++ b/src/Timeline.cpp @@ -69,14 +69,36 @@ void Timeline::exclude (const Exclusion& exclusion) //////////////////////////////////////////////////////////////////////////////// std::vector Timeline::tracked (Rules& rules) const { + // TODO Create a range representing the whole timeline. + + // TODO Intersect this range with the outer range of all inclusions. + + // TODO Obtain holidays. + // TODO for each exclusion: + // TODO if "exc day off ": + // TODO add as a holiday. + // TODO if "exc day on ": + // TODO if matches a holiday: + // TODO remove as a holiday + + // TODO for each inclusion: + // TODO for each holiday: + // TODO intersect intelligently. + + // TODO for each exclusion: + // TODO generate a set of ranges to exclude. + // TODO for each excluded range: + // TODO intersect intelligently. + + // TODO Return results, which should be the stored inclusions, clipped by + // subtracting all the exclusions nad holidays. + /* std::vector combined; - // TODO Combine _inclusions and _exclusions to yield a set of collapsed - // intervals. - return combined; */ + return _inclusions; }