]> git.donarmstrong.com Git - mothur.git/blob - raredisplay.h
Initial revision
[mothur.git] / raredisplay.h
1 #ifndef RAREDISPLAY_H
2 #define RAREDISPLAY_H
3
4 #include "sabundvector.hpp"
5 #include "calculator.h"
6 #include "fileoutput.h"
7 #include "display.h"
8 #include <vector>
9
10 using namespace std;
11
12 /***********************************************************************/
13
14 class RareDisplay : public Display {
15         
16 public:
17         RareDisplay(Calculator* calc, FileOutput* file) : estimate(calc), output(file), nIters(1),
18                                                         tempInName(getPathName(output->getFileName()) + ".tempin."+ getSimpleName(output->getFileName())), tempOutName(getPathName(output->getFileName()) + ".tempout."+ getSimpleName(output->getFileName())) {};
19         ~RareDisplay()                                  {       delete estimate; delete output;         };
20         void init(string);
21         void reset();
22         void update(SAbundVector*);
23         void update(SharedRAbundVector* shared1, SharedRAbundVector* shared2, int numSeqs, int numGroupComb);
24         void close();
25         
26 private:
27         Calculator* estimate;
28         FileOutput* output;
29         string label;
30         int nIters;
31         string tempInName, tempOutName;
32         ifstream tempInFile;
33         ofstream tempOutFile;
34
35 };
36
37 #endif
38