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