From 03e21073fb220ca96737327e9c2330b95b78500f Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Mon, 21 Mar 2016 18:52:59 -0400 Subject: [PATCH] Datafile: Implemented ::getAllIntervals --- src/Datafile.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Datafile.cpp b/src/Datafile.cpp index a1909cb7..9745961c 100644 --- a/src/Datafile.cpp +++ b/src/Datafile.cpp @@ -68,8 +68,10 @@ std::vector Datafile::getAllIntervalsSince (Datetime) //////////////////////////////////////////////////////////////////////////////// std::vector Datafile::getAllIntervals () { - // TODO Load data - return {}; + if (! _intervals_loaded) + load_intervals (); + + return _intervals; } ////////////////////////////////////////////////////////////////////////////////