X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=treecalculator.h;h=06abdb8e278e5dd4c04536444745f5f71679f092;hp=35d061c382f9857e7cfac0c965fb4f1935c7715c;hb=a8e2df1b96a57f5f29576b08361b86a96a8eff4f;hpb=02909d6cae9963ba00dc746969a370fa8ca934fc diff --git a/treecalculator.h b/treecalculator.h index 35d061c..06abdb8 100644 --- a/treecalculator.h +++ b/treecalculator.h @@ -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,20 +23,24 @@ typedef vector EstOutput; class TreeCalculator { public: - TreeCalculator(){}; + TreeCalculator(){ m = MothurOut::getInstance(); } TreeCalculator(string n) : name(n) {}; + virtual ~TreeCalculator(){}; - virtual EstOutput getValues(Tree*) = 0; - virtual EstOutput getValues(Tree*, string, string) = 0; + 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&) { return data; } virtual string getName() { return name; } protected: EstOutput data; string name; + MothurOut* m; }; /***********************************************************************/ -#endif \ No newline at end of file +#endif