]> git.donarmstrong.com Git - mothur.git/blob - sequencedb.h
filterseqscommand added
[mothur.git] / sequencedb.h
1 #ifndef SEQUENCEDB_H
2 #define SEQUENCEDB_H
3
4 /*
5  *  sequencedb.h
6  *  Mothur
7  *
8  *  Created by Thomas Ryabin on 4/13/09.
9  *  Copyright 2009 __MyCompanyName__. All rights reserved.
10  *
11  */
12
13
14 using namespace std;
15
16 #include "sequence.hpp"
17 #include "calculator.h"
18
19
20
21
22 class SequenceDB {
23         
24 public:
25         SequenceDB();
26         SequenceDB(int);           //makes data that size
27         SequenceDB(ifstream&);     //reads file to fill data
28 //      ~SequenceDB();             //loops through data and delete each sequence
29
30         int getNumSeqs();
31         
32         void set(int, string);     //unaligned - should also set length
33         void set(int, Sequence);   //unaligned - should also set length
34         Sequence get(int);         //returns sequence name at that location
35         void add(Sequence);        //adds unaligned sequence
36         void changeSize(int);      //resizes data
37         void clear();              //clears data - remeber to loop through and delete the sequences inside or you will have a memory leak
38         int size();                //returns datas size
39         void print(ofstream&);      //loops through data using sequence class print
40                 
41 private:
42         vector<Sequence> data;
43
44 };
45
46 #endif