X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=readmatrix.hpp;fp=readmatrix.hpp;h=49ae2946fda42c49c8475b040ac8f7e3f5617499;hb=0caf3fbabaa3ece404f8ce77f4c883dc5b1bf1dc;hp=0000000000000000000000000000000000000000;hpb=1b73ff67c83892a025e597dabd9df6fe7b58206a;p=mothur.git diff --git a/readmatrix.hpp b/readmatrix.hpp new file mode 100644 index 0000000..49ae294 --- /dev/null +++ b/readmatrix.hpp @@ -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