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