]> git.donarmstrong.com Git - mothur.git/blobdiff - setdircommand.h
Revert to previous commit
[mothur.git] / setdircommand.h
diff --git a/setdircommand.h b/setdircommand.h
new file mode 100644 (file)
index 0000000..b3b00c4
--- /dev/null
@@ -0,0 +1,47 @@
+#ifndef SETDIRCOMMAND_H
+#define SETDIRCOMMAND_H
+
+/*
+ *  setoutdircommand.h
+ *  Mothur
+ *
+ *  Created by westcott on 1/21/10.
+ *  Copyright 2010 Schloss Lab. All rights reserved.
+ *
+ */
+
+#include "command.hpp"
+#include "commandfactory.hpp"
+
+/**********************************************************/
+
+class SetDirectoryCommand : public Command {
+       
+public:
+       SetDirectoryCommand(string);
+       SetDirectoryCommand() { abort = true; calledHelp = true; setParameters(); }
+       ~SetDirectoryCommand(){}
+       
+       vector<string> setParameters();
+       string getCommandName()                 { return "set.dir";             }
+       string getCommandCategory()             { return "General";             }
+       string getHelpString(); 
+       string getCitation() { return "http://www.mothur.org/wiki/Set.dir"; }
+       string getDescription()         { return "set input, output and default directories"; }
+
+       int execute(); 
+       void help() { m->mothurOut(getHelpString()); }  
+       
+private:
+       CommandFactory* commandFactory;
+       string output, input, tempdefault;
+       bool abort;
+       vector<string> outputNames;
+       
+               
+};
+
+/**********************************************************/
+#endif
+