Exclusion: Added range generation for 'day on' and 'day off'

This commit is contained in:
Paul Beckingham 2016-04-18 23:08:36 -04:00
parent 71f442131c
commit 469bfdbf0a
2 changed files with 45 additions and 3 deletions

View file

@ -28,6 +28,7 @@
#define INCLUDED_EXCLUSION
#include <Interval.h>
#include <Daterange.h>
#include <vector>
#include <string>
@ -37,12 +38,15 @@ public:
Exclusion () = default;
void initialize (const std::string&);
std::vector <std::string> tokens () const;
std::vector <Daterange> ranges (const Daterange&) const;
bool additive () const;
std::string serialize () const;
std::string dump () const;
private:
std::vector <std::string> _tokens;
std::vector <std::string> _tokens {};
bool _additive {false};
};
#endif