Implement "Negate" header.

This commit is contained in:
Gunnar Beutner 2013-03-10 15:27:55 +01:00
parent dc27ddaada
commit fd6deeeee6
1 changed files with 7 additions and 0 deletions

View File

@ -113,6 +113,13 @@ Query::Query(const vector<String>& lines)
}
filters.push_back(filter);
} else if (header == "Negate") {
if (!filters.empty()) {
Filter::Ptr filter = filters.back();
filters.pop_back();
filters.push_back(boost::make_shared<NegateFilter>(filter));
}
}
}