]> git.donarmstrong.com Git - mothur.git/blobdiff - treecalculator.h
added modify names parameter to set.dir
[mothur.git] / treecalculator.h
index 9ee47748d817c9255ab1aaf41dd23918f7d0a980..06abdb8e278e5dd4c04536444745f5f71679f092 100644 (file)
  *
  */
 
-using namespace std;
-
 #include "mothur.h"
-#include "utilities.hpp"
 #include "tree.h"
+#include "mothurout.h"
 
 /* The tree calculator class is the parent class for tree calculators in mothur. */ 
 
@@ -25,20 +23,24 @@ typedef vector<double> EstOutput;
 class TreeCalculator {
 
 public:
-       TreeCalculator(){};
+       TreeCalculator(){ m = MothurOut::getInstance(); }
        TreeCalculator(string n) : name(n) {};
-       ~TreeCalculator(){};
-       virtual EstOutput getValues(Tree*) = 0; 
-       virtual EstOutput getValues(Tree*, string, string) = 0;
+       
+       virtual ~TreeCalculator(){};
+       virtual EstOutput getValues(Tree*) { return data; }     
+       virtual EstOutput getValues(Tree*, int, string) { return data; }        
+       virtual EstOutput getValues(Tree*, string, string) { return data; }
+       virtual EstOutput getValues(Tree*, string, string, vector<double>&) { return data; }
        
        virtual string getName()                {       return name;    }
                
 protected:
        EstOutput data;
        string name;
+       MothurOut* m;
 
 };
 
 /***********************************************************************/
 
-#endif
\ No newline at end of file
+#endif