File: newcommandtemplate.h

package info (click to toggle)
mothur 1.48.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 13,684 kB
  • sloc: cpp: 161,854; makefile: 122; sh: 31
file content (57 lines) | stat: -rwxr-xr-x 1,819 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#ifndef Mothur_newcommandtemplate_h
#define Mothur_newcommandtemplate_h

//
//  newcommandtemplate.h
//  Mothur
//
//  Created by westcott on 5/3/12.
//  Copyright (c) 2012 Schloss Lab. All rights reserved.
//
//test

//*********Be sure to change ifdef and define to a unique name.**************//

/* This class is designed to provide a template for creating new commands. 
 It includes code snippets to make creating the command classes virtually pure
 functions easier. It includes sample parameter declaration and parameter checking,
 as well as reference to other classes you may find helpful.
 It also includes the code needed to read a sharedfile. It is a work in progress so 
 please add things you may find helpful to yourself or other developers trying to 
 add commands to mothur.
 
*/

#include "command.hpp"

/**************************************************************************************************/

class NewCommand : public Command {
public:
    NewCommand(string);
    ~NewCommand(){}
    
    vector<string> setParameters();
    string getCommandName()			{ return "newCommandNameToBeSeenByUser";			}
    string getCommandCategory()		{ return "commandCategory";		} 
    
    string getOutputPattern(string);
    //commmand category choices: Sequence Processing, OTU-Based Approaches, Hypothesis Testing, Phylotype Analysis, General, Clustering and Hidden
	string getHelpString();	
    string getCitation() { return "http://www.mothur.org/wiki/newCommandNameToBeSeenByUser"; }
    string getDescription()		{ return "brief description"; }
    
    int execute(); 
    void help() { m->mothurOut(getHelpString()); }	
    
private:
    bool abort;
    vector<string> outputNames;
};

/**************************************************************************************************/




#endif