]> git.donarmstrong.com Git - mothur.git/blob - quitcommand.h
added citation function to commands
[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 getCitation() { return "no citation"; }
31         
32         int execute(); 
33         void help() { m->mothurOut(getHelpString()); }  
34         
35         
36 private:
37         bool abort;
38         vector<string> outputNames;
39 };
40
41 #endif