Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Examples  

bioinfo::fasta Class Template Reference

fasta : read and write multi fasta files. More...

#include <fasta.h>

Inheritance diagram for bioinfo::fasta:

Inheritance graph
[legend]
Collaboration diagram for bioinfo::fasta:

Collaboration graph
[legend]
List of all members.

Public Methods

 fasta ()
 creates an empty list to be filled later.

 fasta (const std::string &)
 reads and stores a multi fasta file in memory from a file. More...

 ~fasta ()
 destructor.

void write (const std::string &) const
 writes multifasta file to a file. More...

void read (const std::string &)

Detailed Description

template<typename seqtype = std::string> class bioinfo::fasta

fasta : read and write multi fasta files.

fasta IS-A std::list of fasta<seqtype>* template parameter defines the data type to store sequence information in. Defaults to std::std::string

Examples:

main.cc.


Constructor & Destructor Documentation

template<typename seqtype = std::string>
bioinfo::fasta<seqtype>::fasta<seqtype> ( const std::string & )
 

reads and stores a multi fasta file in memory from a file.

Parameters:
const   std::string& : filename of multifasta file


Member Function Documentation

template<typename seqtype = std::string>
void bioinfo::fasta<seqtype>::read ( const std::string & )
 

Parameters:
const   string& = filename read fasta file

template<typename seqtype = std::string>
void bioinfo::fasta<seqtype>::write ( const std::string & ) const
 

writes multifasta file to a file.

Parameters:
const   std::string& : output filename for multifasta data


The documentation for this class was generated from the following files: