22#ifndef _DELIMWRITER_HPP_
23#define _DELIMWRITER_HPP_
40 DelimWriter(std::ostream* os = 0,
char delim =
'\t',
bool headers =
false)
41 :
os_(os), delim_(delim), headers_(headers)
47 return this->write(t);
50 template<
typename object_type>
51 std::ostream*
write(
const std::vector<object_type>& v)
53 std::for_each(v.begin(), v.end(), (*
this));
57 template<
typename object_type>
58 std::ostream*
write(
const boost::shared_ptr<object_type>& pob)
80 operator bool()
const;
std::ostream * operator()(const T &t)
std::ostream * write(const boost::shared_ptr< object_type > &pob)
std::ostream * write(const SpectrumIdentificationList &sir)
std::ostream * write(const SpectrumIdentificationResult &sir)
std::vector< std::string > line_type
std::ostream * writeHeaders()
DelimWriter(std::ostream *os=0, char delim='\t', bool headers=false)
std::ostream * write(const line_type &line)
std::ostream * write(const SpectrumIdentificationItem &sii)
std::ostream * write(const std::vector< object_type > &v)
std::ostream * write(const PeptideEvidence &pe)
std::ostream * write(const IdentData &mzid)
Implementation of the MzIdentMLType from the mzIdentML schema.
Implementation of PeptideEvidenceType from the mzIdentML schema.
Implementation of SpectrumIdentificationItemType from the mzIdentML schema.
Implementation of SpectrumIdentificationListType from the mzIdentML schema.
Implementation of SpectrumIdentificationResultType from the mzIdentML schema.