class Engine {
public:
- Engine() { cFactory = new CommandFactory(); }
- virtual ~Engine(){ delete cFactory; }
+ Engine();
+ virtual ~Engine(){}
virtual bool getInput() = 0;
-// string getCommand() { return command; }
- vector<string> getOptions() { return options; }
- virtual void terminateCommand(int);
+ virtual string getCommand();
+ virtual string getOutputDir() { return cFactory->getOutputDir(); }
+ vector<string> getOptions() { return options; }
protected:
-// string command;
vector<string> options;
CommandFactory* cFactory;
};
virtual bool getInput();
private:
GlobalData* globaldata;
- vector<string> previousInputs; //this is used to make the arrow keys work
-
};