Filter, Timeline: Converted from a pair of Datetime objects to a Daterange

This commit is contained in:
Paul Beckingham 2016-04-17 18:20:41 -04:00
parent 590aab02b9
commit a4ed7c9def
6 changed files with 48 additions and 72 deletions

View file

@ -49,15 +49,9 @@
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
void Timeline::start (const Datetime& when)
void Timeline::range (const Daterange& range)
{
_range.start (when);
}
////////////////////////////////////////////////////////////////////////////////
void Timeline::end (const Datetime& when)
{
_range.end (when);
_range = range;
}
////////////////////////////////////////////////////////////////////////////////
@ -102,7 +96,7 @@ std::string Timeline::dump () const
{
std::stringstream out;
out << "Timeline _range " << _range.dump ();
out << "Timeline _range " << _range.start ().toISO () << " - " << _range.end ().toISO () << "\n";
for (auto& i : _inclusions)
out << " " << i.dump ();
for (auto& e : _exclusions)