]> git.donarmstrong.com Git - mothur.git/blob - engine.hpp
added mothur.h and fixed includes in many files
[mothur.git] / engine.hpp
1 #ifndef ENGINE_HPP
2 #define ENGINE_HPP
3
4 /*
5  *  engine.hpp
6  *  
7  *
8  *  Created by Pat Schloss on 8/15/08.
9  *  Copyright 2008 Patrick D. Schloss. All rights reserved.
10  *
11  */
12  
13
14
15 #include "mothur.h"
16
17 using namespace std;
18
19 class GlobalData;
20
21 class Engine {
22 public:
23         virtual ~Engine(){};
24         virtual bool getInput() = 0;
25 //      string getCommand()                     {       return command;         }
26         vector<string> getOptions() {   return options;         }
27 protected:
28 //      string command;
29         vector<string> options;
30 };
31
32
33
34 class BatchEngine : public Engine {
35 public:
36         BatchEngine(string);
37         ~BatchEngine();
38         virtual bool getInput();
39         int openedBatch;
40 private:
41         GlobalData* globaldata;
42         ifstream inputBatchFile;
43
44 };
45
46
47
48 class InteractEngine : public Engine {
49 public:
50         InteractEngine();
51         ~InteractEngine();
52         virtual bool getInput();
53 private:
54         GlobalData* globaldata;
55 };
56
57
58 #endif