]> git.donarmstrong.com Git - mothur.git/blob - readmatrix.hpp
broke apart read matrix file
[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 void read(NameAssignment*){};
26         virtual void read(GlobalData* globaldata){};
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         GlobalData* globaldata;
38         float cutoff;
39 };
40
41
42
43 #endif