]> git.donarmstrong.com Git - mothur.git/blobdiff - command.hpp
adding current file class
[mothur.git] / command.hpp
index 1dd5e871aaa66362e02e997c9ff26b427ed9178a..f65f6cc0fb14ab1d892dbcc5df567c086ca183c9 100644 (file)
 #include "mothur.h"
 #include "optionparser.h"
 #include "validparameter.h"
+#include "mothurout.h"
 
 class Command {
        
        public:
+               Command() {  m = MothurOut::getInstance();   }
+               virtual vector<string> getValidParameters() = 0;
+               virtual vector<string> getRequiredParameters() = 0; //adding "or" as the last element indicates one of the previous is needed
+               virtual vector<string> getRequiredFiles() = 0; //adding "or" as the last element indicates one of the previous is needed
+               virtual map<string, vector<string> > getOutputFiles() = 0; //file type to names
                virtual int execute() = 0;
                virtual void help() = 0;
                virtual ~Command() { }
+       protected:
+               MothurOut* m;
+               
+               bool calledHelp;
+       
+               map<string, vector<string> >::iterator itTypes;
 };
 
 #endif