#ifndef _STRINGSTRAND_H #define _STRINGSTRAND_H #include #include using namespace std; #include "strand.h" /* * Concrete implementation of Strand using strings * to store DNA strands. Functions include * cutWith (see strand.h) and DNA subclass functions * (see dna.h) * * StringStrand s("xxx"); // only AGTC in "xxx" are processed * // and converted to lower case * * Owen Astrachan */ class StringStrand : public Strand { public: StringStrand(); StringStrand(const string& s); virtual ~StringStrand(); virtual void read(istream& input); virtual Strand * cutWith(const Restrictor& enzyme); virtual int size() const; virtual void print(ostream& out) const; virtual string toString() const; private: string myString; }; #endif