]> git.donarmstrong.com Git - mothur.git/blob - validcommands.h
e59316fca472b419734c0c1e65036b3d2b684b66
[mothur.git] / validcommands.h
1 #ifndef VALIDCOMMANDS_H
2 #define VALIDCOMMANDS_H
3
4 /*
5  *  validcommands.h
6  *  Dotur
7  *
8  *  Created by Sarah Westcott on 1/5/09.
9  *  Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
10  *
11  */
12 using namespace std;
13
14 #include "mothur.h"
15
16 //This class contains a list of all valid commands in Mothur.  
17 //It has a function which will tell you if your command is valid.
18 //When adding a new command you must add it to the valid list in the class constructor.
19
20 class ValidCommands {
21
22         public:
23                 ValidCommands();
24                 ~ValidCommands();
25                 bool isValidCommand(string);
26                 void printCommands(ostream&);
27         private:
28                 map<string, string> commands;
29                 map<string, string>::iterator it;
30
31 };
32
33 #endif