]> git.donarmstrong.com Git - mothur.git/blob - treecalculator.h
created mothurOut class to handle logfiles
[mothur.git] / treecalculator.h
1 #ifndef TREECALCULATOR_H
2 #define TREECALCULATOR_H
3
4 /*
5  *  treecalculator.h
6  *  Mothur
7  *
8  *  Created by Sarah Westcott on 1/26/09.
9  *  Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
10  *
11  */
12
13 #include "mothur.h"
14 #include "tree.h"
15 #include "mothurout.h"
16
17 /* The tree calculator class is the parent class for tree calculators in mothur. */ 
18
19 typedef vector<double> EstOutput;
20
21 /***********************************************************************/
22
23 class TreeCalculator {
24
25 public:
26         TreeCalculator(){ m = MothurOut::getInstance(); }
27         TreeCalculator(string n) : name(n) {};
28         virtual ~TreeCalculator(){};
29         virtual EstOutput getValues(Tree*) = 0; 
30         virtual EstOutput getValues(Tree*, string, string) = 0;
31         
32         virtual string getName()                {       return name;    }
33                 
34 protected:
35         EstOutput data;
36         string name;
37         MothurOut* m;
38
39 };
40
41 /***********************************************************************/
42
43 #endif