]> git.donarmstrong.com Git - mothur.git/blob - errorchecking.h
756f676d5b3363887ebf553c956e194420c097d6
[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 <Carbon/Carbon.h>
13 #include <iostream>
14 #include <map>
15 #include "globaldata.hpp"
16 #include "validcommands.h"
17 #include "validparameter.h"
18 #include "validcalculator.h"
19
20 class ErrorCheck {
21         public:
22                 ErrorCheck();
23                 ~ErrorCheck();
24                 bool checkInput(string);
25         
26         private: 
27                 GlobalData* globaldata;
28                 ValidCommands* validCommand;
29                 ValidParameters* validParameter;
30                 ValidCalculators* validCalculator;
31                 void splitAtDash(string&, vector<string>&);
32                 void splitAtDash(string&, set<int>&);
33                 void splitAtDash(string&, set<string>&);
34                 void validateReadFiles();
35                 void validateReadDist();
36                 void validateReadPhil();
37                 void validateParseFiles();
38                 void validateTreeFiles();
39                 void clear();
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;
42                 string commandName, optionText;
43                 bool errorFree;
44                 vector<string> singleEsimators, sharedEstimators, rareEstimators, summaryEstimators, sharedRareEstimators;
45                 
46 };
47 #endif