]> git.donarmstrong.com Git - mothur.git/blob - engine.hpp
broke up globaldata and moved error checking and help into commands
[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
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, 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(string);
53         ~InteractEngine();
54         virtual bool getInput();
55 private:
56         GlobalData* globaldata;
57 };
58
59
60 #endif