]> git.donarmstrong.com Git - mothur.git/blobdiff - command.hpp
adding current file class
[mothur.git] / command.hpp
index ddb776356a183e0c310997ea7f9cb0acfc5e5c02..2d1981aa4cca8d7e608e3708750fc079600d1265 100644 (file)
 #include "optionparser.h"
 #include "validparameter.h"
 #include "mothurout.h"
+#include "currentfile.h"
 
 class Command {
        
        public:
-               Command() {  m = MothurOut::getInstance();  }
+               Command() {  m = MothurOut::getInstance(); currentFiles = CurrentFile::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
@@ -31,7 +32,10 @@ class Command {
                virtual ~Command() { }
        protected:
                MothurOut* m;
+               CurrentFile* currentFiles;
                bool calledHelp;
+       
+               map<string, vector<string> >::iterator itTypes;
 };
 
 #endif