]> git.donarmstrong.com Git - mothur.git/blobdiff - commandfactory.hpp
added set.logfile command
[mothur.git] / commandfactory.hpp
index 3b6a17e38b2abb74b152da573a9bf2f1666e62e6..44e78fd66fa290d9664d773f470249f0600a2836 100644 (file)
@@ -22,9 +22,12 @@ public:
        Command* getCommand();\r
        bool isValidCommand(string);\r
        void printCommands(ostream&);\r
-       void setOutputDirectory(string o)       {       outputDir = o;          }\r
-       void setInputDirectory(string i)        {       inputDir = i;           }\r
-       string getOutputDir()                   {       return outputDir;               }\r
+       void setOutputDirectory(string o)               {       outputDir = o;          }\r
+       void setInputDirectory(string 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
+       string getOutputDir()                                   {       return outputDir;               }\r
        bool MPIEnabled(string);\r
 \r
 private:\r
@@ -32,7 +35,8 @@ private:
        MothurOut* m;\r
        map<string, string> commands;\r
        map<string, string>::iterator it;\r
-       string outputDir, inputDir;\r
+       string outputDir, inputDir, logFileName;\r
+       bool append;\r
        \r
        static CommandFactory* _uniqueInstance;\r
        CommandFactory( const CommandFactory& ); // Disable copy constructor\r