]> git.donarmstrong.com Git - mothur.git/blob - errorchecking.h
9387bc5954124d00612b5874bb7f084a90ca329d
[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 "validcalculator.h"
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                 ValidCalculators* validCalculator;
30                 void splitAtDash(string&, vector<string>&);
31                 void splitAtDash(string&, set<int>&);
32                 void splitAtDash(string&, set<string>&);
33                 void validateReadFiles();
34                 void validateReadDist();
35                 void validateReadPhil();
36                 void validateParseFiles();
37                 void validateTreeFiles();
38                 void clear();
39                 void refresh();
40                 string phylipfile, columnfile, listfile, rabundfile, sabundfile, namefile, groupfile, orderfile, fastafile, treefile, cutoff, format; 
41                 string precision, method, fileroot, label, line, iters, jumble, freq, single, rarefaction, shared, summary, randomtree;
42                 string commandName, optionText;
43                 bool errorFree;
44                 vector<string> singleEsimators, sharedEstimators, rareEstimators, summaryEstimators, sharedRareEstimators;
45                 
46 };
47 #endif