msh-console/msh-console-library/commandexecutor.h

20 lines
465 B
C++

#ifndef COMMANDEXECUTOR_H
#define COMMANDEXECUTOR_H
#include <vector>
#include <string>
namespace mshconsole{
class CommandExecutor
{
protected:
class ExitException {};
public:
virtual int executeCmd(std::vector<std::string>* args) = 0;
virtual int executeCmd(const std::string& args) = 0;
virtual size_t howManyCmds() const = 0;
void exit();
CommandExecutor();
};
}
#endif // COMMANDEXECUTOR_H