]> git.donarmstrong.com Git - mothur.git/blobdiff - treecalculator.h
fixed phylo.diversity
[mothur.git] / treecalculator.h
index 35d061c382f9857e7cfac0c965fb4f1935c7715c..86cb52798a291990ea7d0d20adfdf9c14f0ea569 100644 (file)
@@ -12,6 +12,7 @@
 
 #include "mothur.h"
 #include "tree.h"
+#include "mothurout.h"
 
 /* The tree calculator class is the parent class for tree calculators in mothur. */ 
 
@@ -22,7 +23,7 @@ typedef vector<double> EstOutput;
 class TreeCalculator {
 
 public:
-       TreeCalculator(){};
+       TreeCalculator(){ m = MothurOut::getInstance(); }
        TreeCalculator(string n) : name(n) {};
        virtual ~TreeCalculator(){};
        virtual EstOutput getValues(Tree*) = 0; 
@@ -33,9 +34,10 @@ public:
 protected:
        EstOutput data;
        string name;
+       MothurOut* m;
 
 };
 
 /***********************************************************************/
 
-#endif
\ No newline at end of file
+#endif