X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=treecalculator.h;h=06abdb8e278e5dd4c04536444745f5f71679f092;hp=797c45723f835fea908fe2829397b682edc32c6f;hb=a8e2df1b96a57f5f29576b08361b86a96a8eff4f;hpb=163b300cfd7d4ca4e70c454be20f07b1d8346650 diff --git a/treecalculator.h b/treecalculator.h index 797c457..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,17 +23,21 @@ 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; };