]> git.donarmstrong.com Git - mothur.git/blob - errorchecking.h
added mothur.h and fixed includes in many files
[mothur.git] / errorchecking.h
1 #ifndef ERRORCHECKING_H
2 #define ERRORCHECKING_H
3 /*
4  *  errorchecking.h
5  *  Dotur
6  *
7  *  Created by Sarah Westcott on 1/2/09.
8  *  Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
9  *
10  */
11
12 #include "mothur.h"
13 #include "globaldata.hpp"
14 #include "validcommands.h"
15 #include "validparameter.h"
16 #include "utilities.hpp"
17
18 class ErrorCheck {
19         public:
20                 ErrorCheck();
21                 ~ErrorCheck();
22                 bool checkInput(string);
23         
24         private: 
25                 GlobalData* globaldata;
26                 ValidCommands* validCommand;
27                 ValidParameters* validParameter;
28                 void validateReadFiles();
29                 bool validCommandParameter(string, string);
30                 bool validParameterValue(string, string);
31                 void validateReadDist();
32                 void validateReadPhil();
33                 void validateParseFiles();
34                 void validateTreeFiles();
35                 void clear();
36                 void refresh();
37                 string phylipfile, columnfile, listfile, rabundfile, sabundfile, namefile, groupfile, orderfile, fastafile, treefile, sharedfile, cutoff, format; 
38                 string precision, method, fileroot, label, line, iters, jumble, freq, single, rarefaction, shared, summary, randomtree, abund;
39                 string commandName, optionText;
40                 bool errorFree;
41
42                 vector<string> sharedGroups;
43                 map <string, vector<string> > commandParameters;
44                 map <string, vector<double> > intParams;
45                 double piSent;
46
47 };
48 #endif