dseq.h

Go to the documentation of this file.
00001 #ifndef DNA_SEQUENCE
00002 #define DNA_SEQUENCE
00003 #include <iostream>
00004 #include "gberr.h"
00005 //file dseq.h
00006 /* to handle the sequence part of genbank sequence */
00007 
00008 class dseq
00009 {
00010         public:
00011                 /* ln may contain the first line or it will read from ins. 
00012                  * return 0 for normal reading, 1 for sequence composition error
00013                  */
00014                 int input(istream &ins, char ln[]) throw(gberr); 
00015 
00016                 void write(ostream &ous, const int bpl=70) const; //bpl base per line
00017                 dseq();
00018                 dseq(const dseq &ds);
00019                 dseq &operator=(const dseq &ds);
00020                 ~dseq();
00021                 void subseq(char *&sb, int s, int f) const;
00022                 //start index 1 as appose to 0 in C++
00023 
00024         private:
00025                 char *seq;
00026                 int len;             // the correct length of the DNA sequence
00027                 int A, C, G, T, O;
00028                 static const int LL=82;
00029 };
00030 
00031 #endif

Generated on Wed Aug 10 11:56:57 2011 for Softwares from Orpara by  doxygen 1.5.6