]> git.donarmstrong.com Git - mothur.git/blob - validparameter.h
updated errorchecking so it checks if the parameter is valid for the command.
[mothur.git] / validparameter.h
1 #ifndef VALIDPARAMETERS_H
2 #define VALIDPARAMETERS_H
3
4 /*
5  *  validparameter.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 parameters in Mothur.  
17 //It has a function which will tell you if your parameter is valid.
18 //When adding a new parameter you must add it to the valid list in the class constructor.
19
20
21 class ValidParameters {
22
23         public:
24                 ValidParameters();
25                 ~ValidParameters();
26                 bool isValidParameter(string, string);
27                 
28         private:
29                 map<string, string> readdist;
30                 map<string, string> readotu;
31                 map<string, string> readtree;
32                 map<string, string> cluster;
33                 map<string, string> deconvolute;
34                 map<string, string> parsimony;
35                 map<string, string> collectsingle;
36                 map<string, string> collectshared;
37                 map<string, string> rarefactsingle;
38                 map<string, string> rarefactshared;
39                 map<string, string> summarysingle;
40                 map<string, string> summaryshared;
41                 map<string, string> unifracweighted;
42                 map<string, string> unifracunweighted;
43                 map<string, string> libshuff;
44                 
45                 map<string, string>::iterator it;
46                 
47                 void initialReaddist();
48                 void initialReadotu();
49                 void initialReadtree();
50                 void initialCluster();
51                 void initialDeconvolute();
52                 void initialParsimony();
53                 void initialCollectsingle();
54                 void initialCollectshared();
55                 void initialRarefactsingle();
56                 void initialRarefactshared();
57                 void initialSummarysingle();
58                 void initialSummaryshared();
59                 void initialUnifracweighted();
60                 void initialUnifracunweighted();
61                 void initialLibshuff();
62
63 };
64
65 #endif