]> git.donarmstrong.com Git - mothur.git/blob - readmatrix.hpp
working on adding count file to mgcluster
[mothur.git] / readmatrix.hpp
1 #ifndef READMATRIX_HPP
2 #define READMATRIX_HPP
3
4 /*
5  *  readmatrix.hpp
6  *  
7  *
8  *  Created by Pat Schloss on 8/13/08.
9  *  Copyright 2008 Patrick D. Schloss. All rights reserved.
10  *
11  */
12
13 #include "mothur.h"
14 #include "listvector.hpp"
15 #include "sparsematrix.hpp"
16 #include "nameassignment.hpp"
17
18 class SparseMatrix;
19
20 class ReadMatrix {
21
22 public:
23         ReadMatrix(){   D = new SparseMatrix();  m = MothurOut::getInstance();  }
24         virtual ~ReadMatrix() {}
25         virtual int read(NameAssignment*){ return 1; }
26         
27         void setCutoff(float c)                 {       cutoff = c;             }
28         SparseMatrix* getMatrix()               {       return D;               }
29         ListVector* getListVector()             {       return list;    }
30 //      OrderVector* getOrderVector()   {       return order;   }
31
32         int successOpen;
33         
34 protected:
35         SparseMatrix* D;
36         ListVector* list;
37         float cutoff;
38         MothurOut* m;
39         bool sim;
40 };
41
42
43
44 #endif