Expressions

- Many operators implemented
- DOM::get partially implemented
This commit is contained in:
Paul Beckingham 2011-06-17 01:00:03 -04:00
parent 4fca40fc69
commit c77c6f172f
6 changed files with 315 additions and 101 deletions

View file

@ -92,7 +92,7 @@ int CmdCustom::execute (std::string& output)
context.tdb.commit ();
context.tdb.unlock ();
////////////////////////////////////
// Filter.
Arguments f = context.args.extract_read_only_filter ();
Expression e (f);
@ -102,12 +102,6 @@ int CmdCustom::execute (std::string& output)
if (e.eval (*task))
filtered.push_back (*task);
std::cout << "# tasks=" << tasks.size () << "\n"
<< "# filtered=" << filtered.size () << "\n";
//return 0;
////////////////////////////////////
// Sort the tasks.
std::vector <int> sequence;
for (unsigned int i = 0; i < filtered.size (); ++i)