]> git.donarmstrong.com Git - mothur.git/blob - validcalculator.h
added mothur.h and fixed includes in many files
[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 "mothur.h"
15
16 //This class contains a list of all valid calculators in Mothur.  
17 //It has a function which will tell you if your calculator is valid for the given parameter.
18 //When adding a new calculator you must add it to the valid list.
19
20
21 class ValidCalculators {
22         public:
23                 ValidCalculators();
24                 ~ValidCalculators();
25                 bool isValidCalculator(string, string);
26                 
27         private:
28                 map<string, string> single;
29                 map<string, string> shared;
30                 map<string, string> rarefaction;
31                 map<string, string> summary;
32                 map<string, string> sharedrarefaction;
33                 map<string, string> sharedsummary;
34                 map<string, string>::iterator it;
35                 
36                 void initialSingle();
37                 void initialShared();
38                 void initialRarefaction();
39                 void initialSharedRarefact();
40                 void initialSummary();
41                 void initialSharedSummary();
42 };
43
44 #endif