X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=readmatrix.hpp;h=31a4da49c8decf24b75b059db4890d377fa54aef;hb=19b2ab858fcf2684213f741a0e7ac9c727f06362;hp=66480e7a6999ed90830f45a730c49ab4b850c73f;hpb=154e089bcd37c2c2f773e53ffb88a20170b27037;p=mothur.git diff --git a/readmatrix.hpp b/readmatrix.hpp index 66480e7..31a4da4 100644 --- a/readmatrix.hpp +++ b/readmatrix.hpp @@ -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; };