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