Enhancement - Context::constructFilter

- After parsing the command line, a filter is now constructed.
This commit is contained in:
Paul Beckingham 2009-06-10 22:11:38 -04:00
parent df38d5aaa0
commit 8bef5a90cd
2 changed files with 11 additions and 0 deletions

View file

@ -435,6 +435,16 @@ std::cout << "# parse post-termination description '" << *arg << "'" << std::end
if (validDescription (descCandidate))
task.set ("description", descCandidate);
constructFilter ();
}
////////////////////////////////////////////////////////////////////////////////
// Add all the attributes in the task to the filter.
void Context::constructFilter ()
{
foreach (att, task)
filter.push_back (att->second);
}
////////////////////////////////////////////////////////////////////////////////

View file

@ -57,6 +57,7 @@ public:
private:
void loadCorrectConfigFile ();
void parse ();
void constructFilter ();
public:
Config config;