X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=raredisplay.h;fp=raredisplay.h;h=a87596225b818c525fdd97156f5baf64b1dceb71;hb=0caf3fbabaa3ece404f8ce77f4c883dc5b1bf1dc;hp=0000000000000000000000000000000000000000;hpb=1b73ff67c83892a025e597dabd9df6fe7b58206a;p=mothur.git diff --git a/raredisplay.h b/raredisplay.h new file mode 100644 index 0000000..a875962 --- /dev/null +++ b/raredisplay.h @@ -0,0 +1,37 @@ +#ifndef RAREDISPLAY_H +#define RAREDISPLAY_H + +#include "sabundvector.hpp" +#include "calculator.h" +#include "fileoutput.h" +#include "display.h" + +/***********************************************************************/ + +class RareDisplay : public Display { + +public: + RareDisplay(Calculator* calc, FileOutput* file) : estimate(calc), output(file), nIters(1), index(0) {}; + ~RareDisplay() { delete estimate; delete output; }; + void init(string); + void reset(); + void update(SAbundVector*); + void update(vector shared, int numSeqs, int numGroupComb); + void close(); + bool isCalcMultiple() { return estimate->getMultiple(); } + + void outputTempFiles(string); + void inputTempFiles(string); + +private: + Calculator* estimate; + FileOutput* output; + string label; + vector seqs; + vector results; + vector var; + int index, nIters; +}; + +#endif +