Report Filters

- Report filters are now properly loaded and injected into the argument
  list.
This commit is contained in:
Paul Beckingham 2011-06-25 21:56:57 -04:00
parent b58438bdd4
commit 42ead6b34d
4 changed files with 47 additions and 3 deletions

View file

@ -82,6 +82,13 @@ int CmdCustom::execute (std::string& output)
split (sortOrder, reportSort, ',');
validateSortColumns (sortOrder);
// Prepend the argument list with those from the report filter.
std::vector <std::string> filterArgs;
split (filterArgs, reportFilter, ' ');
std::vector <std::string>::iterator arg;
for (arg = filterArgs.begin (); arg != filterArgs.end (); ++ arg)
context.args.capture_first (*arg);
// Load the data.
// TODO Replace with TDB2.
std::vector <Task> tasks;