*
*/
-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. */
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