ProteoWizard
Public Types | Public Member Functions | Private Attributes
pwiz::identdata::DelimWriter Class Reference

#include <DelimWriter.hpp>

List of all members.

Public Types

typedef std::vector< std::string > line_type

Public Member Functions

 DelimWriter (std::ostream *os=0, char delim= '\t', bool headers=false)
template<typename T >
std::ostream * operator() (const T &t)
template<typename object_type >
std::ostream * write (const std::vector< object_type > &v)
template<typename object_type >
std::ostream * write (const boost::shared_ptr< object_type > &pob)
std::ostream * writeHeaders ()
std::ostream * write (const IdentData &mzid)
std::ostream * write (const SpectrumIdentificationList &sir)
std::ostream * write (const SpectrumIdentificationResult &sir)
std::ostream * write (const SpectrumIdentificationItem &sii)
std::ostream * write (const PeptideEvidence &pe)
std::ostream * write (const line_type &line)
 operator bool () const

Private Attributes

std::ostream * os_
char delim_
bool headers_
line_type current_line

Detailed Description

Definition at line 34 of file DelimWriter.hpp.


Member Typedef Documentation

typedef std::vector<std::string> pwiz::identdata::DelimWriter::line_type

Definition at line 37 of file DelimWriter.hpp.


Constructor & Destructor Documentation

pwiz::identdata::DelimWriter::DelimWriter ( std::ostream *  os = 0,
char  delim = '\t',
bool  headers = false 
)
inline

Definition at line 40 of file DelimWriter.hpp.

: os_(os), delim_(delim), headers_(headers)
{}

Member Function Documentation

template<typename T >
std::ostream* pwiz::identdata::DelimWriter::operator() ( const T &  t)
inline

Definition at line 45 of file DelimWriter.hpp.

References write().

{
return this->write(t);
}
template<typename object_type >
std::ostream* pwiz::identdata::DelimWriter::write ( const std::vector< object_type > &  v)
inline

Definition at line 51 of file DelimWriter.hpp.

References os_.

{
std::for_each(v.begin(), v.end(), (*this));
return os_;
}
template<typename object_type >
std::ostream* pwiz::identdata::DelimWriter::write ( const boost::shared_ptr< object_type > &  pob)
inline

Definition at line 58 of file DelimWriter.hpp.

References os_.

{
if (pob.get())
return (*this)(*pob);
return os_;
}
std::ostream* pwiz::identdata::DelimWriter::writeHeaders ( )
std::ostream* pwiz::identdata::DelimWriter::write ( const IdentData mzid)
std::ostream* pwiz::identdata::DelimWriter::write ( const SpectrumIdentificationList sir)
std::ostream* pwiz::identdata::DelimWriter::write ( const SpectrumIdentificationResult sir)
std::ostream* pwiz::identdata::DelimWriter::write ( const SpectrumIdentificationItem sii)
std::ostream* pwiz::identdata::DelimWriter::write ( const PeptideEvidence pe)
std::ostream* pwiz::identdata::DelimWriter::write ( const line_type line)
pwiz::identdata::DelimWriter::operator bool ( ) const

Member Data Documentation

std::ostream* pwiz::identdata::DelimWriter::os_
private

Definition at line 83 of file DelimWriter.hpp.

char pwiz::identdata::DelimWriter::delim_
private

Definition at line 84 of file DelimWriter.hpp.

bool pwiz::identdata::DelimWriter::headers_
private

Definition at line 85 of file DelimWriter.hpp.

line_type pwiz::identdata::DelimWriter::current_line
private

Definition at line 87 of file DelimWriter.hpp.


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