Enhancement - history report

- Implemented history report.
- Improved (not to the point of them working) filters.
- Improved automatic filter construction.
- Removed obsolete members from Task.
- Added tag support to the "add" command.
This commit is contained in:
Paul Beckingham
2009-06-14 12:09:57 -04:00
parent 85e38e67d3
commit 9f6b112003
7 changed files with 89 additions and 111 deletions

View File

@@ -25,6 +25,7 @@
//
////////////////////////////////////////////////////////////////////////////////
#include <iostream> // TODO Remove
#include <sstream>
#include "Filter.h"
#include "util.h"
@@ -41,6 +42,8 @@ bool Filter::pass (const Record& record) const
// but it doesn't match, fail.
foreach (att, (*this))
{
// TODO std::cout << "Filter::pass " << att->name () << "=" << att->value () << std::endl;
// If the record doesn't have the attribute, match against a default one.
// This is because "att" may contain a modifier like "name.not:X".
if ((r = record.find (att->name ())) == record.end ())