Datafile: Implemented ::getAllIntervals

This commit is contained in:
Paul Beckingham 2016-03-21 18:52:59 -04:00
parent f2b4cc5873
commit 03e21073fb

View file

@ -68,8 +68,10 @@ std::vector <Interval> Datafile::getAllIntervalsSince (Datetime)
////////////////////////////////////////////////////////////////////////////////
std::vector <Interval> Datafile::getAllIntervals ()
{
// TODO Load data
return {};
if (! _intervals_loaded)
load_intervals ();
return _intervals;
}
////////////////////////////////////////////////////////////////////////////////