]> git.donarmstrong.com Git - mothur.git/blob - summarydisplay.h
added mothur.h and fixed includes in many files
[mothur.git] / summarydisplay.h
1 #ifndef SUMMARY_H
2 #define SUMMARY_H
3
4 #include "mothur.h"
5 #include "display.h"
6
7
8
9 class SummaryDisplay : public Display {
10
11 public:
12         SummaryDisplay(Calculator* calc, FileOutput* file) : estimate(calc), output(file){      };
13         
14         void update(SAbundVector* sabund)       {       output->output(sabund->getLabel(), estimate->getValues(rank));  };
15         void init(string s)                             {       output->initFile(s);    };
16         void reset()                                    {       output->resetFile();    };
17         void close(){};
18         string getLabel(){      return estimate->getName();     }
19         
20 private:
21         Calculator* estimate;
22         FileOutput* output;
23         
24         int nIters;
25         string tempInName, tempOutName;
26         ifstream tempInFile;
27         ofstream tempOutFile;
28 };
29
30 /***********************************************************************/
31
32 #endif