1 #ifndef ERRORCHECKING_H
2 #define ERRORCHECKING_H
7 * Created by Sarah Westcott on 1/2/09.
8 * Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
14 #include "globaldata.hpp"
15 #include "validcommands.h"
16 #include "validparameter.h"
17 #include "utilities.hpp"
23 bool checkInput(string);
26 GlobalData* globaldata;
27 ValidCommands* validCommand;
28 ValidParameters* validParameter;
29 void validateReadFiles();
30 bool validCommandParameter(string, string);
31 bool validParameterValue(string, string);
32 void validateReadDist();
33 void validateReadPhil();
34 void validateParseFiles();
35 void validateTreeFiles();
38 string phylipfile, columnfile, listfile, rabundfile, sabundfile, namefile, groupfile, orderfile, fastafile, treefile, sharedfile, cutoff, format;
39 string precision, method, fileroot, label, line, iters, jumble, freq, single, rarefaction, shared, summary, randomtree, abund;
40 string commandName, optionText;
43 vector<string> sharedGroups;
44 map <string, vector<string> > commandParameters;
45 map <string, vector<double> > intParams;