]> git.donarmstrong.com Git - mothur.git/blob - quitcommand.h
changes while testing
[mothur.git] / quitcommand.h
1 #ifndef QUITCOMMAND_H
2 #define QUITCOMMAND_H
3 /*
4  *  quitcommand.h
5  *  Dotur
6  *
7  *  Created by Sarah Westcott on 1/2/09.
8  *  Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
9  *
10  */
11
12 #include "command.hpp"
13
14 /* The quit() command:
15         The quit command terminates the mothur program. 
16         The quit command should be in the following format: quit ().   */
17
18
19 class QuitCommand : public Command {
20         
21 public:
22         QuitCommand(string);
23         QuitCommand() {}
24         ~QuitCommand();
25         
26         vector<string> setParameters()  { return outputNames;   } //dummy, doesn't really do anything   
27         string getCommandName()                 { return "quit";                }
28         string getCommandCategory()             { return "Hidden";              }
29         string getHelpString() { return "The quit command will terminate mothur and should be in the following format: quit() or quit. \n"; }   
30     string getOutputPattern(string) { return "";                }
31         string getCitation() { return "no citation"; }
32         string getDescription()         { return "quit"; }
33
34         int execute(); 
35         void help() { m->mothurOut(getHelpString()); }  
36         
37         
38 private:
39         bool abort;
40         vector<string> outputNames;
41 };
42
43 #endif