]> git.donarmstrong.com Git - mothur.git/blobdiff - engine.hpp
added list parameter to get.seqs and remove.seqs and added readline library for inter...
[mothur.git] / engine.hpp
index d169905b54d5364a6e4819b109372c708513defd..3aabf13de009dac3205d00c130d734d98de88dda 100644 (file)
@@ -22,13 +22,15 @@ class GlobalData;
 
 class Engine {
 public:
-       virtual ~Engine(){};
+       Engine() {  cFactory = new CommandFactory();    }
+       virtual ~Engine(){  delete cFactory;  }
        virtual bool getInput() = 0;
-//     string getCommand()                     {       return command;         }
+       virtual string getCommand();
        vector<string> getOptions() {   return options;         }
+       virtual void terminateCommand(int);
 protected:
-//     string command;
        vector<string> options;
+       CommandFactory* cFactory;
 };
 
 
@@ -57,4 +59,18 @@ private:
 };
 
 
+class ScriptEngine : public Engine {
+public:
+       ScriptEngine(string, string);
+       ~ScriptEngine();
+       virtual bool getInput();
+       int openedBatch;
+private:
+       GlobalData* globaldata;
+       string listOfCommands;
+       string getNextCommand(string&);
+
+};
+
+
 #endif