]> git.donarmstrong.com Git - mothur.git/blob - validcalculator.h
Initial revision
[mothur.git] / validcalculator.h
1 /*
2  *  validcalculator.h
3  *  Dotur
4  *
5  *  Created by Sarah Westcott on 1/5/09.
6  *  Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
7  *
8  */
9 using namespace std;
10
11 #include <Carbon/Carbon.h>
12 #include <string>
13 #include <iostream>
14 #include <map>
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                 void initialSingle();
35                 void initialShared();
36                 void initialRarefaction();
37                 void initialSharedRarefact();
38                 void initialSummary();
39                 void initialSharedSummary();
40                 
41                 
42 };