--- /dev/null
+#ifndef READMATRIX_HPP
+#define READMATRIX_HPP
+
+/*
+ * readmatrix.hpp
+ *
+ *
+ * Created by Pat Schloss on 8/13/08.
+ * Copyright 2008 Patrick D. Schloss. All rights reserved.
+ *
+ */
+
+#include "mothur.h"
+#include "listvector.hpp"
+#include "sparsematrix.hpp"
+#include "nameassignment.hpp"
+
+class SparseMatrix;
+
+class ReadMatrix {
+
+public:
+ 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; }
+// OrderVector* getOrderVector() { return order; }
+
+ int successOpen;
+
+protected:
+ SparseMatrix* D;
+ ListVector* list;
+ float cutoff;
+ MothurOut* m;
+ bool sim;
+};
+
+
+
+#endif