]> git.donarmstrong.com Git - mothur.git/blobdiff - commandfactory.hpp
working on get.communitytype command
[mothur.git] / commandfactory.hpp
index e95db8016a4149c9c2defdbb9e7933ff6ee3905a..eb85c68513bc43ece5cf9802917ebe336bc03d5a 100644 (file)
@@ -26,8 +26,9 @@ public:
        bool isValidCommand(string);\r
        bool isValidCommand(string, string);\r
        void printCommands(ostream&);\r
-       void setOutputDirectory(string o)               {       outputDir = o;  m->setOutputDir(o);     }\r
-       void setInputDirectory(string i)                {       inputDir = i;           }\r
+    void printCommandsCategories(ostream&);\r
+       void setOutputDirectory(string o)               {       if(m->dirCheck(o) || (o == "")) {  outputDir = o; m->setOutputDir(o); } }\r
+       void setInputDirectory(string i)                {       if(m->dirCheck(i) || (i == "")) {  inputDir = i;        }       }\r
        void setLogfileName(string n, bool a)   {       logFileName = n;  append = a;           }\r
        string getLogfileName()                                 {       return logFileName;     }\r
        bool getAppend()                                                {       return append;                  }\r