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"
24 Command() { m = MothurOut::getInstance(); }
25 virtual vector<string> getValidParameters() = 0;
26 virtual vector<string> getRequiredParameters() = 0; //adding "or" as the last element indicates one of the previous is needed
27 virtual vector<string> getRequiredFiles() = 0; //adding "or" as the last element indicates one of the previous is needed
28 virtual map<string, vector<string> > getOutputFiles() = 0; //file type to names
29 virtual int execute() = 0;
30 virtual void help() = 0;
31 virtual ~Command() { }