8 /* This class is parent to listvector, ordervector, rabundvector, sabundvector, sharedordervector, sharedrabundvector, sharedsabundvector.
9 The child classes all contain OTU information in different forms. */
15 class SharedListVector;
16 class SharedOrderVector;
17 class SharedSAbundVector;
18 class SharedRAbundVector;
19 class SharedRAbundFloatVector;
25 DataVector(){ m = MothurOut::getInstance(); }// : maxRank(0), numBins(0), numSeqs(0){};
26 DataVector(string l) : label(l) {};
27 DataVector(const DataVector& dv) : label(dv.label){};//, maxRank(dv.maxRank), numBins(dv.numBins), numSeqs(dv.numSeqs) {};
28 DataVector(ifstream&);
29 DataVector(ifstream&, GroupMap*);
30 virtual ~DataVector(){};
32 // virtual int getNumBins() { return numBins; }
33 // virtual int getNumSeqs() { return numSeqs; }
34 // virtual int getMaxRank() { return maxRank; }
36 virtual void resize(int) = 0;
37 virtual int size() = 0;
38 virtual void print(ostream&) = 0;
39 virtual void printHeaders(ostream&) {};
40 virtual void clear() = 0;
42 void setLabel(string l) { label = l; }
43 string getLabel() { return label; }
45 virtual RAbundVector getRAbundVector() = 0;
46 virtual SAbundVector getSAbundVector() = 0;
47 virtual OrderVector getOrderVector(map<string,int>* hold = NULL) = 0;
57 /***********************************************************************/