Go to the documentation of this file.
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;
93 #endif // _DELIMWRITER_HPP_
Implementation of SpectrumIdentificationItemType from the mzIdentML schema.
Implementation of PeptideEvidenceType from the mzIdentML schema.
std::ostream * writeHeaders()
Implementation of SpectrumIdentificationResultType from the mzIdentML schema.
std::ostream * write(const SpectrumIdentificationItem &sii)
PWIZ_API_DECL void write(minimxml::XMLWriter &writer, const CV &cv)
std::ostream * write(const line_type &line)
std::ostream * write(const IdentData &mzid)
Implementation of the MzIdentMLType from the mzIdentML schema.
std::vector< std::string > line_type
DelimWriter(std::ostream *os=0, char delim='\t', bool headers=false)
std::ostream * write(const PeptideEvidence &pe)
std::ostream * write(const std::vector< object_type > &v)
std::ostream * write(const SpectrumIdentificationResult &sir)
Implementation of SpectrumIdentificationListType from the mzIdentML schema.
std::ostream * write(const SpectrumIdentificationList &sir)
std::ostream * operator()(const T &t)
std::ostream * write(const boost::shared_ptr< object_type > &pob)