#include "listvector.hpp"
#include "sparsematrix.hpp"
#include "nameassignment.hpp"
-#include "globaldata.hpp"
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(); }
+ virtual ~ReadMatrix() {}
+ virtual int read(NameAssignment*){ return 1; }
+
void setCutoff(float c) { cutoff = c; }
SparseMatrix* getMatrix() { return D; }
ListVector* getListVector() { return list; }
protected:
SparseMatrix* D;
ListVector* list;
- GlobalData* globaldata;
float cutoff;
+ MothurOut* m;
+ bool sim;
};