]> git.donarmstrong.com Git - mothur.git/blob - collect.h
created mothurOut class to handle logfiles
[mothur.git] / collect.h
1 #ifndef COLLECT_H
2 #define COLLECT_H
3
4 #include "collectorscurvedata.h"
5 #include "display.h"
6 #include "ordervector.hpp"
7 #include "sabundvector.hpp"
8 #include "rabundvector.hpp"
9 #include "sharedordervector.h"
10 #include "datavector.hpp"
11 #include "globaldata.hpp"
12 #include "mothurout.h"
13
14 /***********************************************************************/
15
16 class Collect {
17         
18 public:
19         Collect(OrderVector* order, vector<Display*> disp) :
20                                         numSeqs(order->getNumSeqs()), order(order), displays(disp), label(order->getLabel())  { m = MothurOut::getInstance(); };
21         Collect(SharedOrderVector* sharedorder, vector<Display*> disp) :
22                                         numSeqs(sharedorder->getNumSeqs()), sharedorder(sharedorder), displays(disp), label(sharedorder->getLabel())  { m = MothurOut::getInstance(); }
23
24         ~Collect(){             };
25         void getCurve(int);
26         void getSharedCurve(int);
27         
28 private:
29         SharedOrderVector* sharedorder;
30         GlobalData* globaldata;
31         OrderVector* order;
32         vector<Display*> displays;
33         int numSeqs, numGroupComb, totalNumSeq;
34         string label, groupLabel;
35         void getGroupComb();
36         vector<string> groupComb;
37         bool validGroup(vector<string>, string);
38         MothurOut* m;
39 };
40
41
42 #endif
43