ProteoWizard
Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
pwiz::proteome::Reader_FASTA Class Reference

FASTA -> ProteomeData stream serialization. More...

#include <Reader_FASTA.hpp>

Inheritance diagram for pwiz::proteome::Reader_FASTA:
pwiz::proteome::Reader

Classes

struct  Config
 Reader_FASTA configuration. More...
 

Public Member Functions

 Reader_FASTA (const Config &config=Config())
 constructor More...
 
const char * getType () const
 
virtual std::string identify (const std::string &uri, boost::shared_ptr< std::istream > uriStreamPtr) const
 return file type iff Reader recognizes the file, else empty; More...
 
virtual void read (const std::string &uri, boost::shared_ptr< std::istream > uriStreamPtr, ProteomeData &result) const
 fill in the ProteomeData structure More...
 
- Public Member Functions inherited from pwiz::proteome::Reader
bool accept (const std::string &uri, boost::shared_ptr< std::istream > uriStreamPtr) const
 return true iff Reader recognizes the file as one it should handle More...
 
virtual void read (const std::string &uri, ProteomeData &result) const
 fill in the ProteomeData structure from a new URI stream More...
 
virtual ~Reader ()
 

Private Member Functions

 Reader_FASTA (Reader_FASTA &)
 
Reader_FASTAoperator= (Reader_FASTA &)
 

Private Attributes

Config config_
 

Detailed Description

FASTA -> ProteomeData stream serialization.

Definition at line 38 of file Reader_FASTA.hpp.

Constructor & Destructor Documentation

§ Reader_FASTA() [1/2]

pwiz::proteome::Reader_FASTA::Reader_FASTA ( const Config config = Config())

constructor

§ Reader_FASTA() [2/2]

pwiz::proteome::Reader_FASTA::Reader_FASTA ( Reader_FASTA )
private

Member Function Documentation

§ getType()

const char* pwiz::proteome::Reader_FASTA::getType ( ) const
inlinevirtual

Implements pwiz::proteome::Reader.

Definition at line 54 of file Reader_FASTA.hpp.

References pwiz::identdata::IO::read().

54 {return "FASTA";}

§ identify()

virtual std::string pwiz::proteome::Reader_FASTA::identify ( const std::string &  uri,
boost::shared_ptr< std::istream >  uriStreamPtr 
) const
virtual

return file type iff Reader recognizes the file, else empty;

note: for formats requiring a 3rd party DLL identify() should return non-empty if it recognized the format, even though reading may fail if the 3rd party DLL isn't actually present Reader may filter based on URI and/or contents of the file

Implements pwiz::proteome::Reader.

§ read()

virtual void pwiz::proteome::Reader_FASTA::read ( const std::string &  uri,
boost::shared_ptr< std::istream >  uriStreamPtr,
ProteomeData result 
) const
virtual

fill in the ProteomeData structure

Implements pwiz::proteome::Reader.

§ operator=()

Reader_FASTA& pwiz::proteome::Reader_FASTA::operator= ( Reader_FASTA )
private

Member Data Documentation

§ config_

Config pwiz::proteome::Reader_FASTA::config_
private

Definition at line 65 of file Reader_FASTA.hpp.


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