]> git.donarmstrong.com Git - mothur.git/blob - systemcommand.h
added [ERROR] flag if command aborts
[mothur.git] / systemcommand.h
1 #ifndef SYSTEMCOMMAND_H
2 #define SYSTEMCOMMAND_H
3
4 /*
5  *  systemcommand.h
6  *  Mothur
7  *
8  *  Created by Sarah Westcott on 7/8/09.
9  *  Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
10  *
11  */
12
13 #include "command.hpp"
14
15
16 class SystemCommand : public Command {
17         
18         public:
19         
20                 SystemCommand(string);  
21                 SystemCommand() { abort = true; calledHelp = true; }
22                 ~SystemCommand(){}
23                 vector<string> getRequiredParameters();
24                 vector<string> getValidParameters();
25                 vector<string> getRequiredFiles();
26                 map<string, vector<string> > getOutputFiles() { return outputTypes; }
27                 int execute();
28                 void help();    
29                 
30         private:
31                 string command;
32                 bool abort;
33                 vector<string> outputNames;
34                 map<string, vector<string> > outputTypes;
35                 
36 };
37
38 #endif
39