X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=treecalculator.h;fp=treecalculator.h;h=0bc41d9a2bc27db88a40c03bd40278692de88366;hb=d037597badc8d18e235c59f0c1114180edb7f98f;hp=0000000000000000000000000000000000000000;hpb=58cf1d08fee8c64334979075fa57bcafb035a2ed;p=mothur.git diff --git a/treecalculator.h b/treecalculator.h new file mode 100644 index 0000000..0bc41d9 --- /dev/null +++ b/treecalculator.h @@ -0,0 +1,48 @@ +#ifndef TREECALCULATOR_H +#define TREECALCULATOR_H + +/* + * treecalculator.h + * Mothur + * + * Created by Sarah Westcott on 1/26/09. + * Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved. + * + */ + +using namespace std; + +#include +#include +#include +#include +#include +#include +#include "utilities.hpp" +#include "tree.h" + +/* The tree calculator class is the parent class for tree calculators in mothur. */ + +typedef vector EstOutput; + +/***********************************************************************/ + +class TreeCalculator { + +public: + TreeCalculator(){}; + TreeCalculator(string n) : name(n) {}; + ~TreeCalculator(){}; + virtual EstOutput getValues(Tree*) = 0; + + virtual string getName() { return name; } + +protected: + EstOutput data; + string name; + +}; + +/***********************************************************************/ + +#endif \ No newline at end of file