X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=datavector.hpp;h=0b09e0dc4c914f7a5d26461c092ab3cb250bc071;hb=f663afa231c9bc1b5e18e0ea3bdd2b2ee784f5b2;hp=73058a992a53e3da313cae4ca595c77797058e94;hpb=bfbc55964f1977da72c2cea984288a427d370a59;p=mothur.git diff --git a/datavector.hpp b/datavector.hpp index 73058a9..0b09e0d 100644 --- a/datavector.hpp +++ b/datavector.hpp @@ -1,9 +1,9 @@ #ifndef datavector_h #define datavector_h -using namespace std; #include "mothur.h" +#include "mothurout.h" /* This class is parent to listvector, ordervector, rabundvector, sabundvector, sharedordervector, sharedrabundvector, sharedsabundvector. The child classes all contain OTU information in different forms. */ @@ -20,11 +20,11 @@ class SharedRAbundVector; class DataVector { public: - DataVector(){};// : maxRank(0), numBins(0), numSeqs(0){}; + DataVector(){ m = MothurOut::getInstance(); }// : maxRank(0), numBins(0), numSeqs(0){}; DataVector(string l) : label(l) {}; DataVector(const DataVector& dv) : label(dv.label){};//, maxRank(dv.maxRank), numBins(dv.numBins), numSeqs(dv.numSeqs) {}; DataVector(ifstream&); - ~DataVector(){}; + virtual ~DataVector(){}; // virtual int getNumBins() { return numBins; } // virtual int getNumSeqs() { return numSeqs; } @@ -37,12 +37,13 @@ public: void setLabel(string l) { label = l; } string getLabel() { return label; } - //virtual RAbundVector getRAbundVector() = 0; + virtual RAbundVector getRAbundVector() = 0; virtual SAbundVector getSAbundVector() = 0; virtual OrderVector getOrderVector(map* hold = NULL) = 0; protected: string label; + MothurOut* m; // int maxRank; // int numBins; // int numSeqs;