Commands
- Promoted filtering code to the Command base class. - Added filtering short-circuit.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user