X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=validparameter.h;h=04d201d2c62152ec9f50cd5fce17d35b30d7b41e;hb=1a968f34ae2d2680eaf189a197d1a21b8dfd6c03;hp=ff886efa6294f20e3ab53666a448afbe4db8ff07;hpb=74c78f9abd9e733f0c2f812efec97a76632fcbf8;p=mothur.git diff --git a/validparameter.h b/validparameter.h index ff886ef..04d201d 100644 --- a/validparameter.h +++ b/validparameter.h @@ -11,6 +11,7 @@ */ #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. @@ -21,17 +22,19 @@ class ValidParameters { public: ValidParameters(); + ValidParameters(string); ~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, commandName private: map::iterator it; - map > commandParameters; map > parameterRanges; + MothurOut* m; + string commandName; };