]> git.donarmstrong.com Git - mothur.git/blobdiff - datavector.hpp
pca command
[mothur.git] / datavector.hpp
index b3c7c90d018ee960e02b281b4f72b1e39601d51b..3ecd407bb35af63aa4a88f31722c469c219bc0a2 100644 (file)
@@ -3,6 +3,7 @@
 
 
 #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. */
@@ -15,11 +16,12 @@ class SharedListVector;
 class SharedOrderVector;
 class SharedSAbundVector;
 class SharedRAbundVector;
+class SharedRAbundFloatVector;
 
 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&);
@@ -32,6 +34,7 @@ public:
        virtual void resize(int) = 0;
        virtual int size()      = 0;
        virtual void print(ostream&) = 0;
+       virtual void clear() = 0;
        
        void setLabel(string l)         {       label = l;                      }
        string getLabel()                       {       return label;           }
@@ -42,6 +45,7 @@ public:
        
 protected:
        string label;
+       MothurOut* m;
 //     int maxRank;
 //     int numBins;
 //     int numSeqs;