]> git.donarmstrong.com Git - mothur.git/blobdiff - commandfactory.hpp
added set.dir command and modified commands to redirect input and output, removed...
[mothur.git] / commandfactory.hpp
index 70e263078eee32ad8e706816f15be03a2fb6d369..d84be62a074dde5dc29b8006a636bd7b67b9607d 100644 (file)
@@ -21,11 +21,15 @@ public:
        Command* getCommand();
        bool isValidCommand(string);
        void printCommands(ostream&);
+       void setOutputDirectory(string o)       {       outputDir = o;          }
+       void setInputDirectory(string i)        {       inputDir = i;           }
+       string getOutputDir()                           {       return outputDir;       }
 
 private:
        Command* command;
        map<string, string> commands;
        map<string, string>::iterator it;
+       string outputDir, inputDir;
        
        static CommandFactory* _uniqueInstance;
        CommandFactory( const CommandFactory& ); // Disable copy constructor