X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=readmatrix.hpp;h=49ae2946fda42c49c8475b040ac8f7e3f5617499;hb=4c302368ef34f0d897afefc7853edf86fb45b9f3;hp=d8f9bd11eff62b07593c29e728c35c5ddcf2ac2f;hpb=02909d6cae9963ba00dc746969a370fa8ca934fc;p=mothur.git diff --git a/readmatrix.hpp b/readmatrix.hpp index d8f9bd1..49ae294 100644 --- a/readmatrix.hpp +++ b/readmatrix.hpp @@ -14,17 +14,16 @@ #include "listvector.hpp" #include "sparsematrix.hpp" #include "nameassignment.hpp" -#include "globaldata.hpp" class SparseMatrix; class ReadMatrix { public: - ReadMatrix(){ D = new SparseMatrix(); } + ReadMatrix(){ D = new SparseMatrix(); m = MothurOut::getInstance(); } virtual ~ReadMatrix() {} - virtual void read(NameAssignment*){}; - virtual void read(GlobalData* globaldata){}; + virtual int read(NameAssignment*){ return 1; } + void setCutoff(float c) { cutoff = c; } SparseMatrix* getMatrix() { return D; } ListVector* getListVector() { return list; } @@ -35,8 +34,9 @@ public: protected: SparseMatrix* D; ListVector* list; - GlobalData* globaldata; float cutoff; + MothurOut* m; + bool sim; };