]> git.donarmstrong.com Git - mothur.git/blob - raredisplay.h
added concensus command and updated calcs
[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
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"), tempOutName(getPathName(output->getFileName()) + ".tempout") {};
19         ~RareDisplay()                                  {       delete estimate; delete output;         };
20         void init(string);
21         void reset();
22         void update(SAbundVector*);
23         void update(vector<SharedRAbundVector*> shared, int numSeqs, int numGroupComb);
24         void close();
25         bool isCalcMultiple() { return estimate->getMultiple(); }
26         
27 private:
28         Calculator* estimate;
29         FileOutput* output;
30         string label;
31         int nIters;
32         string tempInName, tempOutName;
33         ifstream tempInFile;
34         ofstream tempOutFile;
35         int renameOk;
36
37 };
38
39 #endif
40