- Promoted filtering code to the Command base class.
- Added filtering short-circuit.
This commit is contained in:
Paul Beckingham 2011-06-19 10:25:53 -04:00
parent db17536266
commit 7762ee2f9e
14 changed files with 79 additions and 173 deletions

View file

@ -29,7 +29,9 @@
#define L10N // Localization complete.
#include <map>
#include <vector>
#include <string>
#include <Task.h>
class Command
{
@ -49,6 +51,8 @@ public:
bool displays_id () const;
virtual int execute (std::string&) = 0;
void filter (std::vector <Task>&, std::vector <Task>&);
protected:
std::string _keyword;
std::string _usage;