X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=commandfactory.hpp;h=44e78fd66fa290d9664d773f470249f0600a2836;hb=84f93a9e670eb7f7e69e0468b9be4c53890c07f2;hp=3b6a17e38b2abb74b152da573a9bf2f1666e62e6;hpb=a688f253166590ee0b256f02e02f47c9cae44fd1;p=mothur.git diff --git a/commandfactory.hpp b/commandfactory.hpp index 3b6a17e..44e78fd 100644 --- a/commandfactory.hpp +++ b/commandfactory.hpp @@ -22,9 +22,12 @@ 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; } + void setOutputDirectory(string o) { outputDir = o; } + void setInputDirectory(string i) { inputDir = i; } + void setLogfileName(string n, bool a) { logFileName = n; append = a; } + string getLogfileName() { return logFileName; } + bool getAppend() { return append; } + string getOutputDir() { return outputDir; } bool MPIEnabled(string); private: @@ -32,7 +35,8 @@ private: MothurOut* m; map commands; map::iterator it; - string outputDir, inputDir; + string outputDir, inputDir, logFileName; + bool append; static CommandFactory* _uniqueInstance; CommandFactory( const CommandFactory& ); // Disable copy constructor