]> git.donarmstrong.com Git - mothur.git/blobdiff - readmatrix.hpp
worked on trim.seqs
[mothur.git] / readmatrix.hpp
index 66480e7a6999ed90830f45a730c49ab4b850c73f..31a4da49c8decf24b75b059db4890d377fa54aef 100644 (file)
@@ -21,9 +21,10 @@ class SparseMatrix;
 class ReadMatrix {
 
 public:
-       ReadMatrix(){   D = new SparseMatrix(); }
-       virtual void read(NameAssignment*){};
-       virtual void read(GlobalData* globaldata){};
+       ReadMatrix(){   D = new SparseMatrix();  m = MothurOut::getInstance();   globaldata = GlobalData::getInstance(); }
+       virtual ~ReadMatrix() {}
+       virtual int read(NameAssignment*){ return 1; }
+       
        void setCutoff(float c)                 {       cutoff = c;             }
        SparseMatrix* getMatrix()               {       return D;               }
        ListVector* getListVector()             {       return list;    }
@@ -36,6 +37,8 @@ protected:
        ListVector* list;
        GlobalData* globaldata;
        float cutoff;
+       MothurOut* m;
+       bool sim;
 };