]> git.donarmstrong.com Git - mothur.git/blob - readmatrix.hpp
Merge remote-tracking branch 'mothur/master'
[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 "nameassignment.hpp"
16 #include "counttable.h"
17 #include "sparsedistancematrix.h"
18
19 class SparseMatrix;
20
21 class ReadMatrix {
22
23 public:
24         ReadMatrix(){ DMatrix = new SparseDistanceMatrix(); m = MothurOut::getInstance();  }
25         virtual ~ReadMatrix() {}
26         virtual int read(NameAssignment*){ return 1; }
27     virtual int read(CountTable*){ return 1; }
28         
29         void setCutoff(float c)                 {       cutoff = c;             }
30     SparseDistanceMatrix* getDMatrix()          {       return DMatrix;         }
31         ListVector* getListVector()             {       return list;    }
32
33         int successOpen;
34         
35 protected:
36     SparseDistanceMatrix* DMatrix;
37         ListVector* list;
38         float cutoff;
39         MothurOut* m;
40         bool sim;
41 };
42
43
44
45 #endif