Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
Classes | Public Member Functions | List of all members
FASTAFile Class Reference

This class serves for reading in FASTA files. More...

#include <OpenMS/FORMAT/FASTAFile.h>

Classes

struct  FASTAEntry
 FASTA entry type (identifier, description and sequence) More...
 

Public Member Functions

 FASTAFile ()
 Copy constructor. More...
 
virtual ~FASTAFile ()
 Destructor. More...
 
void load (const String &filename, std::vector< FASTAEntry > &data)
 loads a FASTA file given by 'filename' and stores the information in 'data' More...
 
void store (const String &filename, const std::vector< FASTAEntry > &data) const
 stores the data given by 'data' at the file 'filename' More...
 

Detailed Description

This class serves for reading in FASTA files.

Constructor & Destructor Documentation

FASTAFile ( )

Copy constructor.

virtual ~FASTAFile ( )
virtual

Destructor.

Member Function Documentation

void load ( const String filename,
std::vector< FASTAEntry > &  data 
)

loads a FASTA file given by 'filename' and stores the information in 'data'

Exceptions
Exception::FileNotFoundis thrown if the file does not exists.
Exception::ParseErroris thrown if the file does not suit to the standard.

Referenced by SimpleSearchEngine::main_(), and TOPPMetaProSIP::main_().

void store ( const String filename,
const std::vector< FASTAEntry > &  data 
) const

stores the data given by 'data' at the file 'filename'

Exceptions
Exception::UnableToCreateFileis thrown if the process is not able to write the file.

OpenMS / TOPP release 2.0.0 Documentation generated on Thu Aug 20 2015 01:44:34 using doxygen 1.8.9.1