X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=validparameter.h;h=04d201d2c62152ec9f50cd5fce17d35b30d7b41e;hb=3914b0d6480f67df53b1e838f51c4e6155710434;hp=c03c034f41b6308b4945753147abda65cddf48d7;hpb=bfbc55964f1977da72c2cea984288a427d370a59;p=mothur.git diff --git a/validparameter.h b/validparameter.h index c03c034..04d201d 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. @@ -22,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; };