X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=command.hpp;h=f65f6cc0fb14ab1d892dbcc5df567c086ca183c9;hb=5e031adc86a1fc125c4abb3d4048f209d52f9b6d;hp=1dd5e871aaa66362e02e997c9ff26b427ed9178a;hpb=02909d6cae9963ba00dc746969a370fa8ca934fc;p=mothur.git diff --git a/command.hpp b/command.hpp index 1dd5e87..f65f6cc 100644 --- a/command.hpp +++ b/command.hpp @@ -16,13 +16,25 @@ #include "mothur.h" #include "optionparser.h" #include "validparameter.h" +#include "mothurout.h" class Command { public: + Command() { m = MothurOut::getInstance(); } + virtual vector getValidParameters() = 0; + virtual vector getRequiredParameters() = 0; //adding "or" as the last element indicates one of the previous is needed + virtual vector getRequiredFiles() = 0; //adding "or" as the last element indicates one of the previous is needed + virtual map > getOutputFiles() = 0; //file type to names virtual int execute() = 0; virtual void help() = 0; virtual ~Command() { } + protected: + MothurOut* m; + + bool calledHelp; + + map >::iterator itTypes; }; #endif