]> git.donarmstrong.com Git - mothur.git/blobdiff - nocommands.h
Revert to previous commit
[mothur.git] / nocommands.h
diff --git a/nocommands.h b/nocommands.h
new file mode 100644 (file)
index 0000000..5ed7e12
--- /dev/null
@@ -0,0 +1,41 @@
+#ifndef NOCOMMAND_H
+#define NOCOMMAND_H
+/*
+ *  nocommand.h
+ *  Dotur
+ *
+ *  Created by Sarah Westcott on 1/2/09.
+ *  Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
+ *
+ */
+
+/* This command is run if the user enters an invalid command. */
+
+#include "command.hpp"
+#include "commandfactory.hpp"
+
+class NoCommand : public Command {
+
+public:
+       NoCommand(string);
+       NoCommand() {}
+       ~NoCommand(){}
+       
+       vector<string> setParameters()  { return outputNames;   } //dummy, doesn't really do anything   
+       string getCommandName()                 { return "NoCommand";   }
+       string getCommandCategory()             { return "Hidden";              }
+       string getHelpString() { return "No Command"; } 
+       string getCitation() { return "no citation"; }
+       string getDescription()         { return "no description"; }
+
+       
+       int execute(); 
+       void help() { m->mothurOut(getHelpString()); }  
+       
+       
+private:
+       vector<string> outputNames;
+               
+};
+
+#endif