Datafile: Exclusions now provided at a vector

This commit is contained in:
Paul Beckingham 2016-04-10 16:56:31 -04:00
parent b29f458a7b
commit a65f4c3fd2
2 changed files with 6 additions and 2 deletions

View file

@ -75,8 +75,9 @@ std::vector <Interval> Datafile::getAllIntervals ()
}
////////////////////////////////////////////////////////////////////////////////
void Datafile::addExclusion (const std::string& exclusion)
void Datafile::setExclusions (const std::vector <std::string>& exclusions)
{
_exclusions = exclusions;
_dirty = true;
}

View file

@ -42,7 +42,7 @@ public:
Interval getLatestInterval ();
std::vector <Interval> getAllIntervals ();
void addExclusion (const std::string&);
void setExclusions (const std::vector <std::string>&);
void addInterval (const Interval&);
void modifyInterval (const Interval&);
@ -69,6 +69,9 @@ private:
std::vector <Interval> _intervals {};
bool _intervals_loaded {false};
// Exclusions fed from Database.
std::vector <std::string> _exclusions {};
Datetime _day1 {0};
Datetime _dayN {0};
};