]> git.donarmstrong.com Git - mothur.git/blob - validparameter.h
broke up globaldata and moved error checking and help into commands
[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
13 #include "mothur.h"
14
15 //This class contains a list of all valid parameters in Mothur.  
16 //It has a function which will tell you if your parameter is valid.
17 //When adding a new parameter you must add it to the valid list in the class constructor.
18
19
20 class ValidParameters {
21
22         public:
23                 ValidParameters();
24                 ~ValidParameters();
25                 //bool isValidParameter(string, string, string) {return true;}
26                 bool isValidParameter(string, vector<string>, string);
27                 vector <string> addParameters(string[], int);
28                 void initParameterRanges();
29                 string validFile(map<string, string>, string, bool); //container, parameter, isFile
30
31         private:
32                 map<string, string>::iterator it;
33                 map<string, vector<string> > parameterRanges;
34
35 };
36
37 #endif