+++ /dev/null
-#ifndef ENGINE_HPP
-#define ENGINE_HPP
-
-/*
- * engine.hpp
- *
- *
- * Created by Pat Schloss on 8/15/08.
- * Copyright 2008 Patrick D. Schloss. All rights reserved.
- *
- */
-
-
-
-#include "mothur.h"
-#include "commandoptionparser.hpp"
-#include "command.hpp"
-#include "commandfactory.hpp"
-#include "mothurout.h"
-
-class Engine {
-public:
- Engine();
- virtual ~Engine(){}
- virtual bool getInput() = 0;
- virtual string getCommand();
- virtual string getOutputDir() { return cFactory->getOutputDir(); }
- virtual string getLogFileName() { return cFactory->getLogfileName(); }
- virtual bool getAppend() { return cFactory->getAppend(); }
-
- vector<string> getOptions() { return options; }
-protected:
- vector<string> options;
- CommandFactory* cFactory;
- MothurOut* mout;
- string findMothursPath();
-};
-
-
-
-class BatchEngine : public Engine {
-public:
- BatchEngine(string, string);
- ~BatchEngine();
- virtual bool getInput();
- int openedBatch;
-private:
- ifstream inputBatchFile;
- string getNextCommand(ifstream&);
-
-};
-
-
-
-class InteractEngine : public Engine {
-public:
- InteractEngine(string);
- ~InteractEngine();
- virtual bool getInput();
-private:
-
-};
-
-
-class ScriptEngine : public Engine {
-public:
- ScriptEngine(string, string);
- ~ScriptEngine();
- virtual bool getInput();
- int openedBatch;
-private:
- string listOfCommands;
- string getNextCommand(string&);
-
-};
-
-
-#endif