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