]> git.donarmstrong.com Git - mothur.git/blob - errorchecking.h
d1e2f82451cc3f5d5e4be6d7496894d6b884e9cc
[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                 string phylipfile, columnfile, listfile, rabundfile, sabundfile, namefile, groupfile, orderfile, fastafile, treefile, cutoff, format; 
40                 string precision, method, fileroot, label, line, iters, jumble, freq, single, rarefaction, shared, summary;
41                 string commandName, optionText;
42                 bool errorFree;
43                 vector<string> singleEsimators, sharedEstimators, rareEstimators, summaryEstimators, sharedRareEstimators;
44                 
45 };
46 #endif