]> git.donarmstrong.com Git - mothur.git/blob - readseqsphylip.h
13c0202dd48eba1c692658e4219abe70d0525eea
[mothur.git] / readseqsphylip.h
1 #ifndef READPHYLIP_H
2 #define READPHYLIP_H
3
4 /*
5  *  readphylip.h
6  *  Mothur
7  *
8  *  Created by Thomas Ryabin on 4/24/09.
9  *  Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
10  *
11  */
12 using namespace std;
13
14 #include "globaldata.hpp"
15 #include "sequencedb.h"
16 #include "mothur.h"
17
18 /**********************************************************************************/
19
20 class ReadPhylip {
21
22         public:
23                 ReadPhylip(string);
24                 ~ReadPhylip();
25                 void read();
26                 SequenceDB* getDB();            
27         
28         private:
29                 GlobalData* globaldata;
30                 string phylipFile;
31                 ifstream filehandle;
32                 SequenceDB sequencedb;
33                 int readOk; // readOk = 0 means success, readOk = 1 means error(s).
34                 
35                 bool isSeq(string);
36 };
37
38 #endif