1 #ifndef VALIDPARAMETERS_H
2 #define VALIDPARAMETERS_H
8 * Created by Sarah Westcott on 1/5/09.
9 * Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
14 #include "mothurout.h"
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.
21 class ValidParameters {
25 ValidParameters(string);
27 //bool isValidParameter(string, string, string) {return true;}
28 bool isValidParameter(string, vector<string>, string);
29 vector <string> addParameters(string[], int);
30 void initParameterRanges();
31 string validFile(map<string, string>&, string, bool); //container, parameter, isFile, commandName
34 map<string, string>::iterator it;
35 map<string, vector<string> > parameterRanges;