8 * Created by Pat Schloss on 8/15/08.
9 * Copyright 2008 Patrick D. Schloss. All rights reserved.
16 #include "commandoptionparser.hpp"
17 #include "command.hpp"
18 #include "commandfactory.hpp"
19 #include "mothurout.h"
25 virtual bool getInput() = 0;
26 virtual string getCommand();
27 virtual string getOutputDir() { return cFactory->getOutputDir(); }
28 virtual string getLogFileName() { return cFactory->getLogfileName(); }
29 virtual bool getAppend() { return cFactory->getAppend(); }
31 vector<string> getOptions() { return options; }
33 vector<string> options;
34 CommandFactory* cFactory;
40 class BatchEngine : public Engine {
42 BatchEngine(string, string);
44 virtual bool getInput();
47 ifstream inputBatchFile;
48 string getNextCommand(ifstream&);
54 class InteractEngine : public Engine {
56 InteractEngine(string);
58 virtual bool getInput();
64 class ScriptEngine : public Engine {
66 ScriptEngine(string, string);
68 virtual bool getInput();
71 string listOfCommands;
72 string getNextCommand(string&);