8 * Created by Pat Schloss on 8/15/08.
9 * Copyright 2008 Patrick D. Schloss. All rights reserved.
16 #include "globaldata.hpp"
17 #include "commandoptionparser.hpp"
18 #include "command.hpp"
19 #include "commandfactory.hpp"
20 #include "mothurout.h"
28 virtual bool getInput() = 0;
29 virtual string getCommand();
30 virtual string getOutputDir() { return cFactory->getOutputDir(); }
31 virtual string getLogFileName() { return cFactory->getLogfileName(); }
32 virtual bool getAppend() { return cFactory->getAppend(); }
34 vector<string> getOptions() { return options; }
36 vector<string> options;
37 CommandFactory* cFactory;
39 string findMothursPath();
44 class BatchEngine : public Engine {
46 BatchEngine(string, string);
48 virtual bool getInput();
51 GlobalData* globaldata;
52 ifstream inputBatchFile;
53 string getNextCommand(ifstream&);
59 class InteractEngine : public Engine {
61 InteractEngine(string);
63 virtual bool getInput();
65 GlobalData* globaldata;
69 class ScriptEngine : public Engine {
71 ScriptEngine(string, string);
73 virtual bool getInput();
76 GlobalData* globaldata;
77 string listOfCommands;
78 string getNextCommand(string&);