1 #ifndef Mothur_newcommandtemplate_h
2 #define Mothur_newcommandtemplate_h
5 // newcommandtemplate.h
8 // Created by westcott on 5/3/12.
9 // Copyright (c) 2012 Schloss Lab. All rights reserved.
13 //*********Be sure to change ifdef and define to a unique name.**************//
15 /* This class is designed to provide a template for creating new commands.
16 It includes code snippets to make creating the command classes virtually pure
17 functions easier. It includes sample parameter declaration and parameter checking,
18 as well as reference to other classes you may find helpful.
19 It also includes the code needed to read a sharedfile. It is a work in progress so
20 please add things you may find helpful to yourself or other developers trying to
21 add commands to mothur.
25 #include "command.hpp"
27 /**************************************************************************************************/
29 class NewCommand : public Command {
35 vector<string> setParameters();
36 string getCommandName() { return "newCommandNameToBeSeenByUser"; }
37 string getCommandCategory() { return "commandCategory"; }
39 string getOutputPattern(string);
40 //commmand category choices: Sequence Processing, OTU-Based Approaches, Hypothesis Testing, Phylotype Analysis, General, Clustering and Hidden
41 string getHelpString();
42 string getCitation() { return "http://www.mothur.org/wiki/newCommandNameToBeSeenByUser"; }
43 string getDescription() { return "brief description"; }
46 void help() { m->mothurOut(getHelpString()); }
51 vector<string> outputNames;
54 /**************************************************************************************************/