mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-06-26 10:54:28 +02:00
Exclusion: Added range generation for 'day on' and 'day off'
This commit is contained in:
parent
71f442131c
commit
469bfdbf0a
2 changed files with 45 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue