]> git.donarmstrong.com Git - mothur.git/blob - validcalculator.h
added read.shared, broke up globaldata a bit
[mothur.git] / validcalculator.h
1 #ifndef VALIDCALCULATOR_H
2 #define VALIDCALCULATOR_H
3
4 /*
5  *  validcalculator.h
6  *  Dotur
7  *
8  *  Created by Sarah Westcott on 1/5/09.
9  *  Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
10  *
11  */
12 using namespace std;
13
14 #include <string>
15 #include <iostream>
16 #include <map>
17
18 //This class contains a list of all valid calculators in Mothur.  
19 //It has a function which will tell you if your calculator is valid for the given parameter.
20 //When adding a new calculator you must add it to the valid list.
21
22
23 class ValidCalculators {
24         public:
25                 ValidCalculators();
26                 ~ValidCalculators();
27                 bool isValidCalculator(string, string);
28                 
29         private:
30                 map<string, string> single;
31                 map<string, string> shared;
32                 map<string, string> rarefaction;
33                 map<string, string> summary;
34                 map<string, string> sharedrarefaction;
35                 map<string, string> sharedsummary;
36                 map<string, string>::iterator it;
37                 
38                 void initialSingle();
39                 void initialShared();
40                 void initialRarefaction();
41                 void initialSharedRarefact();
42                 void initialSummary();
43                 void initialSharedSummary();
44 };
45
46 #endif