mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Commands
- Modified command object design.
This commit is contained in:
parent
a7c3858729
commit
638fcd8ca0
4 changed files with 26 additions and 4 deletions
|
@ -36,12 +36,13 @@ public:
|
|||
Command (const Command&);
|
||||
Command& operator= (const Command&);
|
||||
bool operator== (const Command&) const; // TODO Is this necessary?
|
||||
~Command ();
|
||||
virtual ~Command ();
|
||||
|
||||
static Command* factory (const std::string&);
|
||||
|
||||
bool implements (const std::string&) const;
|
||||
std::string execute (const std::string&);
|
||||
virtual bool read_only () const;
|
||||
virtual bool implements (const std::string&) const = 0;
|
||||
virtual std::string execute (const std::string&) = 0;
|
||||
|
||||
private:
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue