32 using namespace pwiz::identdata;
33 using namespace pwiz::identdata::examples;
40 (*os_) <<
"*** Beginning testSerializeRead() ***\n";
42 string testStr =
"scan\trt\tmz\tscore\tscoretype\tpeptide\tprotein\n"
43 "1\t1.01\t100.1\t0.5\tmascot\tVAGWE\tvague protein\n"
44 "2\t2.02\t200.0\t0.9\tmascot\tCERTAIN\tcertain protein\n";
46 shared_ptr<istringstream> iss(
new istringstream(testStr));
50 serializer.
read(iss, mzid);
55 (*os_) <<
"mzIdentML output:\n";
61 (*os_) <<
"*** Ending testSerializeRead() ***\n";
67 (*os_) <<
"*** Beginning testSerializeWrite() ***\n";
74 serializer.
write(oss, mzid);
77 (*os_) << oss.str() << endl;
80 (*os_) <<
"*** Ending testSerializeRead() ***\n";
89 int main(
int argc,
char** argv)
95 if (argc>1 && !strcmp(argv[1],
"-v"))
os_ = &cout;