5 * Created by Sarah Westcott on 1/5/09.
6 * Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
10 #include "validparameter.h"
12 /***********************************************************************/
14 ValidParameters::ValidParameters() {
17 parameters["distfile"] = "distfile";
18 parameters["listfile"] = "listfile";
19 parameters["rabundfile"] = "rabundfile";
20 parameters["sabundfile"] = "sabundfile";
21 parameters["namefile"] = "namefile";
22 parameters["groupfile"] = "groupfile";
23 parameters["orderfile"] = "orderfile";
24 parameters["fileroot"] = "fileroot";
25 parameters["cutoff"] = "cutoff";
26 parameters["method"] = "method";
27 parameters["format"] = "format";
28 parameters["precision"] = "precision";
29 parameters["label"] = "label";
30 parameters["line"] = "line";
31 parameters["iters"] = "iters";
32 parameters["jumble"] = "jumble";
33 parameters["freq"] = "freq";
34 parameters["single"] = "single";
35 parameters["rarefaction"] = "rarefaction";
36 parameters["sharedrarefaction"] = "sharedrarefaction";
37 parameters["shared"] = "shared";
38 parameters["summary"] = "summary";
39 parameters["sharedsummary"] = "sharedsummary";
43 cout << "Standard Error: " << e.what() << " has occurred in the ValidParameters class Function ValidParameters. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
47 cout << "An unknown error has occurred in the ValidParameters class function ValidParameters. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
52 /***********************************************************************/
54 ValidParameters::~ValidParameters() {}
56 /***********************************************************************/
57 bool ValidParameters::isValidParameter(string parameter) {
60 //is the parameter in the map
61 if ((parameters.find(parameter)) != (parameters.end())) {
64 cout << parameter << " is not a valid parameter in Mothur." << endl;
70 cout << "Standard Error: " << e.what() << " has occurred in the ValidParameters class Function isValidParameter. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
74 cout << "An unknown error has occurred in the ValidParameters class function isValidParameter. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
79 /***********************************************************************/