X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=sequencedb.h;fp=sequencedb.h;h=f31fc320c698de446cae90f6eb11e4c83bf96eb9;hp=0000000000000000000000000000000000000000;hb=c196b6b4768ccb84955d773ff0f22e4994d1ba7b;hpb=dc08123b7f14e2305e5bb2b3a8fcef96fc829b07 diff --git a/sequencedb.h b/sequencedb.h new file mode 100644 index 0000000..f31fc32 --- /dev/null +++ b/sequencedb.h @@ -0,0 +1,46 @@ +#ifndef SEQUENCEDB_H +#define SEQUENCEDB_H + +/* + * sequencedb.h + * Mothur + * + * Created by Thomas Ryabin on 4/13/09. + * Copyright 2009 __MyCompanyName__. All rights reserved. + * + */ + + +using namespace std; + +#include "sequence.hpp" +#include "calculator.h" + + + + +class SequenceDB { + +public: + SequenceDB(); + SequenceDB(int); //makes data that size + SequenceDB(ifstream&); //reads file to fill data +// ~SequenceDB(); //loops through data and delete each sequence + + int getNumSeqs(); + + void set(int, string); //unaligned - should also set length + void set(int, Sequence); //unaligned - should also set length + Sequence get(int); //returns sequence name at that location + void add(Sequence); //adds unaligned sequence + void changeSize(int); //resizes data + void clear(); //clears data - remeber to loop through and delete the sequences inside or you will have a memory leak + int size(); //returns datas size + void print(ostream&); //loops through data using sequence class print + +private: + vector data; + +}; + +#endif