]> git.donarmstrong.com Git - mothur.git/blob - readmatrix.hpp
fixed some bugs
[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 #include "globaldata.hpp"
18
19 class SparseMatrix;
20
21 class ReadMatrix {
22
23 public:
24         ReadMatrix(){   D = new SparseMatrix(); }
25         virtual ~ReadMatrix() {}
26         virtual void read(NameAssignment*){};
27         virtual void read(GlobalData* globaldata){};
28         void setCutoff(float c)                 {       cutoff = c;             }
29         SparseMatrix* getMatrix()               {       return D;               }
30         ListVector* getListVector()             {       return list;    }
31 //      OrderVector* getOrderVector()   {       return order;   }
32
33         int successOpen;
34         
35 protected:
36         SparseMatrix* D;
37         ListVector* list;
38         GlobalData* globaldata;
39         float cutoff;
40 };
41
42
43
44 #endif