Enhancement - Context::constructFilter
- After parsing the command line, a filter is now constructed.
This commit is contained in:
@@ -435,6 +435,16 @@ std::cout << "# parse post-termination description '" << *arg << "'" << std::end
|
|||||||
|
|
||||||
if (validDescription (descCandidate))
|
if (validDescription (descCandidate))
|
||||||
task.set ("description", 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);
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|||||||
@@ -57,6 +57,7 @@ public:
|
|||||||
private:
|
private:
|
||||||
void loadCorrectConfigFile ();
|
void loadCorrectConfigFile ();
|
||||||
void parse ();
|
void parse ();
|
||||||
|
void constructFilter ();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Config config;
|
Config config;
|
||||||
|
|||||||
Reference in New Issue
Block a user