X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=treecalculator.h;h=06abdb8e278e5dd4c04536444745f5f71679f092;hp=16663bf161afbb61c92722c27facdd8885a0dad5;hb=a8e2df1b96a57f5f29576b08361b86a96a8eff4f;hpb=74c78f9abd9e733f0c2f812efec97a76632fcbf8 diff --git a/treecalculator.h b/treecalculator.h index 16663bf..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) {}; - ~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&) { return data; } virtual string getName() { return name; } protected: EstOutput data; string name; + MothurOut* m; }; /***********************************************************************/ -#endif \ No newline at end of file +#endif