X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=sidebyside;f=validparameter.cpp;h=6d325f7ccc8c7dd2d51a72c787d84f4902f7ce74;hb=485c02be0cdcd06ce08dd58d551a525b6a1b47c5;hp=61fd0445e81f9ae277f3c54f9c69ce313646e66d;hpb=25cde7ff05bbe741da1712f2c740e0bc8706e523;p=mothur.git diff --git a/validparameter.cpp b/validparameter.cpp index 61fd044..6d325f7 100644 --- a/validparameter.cpp +++ b/validparameter.cpp @@ -214,6 +214,18 @@ bool ValidParameters::isValidParameter(string parameter, string command) { } cout << endl; return false; } + }else if (command == "heatmap") { + //is it valid + if ((heatmap.find(parameter)) != (heatmap.end())) { + return true; + }else { + cout << parameter << " is not a valid parameter for the " + command + " command. Valid parameters are "; + for (it = heatmap.begin(); it != heatmap.end(); it++) { + cout << it->first << ", "; + } + cout << endl; + return false; } + //not a valid paramter }else if (command == "help") { cout << parameter << " is not a valid parameter for the " + command + " command. There are no vaild parameters." << endl; }else if (command == "quit") { cout << parameter << " is not a valid parameter for the " + command + " command. There are no vaild parameters." << endl; @@ -339,3 +351,9 @@ void ValidParameters::initialLibshuff() { libshuff["form"] = "form"; } /***********************************************************************/ +void ValidParameters::initialHeatmap() { + heatmap["label"] = "label"; + heatmap["line"] = "line"; +} + +/***********************************************************************/