X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=sequence.hpp;h=95c3e51839029393798dc2f57848d5e325c6c2df;hb=b447f829850ae054e42560c7c3ed71b14f3f40bb;hp=929ca781ba9906c736bc83e2a79b556b583651f2;hpb=5b7ac70116137b52dd7884b76c5bca660a5fea38;p=mothur.git diff --git a/sequence.hpp b/sequence.hpp index 929ca78..95c3e51 100644 --- a/sequence.hpp +++ b/sequence.hpp @@ -13,10 +13,9 @@ * to set and get these values for the other classes where they are needed. * * */ -using namespace std; #include "mothur.h" - +#include "mothurout.h" /**************************************************************************************************/ @@ -25,12 +24,19 @@ public: Sequence(); Sequence(string, string); Sequence(ifstream&); + Sequence(istringstream&); + + //these constructors just set the unaligned string to save space + Sequence(string, string, string); + Sequence(ifstream&, string); + Sequence(istringstream&, string); void setName(string); void setUnaligned(string); void setPairwise(string); void setAligned(string); void setLength(); + void reverseComplement(); string convert2ints(); string getName(); @@ -47,7 +53,12 @@ public: void printSequence(ostream&); private: + MothurOut* m; void initialize(); + string getSequenceString(ifstream&); + string getCommentString(ifstream&); + string getSequenceString(istringstream&); + string getCommentString(istringstream&); string name; string unaligned; string aligned;