]> git.donarmstrong.com Git - mothur.git/blobdiff - engine.hpp
modified sequence class to read fasta files with comments. this required modification...
[mothur.git] / engine.hpp
index 603ff0a1c65fa528439b7a8f456991ae600c26ef..d4ec3b65a5cdd428c44967ed66ea454d7bc5b2f8 100644 (file)
@@ -22,13 +22,16 @@ class GlobalData;
 
 class Engine {
 public:
-       virtual ~Engine(){};
+       Engine() {  cFactory = new CommandFactory();    }
+       virtual ~Engine(){  delete cFactory;  }
        virtual bool getInput() = 0;
 //     string getCommand()                     {       return command;         }
        vector<string> getOptions() {   return options;         }
+       virtual void terminateCommand(int);
 protected:
 //     string command;
        vector<string> options;
+       CommandFactory* cFactory;
 };
 
 
@@ -54,6 +57,8 @@ public:
        virtual bool getInput();
 private:
        GlobalData* globaldata;
+       vector<string> previousInputs; //this is used to make the arrow keys work
+       
 };