]> git.donarmstrong.com Git - mothur.git/blob - readseqs.cpp
00a301de37c382902e088574347f40d2f759081d
[mothur.git] / readseqs.cpp
1 /*
2  *  readseqs.cpp
3  *  Mothur
4  *
5  *  Created by Thomas Ryabin on 5/11/09.
6  *  Copyright 2009 __MyCompanyName__. All rights reserved.
7  *
8  */
9
10 #include "readseqs.h"
11 #include <iostream>
12 #include <fstream>
13
14
15 /*******************************************************************************/
16 ReadSeqs::ReadSeqs(string file) {
17         try {
18                 openInputFile(file, filehandle);
19                 seqFile = file;
20                 globaldata = GlobalData::getInstance();
21         }
22         catch(exception& e) {
23                 cout << "Standard Error: " << e.what() << " has occurred in the ReadTree class Function ReadTree. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
24                 exit(1);
25         }
26         catch(...) {
27                 cout << "An unknown error has occurred in the ReadTree class function ReadTree. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
28                 exit(1);
29         }               
30 }
31 /*******************************************************************************/
32 ReadSeqs::~ReadSeqs(){
33         //for(int i = 0; i < sequencedb.getNumSeqs(); i++)
34                 //delete sequencedb.get(i);
35 }
36 /*******************************************************************************/
37 void ReadSeqs::read() {
38 }
39
40 /*********************************************************************************/
41 SequenceDB* ReadSeqs::getDB() {
42         return &sequencedb;
43 }