]> git.donarmstrong.com Git - mothur.git/blob - engine.hpp
Initial revision
[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 <vector>
16 #include <set>
17 #include <string>
18
19 using namespace std;
20
21 class GlobalData;
22
23 class Engine {
24 public:
25         virtual ~Engine(){};
26         virtual bool getInput() = 0;
27 //      string getCommand()                     {       return command;         }
28         vector<string> getOptions() {   return options;         }
29 protected:
30 //      string command;
31         vector<string> options;
32 };
33
34
35
36 class BatchEngine : public Engine {
37 public:
38         BatchEngine(string);
39         ~BatchEngine();
40         virtual bool getInput();
41         int openedBatch;
42 private:
43         GlobalData* globaldata;
44         ifstream inputBatchFile;
45
46 };
47
48
49
50 class InteractEngine : public Engine {
51 public:
52         InteractEngine();
53         ~InteractEngine();
54         virtual bool getInput();
55 private:
56         GlobalData* globaldata;
57 };
58
59
60 #endif