41 const size_t tinyCopyCount = 3;
43 vector<MSDataPtr> tinyExamples;
44 for (
size_t i=0; i < tinyCopyCount; ++i)
47 MSData& msd = *tinyExamples.back();
49 msd.
id = msd.
run.
id =
"tiny" + lexical_cast<string>(i);
67 for (
size_t i=0; i < tinyCopyCount; ++i)
70 string expectedPrefix =
"tiny" + lexical_cast<string>(i) +
"_";
79 for (
size_t index=0; index < sl.
size(); ++index)
97 spectrum->sourceFilePtr);
104int main(
int argc,
char* argv[])
110 if (argc>1 && !strcmp(argv[1],
"-v"))
os_ = &cout;
int main(int argc, char *argv[])
Interface for accessing spectra, which may be stored in memory or backed by a data file (RAW,...
virtual size_t size() const =0
returns the number of spectra
virtual SpectrumPtr spectrum(size_t index, bool getBinaryData=false) const =0
retrieve a spectrum by index
virtual const SpectrumIdentity & spectrumIdentity(size_t index) const =0
access to a spectrum index
MS_centroid_spectrum
centroid spectrum: Processing of profile data to produce spectra that contains discrete peaks of zero...
MS_MSn_spectrum
MSn spectrum: MSn refers to multi-stage MS2 experiments designed to record product ion spectra where ...
PWIZ_API_DECL void initializeTiny(MSData &msd)
boost::shared_ptr< MSData > MSDataPtr
boost::shared_ptr< Spectrum > SpectrumPtr
bool hasCVParam(CVID cvid) const
returns true iff cvParams contains exact cvid (recursive)
FileContent fileContent
this summarizes the different types of spectra that can be expected in the file. This is expected to ...
std::vector< SourceFilePtr > sourceFilePtrs
list and descriptions of the source files this mzML document was generated or derived from.
This is the root element of ProteoWizard; it represents the mzML element, defined as: intended to cap...
Run run
a run in mzML should correspond to a single, consecutive and coherent set of scans on an instrument.
std::string id
an optional id for the mzML document. It is recommended to use LSIDs when possible.
FileDescription fileDescription
information pertaining to the entire mzML file (i.e. not specific to any part of the data set) is sto...
std::string id
a unique identifier for this run.
SpectrumListPtr spectrumListPtr
all mass spectra and the acquisitions underlying them are described and attached here....
Identifying information for a spectrum.
std::string id
a unique identifier for this spectrum. It should be expected that external files may use this identif...
size_t index
the zero-based, consecutive index of the spectrum in the SpectrumList.
#define TEST_PROLOG(argc, argv)