Enhancements - modifiers

- Now only allows one modifier.
- Removed "not", "synth", "next", "first", "last" modifiers.
- Modified match logic.
This commit is contained in:
Paul Beckingham 2009-06-12 21:11:33 -04:00
parent 5a0535c9b5
commit bd0309b4ff
6 changed files with 160 additions and 153 deletions

View file

@ -430,6 +430,15 @@ void Task::removeTag (const std::string& tag)
////////////////////////////////////////////////////////////////////////////////
void Task::validate () const
{
// Every task needs an ID.
/*
if (sequence[0] == 0)
throw std::string ("Every task needs an ID.");
*/
// TODO Every task needs an ID, entry and description attribute.
// TODO Verify until > due
// TODO Verify entry < until, due, start, end
// TODO If name == "recur", then Duration::valid (value).