| 1 | // PatMaN DNA pattern matcher |
| 2 | // (C) 2007 Kay Pruefer, Udo Stenzel |
| 3 | // |
| 4 | // This program is free software; you can redistribute it and/or modify |
| 5 | // it under the terms of the GNU General Public License as published by |
| 6 | // the Free Software Foundation; either version 2 of the License, or (at |
| 7 | // your option) any later version. See the LICENSE file for details. |
| 8 | |
| 9 | #ifndef INCLUDED_FASTA_H |
| 10 | #define INCLUDED_FASTA_H |
| 11 | |
| 12 | #include <string> |
| 13 | #include <iostream> |
| 14 | |
| 15 | typedef struct fasta { |
| 16 | std::string seq ; |
| 17 | std::string headerline ; |
| 18 | int null ; |
| 19 | } fasta ; |
| 20 | |
| 21 | class fasta_fac { |
| 22 | public: |
| 23 | fasta_fac( std::istream& i ) : in(i), line(0) { } |
| 24 | fasta* get( ) ; |
| 25 | private: |
| 26 | std::istream& in ; |
| 27 | int line ; |
| 28 | } ; |
| 29 | |
| 30 | #endif |