]> git.donarmstrong.com Git - mothur.git/blobdiff - readmatrix.hpp
Revert to previous commit
[mothur.git] / readmatrix.hpp
diff --git a/readmatrix.hpp b/readmatrix.hpp
new file mode 100644 (file)
index 0000000..49ae294
--- /dev/null
@@ -0,0 +1,44 @@
+#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