]> git.donarmstrong.com Git - mothur.git/blob - errorchecking.h
Initial revision
[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(string);
37                 void validateParseFiles(string);
38                 void clear();
39                 string distfile, listfile, rabundfile, sabundfile, namefile, groupfile, orderfile, 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