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)
66 std::ostream* writeHeaders();
78 std::ostream*
write(
const line_type& line);
80 operator bool()
const;
93 #endif // _DELIMWRITER_HPP_
std::vector< std::string > line_type
Implementation of PeptideEvidenceType from the mzIdentML schema.
DelimWriter(std::ostream *os=0, char delim='\t', bool headers=false)
std::ostream * write(const std::vector< object_type > &v)
Implementation of SpectrumIdentificationResultType from the mzIdentML schema.
std::ostream * write(const boost::shared_ptr< object_type > &pob)
std::ostream * operator()(const T &t)
PWIZ_API_DECL void write(minimxml::XMLWriter &writer, const CV &cv)
Implementation of the MzIdentMLType from the mzIdentML schema.
Implementation of SpectrumIdentificationItemType from the mzIdentML schema.
Implementation of SpectrumIdentificationListType from the mzIdentML schema.