- Added feature #710, which adds an attribute modifier prefix to return the
  complement of a filtered set (thanks to Dan White).
- Added missing description to the 'help' command.

Signed-off-by: Paul Beckingham <paul@beckingham.net>
This commit is contained in:
Dan White
2011-03-19 00:55:57 -04:00
committed by Paul Beckingham
parent 17f97651a3
commit 4b71fa73f8
10 changed files with 241 additions and 11 deletions

View File

@@ -81,12 +81,12 @@ bool Filter::pass (const Record& record) const
// are willing to invest a week understanding and testing it.
if (att->modType (att->mod ()) == "positive")
{
if (! (pass || annotation_pass_count))
if (! att->logicSense (pass || annotation_pass_count))
return false;
}
else
{
if (! (pass && annotation_fail_count == 0))
if (! att->logicSense (pass && annotation_fail_count == 0))
return false;
}
}
@@ -102,7 +102,7 @@ bool Filter::pass (const Record& record) const
// An individual attribute match failure is enough to fail the filter.
if ((r = record.find (att->name ())) != record.end ())
{
if (! att->match (r->second))
if (! att->logicSense (att->match (r->second)))
return false;
}
else if (! att->match (Att ()))