]> git.donarmstrong.com Git - mothur.git/blob - errorchecking.h
8b3c0cafb0e6b787d5d408083828ab39757420bc
[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 <iostream>
13 #include <map>
14 #include "globaldata.hpp"
15 #include "validcommands.h"
16 #include "validparameter.h"
17 #include "utilities.hpp"
18
19 class ErrorCheck {
20         public:
21                 ErrorCheck();
22                 ~ErrorCheck();
23                 bool checkInput(string);
24         
25         private: 
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();
36                 void clear();
37                 void refresh();
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;
41                 bool errorFree;
42
43                 vector<string> sharedGroups;
44                 map <string, vector<string> > commandParameters;
45                 map <string, vector<double> > intParams;
46                 double piSent;
47
48 };
49 #endif