X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=validparameter.h;h=9aeafa23a6b03f619393cc502e2c1fade566ee2a;hb=86b6cc7ce1ec7fce12cdfdd6225de4dee7cfbdbf;hp=30ba46105cc4fc0585283493878f2bab8931bffd;hpb=c5c7502f435e1413c19e373dab1dfebcaa67588d;p=mothur.git diff --git a/validparameter.h b/validparameter.h index 30ba461..9aeafa2 100644 --- a/validparameter.h +++ b/validparameter.h @@ -9,9 +9,9 @@ * Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved. * */ -using namespace std; #include "mothur.h" +#include "mothurout.h" //This class contains a list of all valid parameters in Mothur. //It has a function which will tell you if your parameter is valid. @@ -23,33 +23,16 @@ class ValidParameters { public: ValidParameters(); ~ValidParameters(); - bool isValidParameter(string); - bool isValidParameter(string, string, string); + //bool isValidParameter(string, string, string) {return true;} + bool isValidParameter(string, vector, string); vector addParameters(string[], int); - void initCommandParameters(); void initParameterRanges(); + string validFile(map, string, bool); //container, parameter, isFile private: - map readdist; - map readotu; - map readtree; - map cluster; - map deconvolute; - map parsimony; - map collectsingle; - map collectshared; - map rarefactsingle; - map rarefactshared; - map summarysingle; - map summaryshared; - map unifracweighted; - map unifracunweighted; - map libshuff; - map heatmap; - map::iterator it; - map > commandParameters; map > parameterRanges; + MothurOut* m; };