]> git.donarmstrong.com Git - mothur.git/blob - catchallcommand.h
added pipeline commands which involved change to command factory and command class...
[mothur.git] / catchallcommand.h
1 #ifndef CATCHALLCOMMAND_H
2 #define CATCHALLCOMMAND_H
3
4 /*
5  *  catchallcommand.h
6  *  Mothur
7  *
8  *  Created by westcott on 5/11/10.
9  *  Copyright 2010 Schloss Lab. All rights reserved.
10  *
11  */
12
13 #include "command.hpp"
14 #include "inputdata.h"
15 #include "readotu.h"
16 #include "sabundvector.hpp"
17
18 /* 
19  citation goes here
20  */ 
21
22 /****************************************************************************/
23
24 class CatchAllCommand : public Command {
25
26 public:
27
28         CatchAllCommand(string);
29         CatchAllCommand();
30         ~CatchAllCommand() {}
31         vector<string> getRequiredParameters();
32         vector<string> getValidParameters();
33         vector<string> getRequiredFiles();
34         map< string, vector<string> > getOutputFiles() { return outputTypes; }
35         int execute();
36         void help();    
37         
38 private:
39
40         GlobalData* globaldata;
41         ReadOTUFile* read;
42         InputData* input;
43         
44         string outputDir, sabundfile, rabundfile, listfile, format;
45         bool abort, allLines;
46         set<string> labels;
47         vector<string> outputNames;
48         map< string, vector<string> > outputTypes;
49         
50         string process(SAbundVector*);
51 };
52
53 /****************************************************************************/
54
55 #endif
56
57