]> git.donarmstrong.com Git - mothur.git/blob - errorchecking.h
added read.shared, broke up globaldata a bit
[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                 void validateReadDist();
31                 void validateReadPhil();
32                 void validateParseFiles();
33                 void validateTreeFiles();
34                 void clear();
35                 void refresh();
36                 string phylipfile, columnfile, listfile, rabundfile, sabundfile, namefile, groupfile, orderfile, fastafile, treefile, sharedfile, cutoff, format; 
37                 string precision, method, fileroot, label, line, iters, jumble, freq, single, rarefaction, shared, summary, randomtree;
38                 string commandName, optionText;
39                 bool errorFree;
40                 
41 };
42 #endif