CmdStart: Identified need for splitInterval

This commit is contained in:
Paul Beckingham 2016-04-28 00:00:38 -04:00
parent fe60f5ccfe
commit a84ee1ba3c

View file

@ -49,7 +49,16 @@ int CmdStart (
// Update database.
database.modifyInterval (latest, modified);
/*
// TODO There is no 1:N modifyInterval.
datebase.deleteInterval (latest);
// TODO Create and populate a Timeline.
for (auto& fragment : splitInterval (modified, ?))
database.addInterval (fragment);
*/
// TODO intervalSummarїze needs to operate on a vector of similar intervals.
// User feedback.
if (rules.getBoolean ("verbose"))
std::cout << intervalSummarize (rules, modified);