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;
43 class BatchEngine : public Engine {
45 BatchEngine(string, string);
47 virtual bool getInput();
50 GlobalData* globaldata;
51 ifstream inputBatchFile;
52 string getNextCommand(ifstream&);
58 class InteractEngine : public Engine {
60 InteractEngine(string);
62 virtual bool getInput();
64 GlobalData* globaldata;
68 class ScriptEngine : public Engine {
70 ScriptEngine(string, string);
72 virtual bool getInput();
75 GlobalData* globaldata;
76 string listOfCommands;
77 string getNextCommand(string&);