]> git.donarmstrong.com Git - mothur.git/blobdiff - engine.hpp
fixed bug in libshuff
[mothur.git] / engine.hpp
index c04cd4ed69306116f7eb72e64bf5fd2e01d92015..603ff0a1c65fa528439b7a8f456991ae600c26ef 100644 (file)
 
 
 #include "mothur.h"
-
-using namespace std;
+#include "globaldata.hpp"
+#include "commandoptionparser.hpp"
+#include "command.hpp"
+#include "commandfactory.hpp"
 
 class GlobalData;
 
@@ -33,7 +35,7 @@ protected:
 
 class BatchEngine : public Engine {
 public:
-       BatchEngine(string);
+       BatchEngine(string, string);
        ~BatchEngine();
        virtual bool getInput();
        int openedBatch;
@@ -47,7 +49,7 @@ private:
 
 class InteractEngine : public Engine {
 public:
-       InteractEngine();
+       InteractEngine(string);
        ~InteractEngine();
        virtual bool getInput();
 private:
@@ -55,4 +57,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