]> git.donarmstrong.com Git - mothur.git/blobdiff - readtree.h
fixed phylo.diversity
[mothur.git] / readtree.h
index c8e866aa476695c45cbfded4652fa1d4aef24dbe..0c368337a85954a94750fdba504103cccbe9057f 100644 (file)
@@ -23,7 +23,7 @@ class Tree;
 class ReadTree {
        public:
                ReadTree(); 
-               ~ReadTree() {};
+               virtual ~ReadTree() {};
                
                virtual int read() = 0;
                int readSpecialChar(istream&, char, string);
@@ -33,6 +33,7 @@ class ReadTree {
        protected:
                GlobalData* globaldata;
                int numNodes, numLeaves;
+               MothurOut* m;
                
                
 };
@@ -42,7 +43,7 @@ class ReadTree {
 class ReadNewickTree : public ReadTree {
        
 public:
-       ReadNewickTree(string file) : treeFile(file) { openInputFile(file, filehandle); readOk = 0; } 
+       ReadNewickTree(string file) : treeFile(file) { m->openInputFile(file, filehandle); readOk = 0; } 
        ~ReadNewickTree() {};
        int read();