8 * Created by Pat Schloss on 10/23/08.
9 * Copyright 2008 Patrick D. Schloss. All rights reserved.
13 /*This class is a parent to all the command classes. */
17 #include "optionparser.h"
18 #include "validparameter.h"
19 #include "mothurout.h"
25 Command() { m = MothurOut::getInstance(); }
26 virtual vector<string> getValidParameters() = 0;
27 virtual vector<string> getRequiredParameters() = 0; //adding "or" as the last element indicates one of the previous is needed
28 virtual vector<string> getRequiredFiles() = 0; //adding "or" as the last element indicates one of the previous is needed
29 virtual map<string, vector<string> > getOutputFiles() = 0; //file type to names
30 virtual int execute() = 0;
31 virtual void help() = 0;
32 virtual ~Command() { }
37 map<string, vector<string> >::iterator itTypes;