]> git.donarmstrong.com Git - mothur.git/blob - taxonomynode.h
added modify names parameter to set.dir
[mothur.git] / taxonomynode.h
1 #ifndef TAXONOMYNODE
2 #define TAXONOMYNODE
3
4 /*
5  *  taxonomynode.h
6  *  
7  *
8  *  Created by Pat Schloss on 7/8/11.
9  *  Copyright 2011 Patrick D. Schloss. All rights reserved.
10  *
11  */
12
13 /**************************************************************************************************/
14
15 #include "mothurout.h"
16 /**************************************************************************************************/
17
18 class TaxonomyNode {
19         
20 public:
21         TaxonomyNode();
22         TaxonomyNode(string, int);
23         void setName(string);
24         string getName();
25
26
27         void setParent(int);
28         int getParent();
29         
30         void makeChild(string, int);
31         map<string, int> getChildren();
32         int getChildIndex(string);
33         int     getNumKids();
34         int getNumSeqs();
35         void setTotalSeqs(int);
36         int getLevel();
37         
38 private:
39         int parent;
40         map<string, int> children;
41         int numChildren;
42         int level;
43         
44 protected:
45     MothurOut* m;
46         int numSeqs;
47         int totalSeqs;
48         string name;
49 };
50
51 /**************************************************************************************************/
52
53 #endif