zcmdcat: Initial infrastructure.

This commit is contained in:
Daniel Shahaf 2015-07-20 02:38:59 +00:00 committed by Paul Beckingham
parent f5571c80c6
commit 8eb965d71d
2 changed files with 33 additions and 1 deletions

View file

@ -47,8 +47,24 @@ public:
bool displays_id () const;
virtual int execute (std::string&) = 0;
enum class Category
{
unassigned,
interrogator,
report,
operation,
graphs,
config,
migration,
misc,
internal,
// Whenever you extend this enum, update categoryNames.
};
Category _category;
protected:
bool permission (const Task&, const std::string&, unsigned int);
static const std::map <Command::Category, std::string> categoryNames;
protected:
std::string _keyword;