ProteoWizard
Classes | Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
pwiz::identdata::Serializer_Text Class Reference

Serializer_Text reads in and writes out an id file in tab format. More...

#include <Serializer_Text.hpp>

List of all members.

Classes

struct  Config
 < Controls the format of the text file. More...

Public Types

enum  IdField {
  None = 0, Scan = 1, Rt = 2, Mz = 3,
  Charge = 4, Score = 5, ScoreType = 6, Peptide = 7,
  Protein = 8, ProteinDescription = 9, Last = ProteinDescription
}
 List of fields available. More...

Public Member Functions

 Serializer_Text (const Config &config=Config())
 Constructor with Config.
void write (std::ostream &os, const IdentData &mzid, const pwiz::util::IterationListenerRegistry *iterationListenerRegistry=0) const
 writes IdentData object to ostream as a text table
void read (boost::shared_ptr< std::istream > is, IdentData &mzid) const
 read in IdentData object from a delimited text fromat.

Static Public Member Functions

static const std::string * getIdFieldNames ()

Private Member Functions

 Serializer_Text (Serializer_Text &)
Serializer_Textoperator= (Serializer_Text &)

Private Attributes

boost::shared_ptr< Impl > impl_

Detailed Description

Serializer_Text reads in and writes out an id file in tab format.

Definition at line 38 of file Serializer_Text.hpp.


Member Enumeration Documentation

List of fields available.

Enumerator:
None 
Scan 
Rt 
Mz 
Charge 
Score 
ScoreType 
Peptide 
Protein 
ProteinDescription 
Last 

Definition at line 42 of file Serializer_Text.hpp.


Constructor & Destructor Documentation

pwiz::identdata::Serializer_Text::Serializer_Text ( const Config config = Config())

Constructor with Config.

pwiz::identdata::Serializer_Text::Serializer_Text ( Serializer_Text )
private

Member Function Documentation

static const std::string* pwiz::identdata::Serializer_Text::getIdFieldNames ( )
static
void pwiz::identdata::Serializer_Text::write ( std::ostream &  os,
const IdentData mzid,
const pwiz::util::IterationListenerRegistry iterationListenerRegistry = 0 
) const

writes IdentData object to ostream as a text table

Referenced by testSerializeWrite().

void pwiz::identdata::Serializer_Text::read ( boost::shared_ptr< std::istream >  is,
IdentData mzid 
) const

read in IdentData object from a delimited text fromat.

Referenced by testSerializeRead().

Serializer_Text& pwiz::identdata::Serializer_Text::operator= ( Serializer_Text )
private

Member Data Documentation

boost::shared_ptr<Impl> pwiz::identdata::Serializer_Text::impl_
private

Definition at line 83 of file Serializer_Text.hpp.


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