]> git.donarmstrong.com Git - mothur.git/blobdiff - formatmatrix.h
added formatmatrix, formatcolumn, and formatphylip classes. Used these classes in...
[mothur.git] / formatmatrix.h
diff --git a/formatmatrix.h b/formatmatrix.h
new file mode 100644 (file)
index 0000000..a02ef6c
--- /dev/null
@@ -0,0 +1,43 @@
+#ifndef FORMATMATRIX_H
+#define FORMATMATRIX_H
+
+/*
+ *  formatmatrix.h
+ *  Mothur
+ *
+ *  Created by westcott on 1/13/10.
+ *  Copyright 2010 Schloss Lab. All rights reserved.
+ *
+ */
+
+#include "mothur.h"
+#include "listvector.hpp"
+#include "nameassignment.hpp"
+
+
+//**********************************************************************************************************************
+
+class FormatMatrix {
+
+public:
+       FormatMatrix(){ }
+       virtual ~FormatMatrix() {}
+       
+       virtual void read(NameAssignment*){};
+       
+       void setCutoff(float c)                 {       cutoff = c;                     }
+       ListVector* getListVector()             {       return list;            }
+       string getFormattedFileName()   {       return distFile;        }
+       vector<int> getRowPositions()   {       return rowPos;          }
+       
+protected:
+       ListVector* list;
+       float cutoff;
+       string distFile;
+       vector<int> rowPos;
+};
+
+//**********************************************************************************************************************
+
+#endif
+