ProteoWizard
|
#include "Serializer_MGF.hpp"
#include "Serializer_mzML.hpp"
#include "Diff.hpp"
#include "TextWriter.hpp"
#include "pwiz/utility/misc/unit.hpp"
#include "pwiz/utility/misc/Filesystem.hpp"
#include "pwiz/utility/misc/Std.hpp"
Go to the source code of this file.
Functions | |
void | initializeTinyMGF (MSData &msd) |
void | testWriteRead (const MSData &msd) |
void | testWriteRead () |
int | main (int argc, char *argv[]) |
Variables | |
ostream * | os_ = 0 |
void initializeTinyMGF | ( | MSData & | msd | ) |
Definition at line 40 of file Serializer_MGF_Test.cpp.
References pwiz::msdata::Spectrum::defaultArrayLength, pwiz::msdata::FileDescription::fileContent, pwiz::msdata::MSData::fileDescription, pwiz::msdata::Spectrum::getIntensityArray(), pwiz::msdata::Spectrum::getMZArray(), pwiz::msdata::SpectrumIdentity::id, pwiz::msdata::SpectrumIdentity::index, MS_base_peak_intensity, MS_base_peak_m_z, MS_centroid_spectrum, MS_charge_state, MS_highest_observed_m_z, MS_lowest_observed_m_z, MS_m_z, MS_ms_level, MS_MSn_spectrum, MS_negative_scan, MS_no_combination, MS_number_of_counts, MS_peak_intensity, MS_positive_scan, MS_possible_charge_state, MS_scan_start_time, MS_selected_ion_m_z, MS_spectrum_title, MS_total_ion_current, pwiz::msdata::Spectrum::precursors, pwiz::msdata::MSData::run, pwiz::msdata::Spectrum::scanList, pwiz::msdata::ScanList::scans, pwiz::msdata::Precursor::selectedIons, pwiz::data::ParamContainer::set(), pwiz::msdata::Spectrum::setMZIntensityArrays(), pwiz::msdata::Run::spectrumListPtr, and UO_second.
Referenced by testWriteRead().
void testWriteRead | ( | const MSData & | msd | ) |
Definition at line 141 of file Serializer_MGF_Test.cpp.
References diff(), pwiz::msdata::DiffConfig::ignoreChromatograms, pwiz::msdata::DiffConfig::ignoreIdentity, os_, pwiz::msdata::Serializer_MGF::read(), unit_assert, pwiz::msdata::Serializer_MGF::write(), pwiz::msdata::Serializer_mzML::write(), and write().
Referenced by main(), testThreadSafetyWorker(), and testWriteRead().
void testWriteRead | ( | ) |
Definition at line 178 of file Serializer_MGF_Test.cpp.
References initializeTinyMGF(), and testWriteRead().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 187 of file Serializer_MGF_Test.cpp.
References e(), os_, TEST_EPILOG, TEST_FAILED, TEST_PROLOG, and testWriteRead().
ostream* os_ = 0 |
Definition at line 37 of file Serializer_MGF_Test.cpp.