31 using namespace pwiz::util;
 
   32 using namespace pwiz::minimxml;
 
   34 using namespace pwiz::identdata;
 
   35 namespace proteome = pwiz::proteome;
 
   36 using boost::iostreams::stream_offset;
 
   40 template <
typename object_type>
 
   43     if (
os_) *
os_ << 
"testObject(): " << 
typeid(a).name() << endl;
 
   50     if (
os_) *
os_ << oss.str() << endl;
 
   55     istringstream iss(oss.str());
 
   61     if (diff && 
os_) *
os_ << 
"diff:\n" << diff_string<TextWriter>(
diff) << endl;
 
   68     if (
os_) *
os_ << 
"testIdentifiable\n" ;
 
   80     if (
os_) *
os_ << 
"testIdentifiableParamContainer\n" ;
 
   95     if (
os_) *
os_ << 
"testCV\n" ;
 
  109     if (
os_) *
os_ << 
"testBibliographicReference\n" ;
 
  130     if (
os_) *
os_ << 
"testPerson\n" ;
 
  152     if (
os_) *
os_ << 
"testOrganization\n" ;
 
  170     if (
os_) *
os_ << 
"testContactRole\n" ;
 
  182     if (
os_) *
os_ << 
"testProvider\n" ;
 
  195     if (
os_) *
os_ << 
"testSample\n" ;
 
  212     if (
os_) *
os_ << 
"testAnalysisSoftware\n" ;
 
  218     ContactRolePtr cont = ContactRolePtr(
new ContactRole());
 
  230     if (
os_) *
os_ << 
"testAnalysisSampleCollection\n" ;
 
  322     if (
os_) *
os_ << 
"testSpectrumIdentification\n" ;
 
  339     if (
os_) *
os_ << 
"testProteinDetection\n" ;
 
  355     if (
os_) *
os_ << 
"testAnalysisCollection\n" ;
 
  360     b->activityDate = 
"abc";
 
  370     if (
os_) *
os_ << 
"testSearchModification\n" ;
 
  387     if (
os_) *
os_ << 
"testEnzyme\n" ;
 
  407     if (
os_) *
os_ << 
"testEnzymes\n" ;
 
  413     a.
enzymes.back()->siteRegexp = 
"pxegeRetiS";
 
  421     if (
os_) *
os_ << 
"testResidue\n" ;
 
  434     if (
os_) *
os_ << 
"testAmbiguousResidue\n" ;
 
  489     a.
massTable.back()->msLevel.push_back(1);
 
  490     a.
massTable.back()->msLevel.push_back(2);
 
  495     FilterPtr b(
new Filter());
 
  508     a.
id=
"PDP_MascotParser_1";
 
  586     b->location = 
"blah";
 
  594     d->location = 
"bleh";
 
  630     a.
index.push_back(0);
 
  631     a.
index.push_back(1);
 
  632     a.
index.push_back(2);
 
  633     a.
index.push_back(3);
 
  742     b->dbSequencePtr = DBSequencePtr(
new DBSequence(
"dbs_ref"));
 
  763     c->spectrumID = 
"sID";
 
  790     b->numSequencesSearched = 5;
 
  809     c->numSequencesSearched = 5;
 
  831         if (
os_) *
os_ << oss.str() << endl;
 
  836         istringstream iss(oss.str());
 
  846             si->spectrumIdentificationListPtr.reset();
 
  854         if (diff && 
os_) *
os_ << 
"diff:\n" << diff << endl;
 
  910 int main(
int argc, 
char* argv[])
 
  916         if (argc>1 && !strcmp(argv[1],
"-v")) 
os_ = &cout;