Functions | Variables
Pep2MzIdentTest.cpp File Reference
#include "Pep2MzIdent.hpp"
#include "Serializer_mzid.hpp"
#include <iostream>
#include <string>

Go to the source code of this file.


void test ()
int main (int argc, char **argv)


ostream * os_ = NULL
const char * samplePepXML = "</msms_pipeline_analysis>\n"

Function Documentation

void test ( )

Definition at line 89 of file Pep2MzIdentTest.cpp.

References os_, pwiz::data::pepxml::MSMSPipelineAnalysis::read(), samplePepXML, pwiz::identdata::Pep2MzIdent::translate(), and pwiz::identdata::Serializer_mzIdentML::write().

istringstream iss(samplePepXML);;
Pep2MzIdent translator(mspa);
IdentDataPtr result(translator.translate());
ostringstream oss;
serializer.write(oss, *result);
if (os_)
*os_ << oss.str() << endl;
int main ( int  argc,
char **  argv 

Definition at line 107 of file Pep2MzIdentTest.cpp.

References os_, and test().

if (argc>1 && !strcmp(argv[1],"-v")) os_ = &cout;
cout << "\ntesting Pep2MzIdent ... \n" << endl;
return 0;

Variable Documentation

ostream* os_ = NULL

Definition at line 31 of file Pep2MzIdentTest.cpp.

const char* samplePepXML = "</msms_pipeline_analysis>\n"

Definition at line 33 of file Pep2MzIdentTest.cpp.