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