]> git.donarmstrong.com Git - mothur.git/blobdiff - tree.h
added get.sharedotu command
[mothur.git] / tree.h
diff --git a/tree.h b/tree.h
index 7fc383806c946d8f22efab62c648f19095313feb..c90f51a451461ceca068f743ecefe8fd3e7cba5f 100644 (file)
--- a/tree.h
+++ b/tree.h
  *
  */
 
-using namespace std;
-
 #include "treenode.h"
 #include "globaldata.hpp"
 
+class GlobalData;
 /* This class represents the treefile. */
 
 class Tree {
@@ -22,7 +21,6 @@ public:
        Tree();         //to generate a tree from a file
        ~Tree();
        
-       
        void getCopy(Tree*);  //makes tree a copy of the one passed in.
        void assembleRandomTree();
        void assembleRandomUnifracTree(vector<string>);
@@ -57,6 +55,11 @@ private:
        void randomLabels(vector<string>);
        void randomLabels(string, string);
        void printBranch(int, ostream&, string);  //recursively print out tree
+       void parseTreeFile();   //parses through tree file to find names of nodes and number of them
+                                                       //this is required in case user has sequences in the names file that are
+                                                       //not included in the tree. 
+                                                       //only takes names from the first tree in the tree file and assumes that all trees use the same names.
+       int readTreeString(ifstream&);
 };
 
 #endif