X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=validparameter.h;h=04d201d2c62152ec9f50cd5fce17d35b30d7b41e;hp=e0477aab0e9c1f39ffa19c836ef960de2c0e2bfa;hb=cf9987b67aa49777a4c91c2d21f96e58bf17aa82;hpb=58cf1d08fee8c64334979075fa57bcafb035a2ed diff --git a/validparameter.h b/validparameter.h index e0477aa..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,10 +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; };