42 if (
os_) *
os_ <<
"test(): indexed=\"" << boolalpha << indexed <<
"\"\n";
52 serializer.
write(oss, tiny);
54 if (
os_) *
os_ <<
"oss:\n" << oss.str() << endl;
56 shared_ptr<istream> is(
new istringstream(oss.str()));
84 unit_assert(sl->chromatogramIdentity(0).index == 0);
85 unit_assert(sl->chromatogramIdentity(0).id ==
"tic");
87 s = sl->chromatogram(0,
true);
89 vector<TimeIntensityPair> pairs;
90 s->getTimeIntensityPairs(pairs);
92 for (
int i=0; i<15; i++)
93 unit_assert(pairs[i].time==i && pairs[i].intensity==15-i);
97 s = sl->chromatogram(1,
true);
101 unit_assert(sl->chromatogramIdentity(1).index == 1);
102 unit_assert(sl->chromatogramIdentity(1).id ==
"sic");
105 s->getTimeIntensityPairs(pairs);
107 for (
int i=0; i<10; i++)
108 unit_assert(pairs[i].time==i && pairs[i].intensity==(10-i));
122 int main(
int argc,
char* argv[])
128 if (argc>1 && !strcmp(argv[1],
"-v"))
os_ = &cout;
int main(int argc, char *argv[])
Description of the way in which a particular software was used.
MSData <-> mzML stream serialization.
boost::shared_ptr< Index_mzML > Index_mzML_Ptr
boost::shared_ptr< ChromatogramList > ChromatogramListPtr
void write(std::ostream &os, const MSData &msd, const pwiz::util::IterationListenerRegistry *iterationListenerRegistry=0) const
write MSData object to ostream as mzML; iterationListenerRegistry may be used to receive progress upd...
boost::shared_ptr< DataProcessing > DataProcessingPtr
PWIZ_API_DECL void initializeTiny(IdentData &mzid)
Serializer_mzML configuration.
std::vector< DataProcessingPtr > dataProcessingPtrs
list and descriptions of data processing applied to this data.
bool indexed
(indexed==true): read/write with <indexedmzML> wrapper
#define TEST_PROLOG(argc, argv)
This is the root element of ProteoWizard; it represents the mzML element, defined as: intended to cap...
boost::shared_ptr< Chromatogram > ChromatogramPtr