X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=validparameter.h;h=04d201d2c62152ec9f50cd5fce17d35b30d7b41e;hp=a4dd51675445db321b6babad8a51048a11432114;hb=b206f634aae1b4ce13978d203247fb64757d5482;hpb=09a01fb51eea9e81409d367410c831394193fd86 diff --git a/validparameter.h b/validparameter.h index a4dd516..04d201d 100644 --- a/validparameter.h +++ b/validparameter.h @@ -9,11 +9,9 @@ * Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved. * */ -using namespace std; -#include -#include -#include +#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. @@ -24,11 +22,19 @@ class ValidParameters { public: ValidParameters(); + ValidParameters(string); ~ValidParameters(); - bool isValidParameter(string); + //bool isValidParameter(string, string, string) {return true;} + bool isValidParameter(string, vector, string); + vector addParameters(string[], int); + void initParameterRanges(); + string validFile(map&, string, bool); //container, parameter, isFile, commandName + private: - map parameters; map::iterator it; + map > parameterRanges; + MothurOut* m; + string commandName; };