Code Reorganization

- Added the ability for a command to specify it's own pirmary keyword.
This commit is contained in:
Paul Beckingham 2011-05-23 20:23:53 -04:00
parent f8b44b68d7
commit f53d509930
9 changed files with 128 additions and 1 deletions

View file

@ -40,6 +40,7 @@ public:
static Command* factory (const std::string&);
std::string keyword () const;
std::string usage () const;
std::string description () const;
bool read_only () const;
@ -48,6 +49,7 @@ public:
virtual int execute (const std::string&, std::string&) = 0;
protected:
std::string _keyword;
std::string _usage;
std::string _description;
bool _read_only;