46 class MetaInfoInterface;
89 void endElement(
const XMLCh*
const uri,
const XMLCh*
const local_name,
const XMLCh*
const qname)
override;
92 void startElement(
const XMLCh*
const uri,
const XMLCh*
const local_name,
const XMLCh*
const qname,
const xercesc::Attributes& attributes)
override;
95 void characters(
const XMLCh*
const chars,
const XMLSize_t length)
override;
115 consumer_ = consumer;
The interface of a consumer of spectra and chromatograms.
Definition: IMSDataConsumer.h:70
Definition: MzXMLHandler.h:68
void init_()
initialize members (call from C'tor)
void doPopulateSpectraWithData_(SpectrumData &spectrum_data)
Fill a single spectrum with data from input.
UInt getScanCount() const
Gets the scan count.
Definition: MzXMLHandler.h:107
String precision_
Definition: MzXMLHandler.h:147
UInt peak_count_
Definition: MzXMLHandler.h:146
UInt spec_write_counter_
spectrum counter (spectra without peaks are not written)
Definition: MzXMLHandler.h:162
MapType * exp_
map pointer for reading
Definition: MzXMLHandler.h:126
LOADDETAIL getLoadDetail() const override
handler which support partial loading, implement this method
void endElement(const XMLCh *const uri, const XMLCh *const local_name, const XMLCh *const qname) override
~MzXMLHandler() override
Destructor.
Definition: MzXMLHandler.h:79
MzXMLHandler()
Not implemented.
void setOptions(const PeakFileOptions &options)
Sets the options.
Definition: MzXMLHandler.h:101
void writeUserParam_(std::ostream &os, const MetaInfoInterface &meta, int indent=4, const String &tag="nameValue")
write metaInfo to xml (usually in nameValue-tag)
void writeTo(std::ostream &os) override
Write the contents to a stream.
Interfaces::IMSDataConsumer * consumer_
Consumer class to work on spectra.
Definition: MzXMLHandler.h:165
MzXMLHandler(const MapType &exp, const String &filename, const String &version, const ProgressLogger &logger)
Constructor for a write-only handler.
const ProgressLogger & logger_
Progress logging class.
Definition: MzXMLHandler.h:171
std::vector< SpectrumData > spectrum_data_
Vector of spectrum data stored for later parallel processing.
Definition: MzXMLHandler.h:155
std::vector< boost::shared_ptr< DataProcessing > > data_processing_
data processing auxiliary variable
Definition: MzXMLHandler.h:198
void setLoadDetail(const LOADDETAIL d) override
handler which support partial loading, implement this method
MSSpectrum SpectrumType
Spectrum type.
Definition: MzXMLHandler.h:123
void setMSDataConsumer(Interfaces::IMSDataConsumer *consumer)
Set the IMSDataConsumer consumer which will consume the read data.
Definition: MzXMLHandler.h:113
PeakFileOptions options_
Options for loading and storing.
Definition: MzXMLHandler.h:131
MapType::PeakType PeakType
Peak type.
Definition: MzXMLHandler.h:121
UInt scan_count_
Consumer class to work on spectra.
Definition: MzXMLHandler.h:168
void populateSpectraWithData_()
Populate all spectra on the stack with data from input.
bool skip_data
Definition: MzXMLHandler.h:151
bool skip_spectrum_
Flag that indicates whether this spectrum should be skipped (due to options)
Definition: MzXMLHandler.h:159
MzXMLHandler(MapType &exp, const String &filename, const String &version, ProgressLogger &logger)
Constructor for a read-only handler.
bool writeAttributeIfExists_(std::ostream &os, const MetaInfoInterface &meta, const String &metakey, const String &attname)
Int nesting_level_
Definition: MzXMLHandler.h:135
void characters(const XMLCh *const chars, const XMLSize_t length) override
const MapType * cexp_
map pointer for writing
Definition: MzXMLHandler.h:128
String char_rest_
Definition: MzXMLHandler.h:149
void startElement(const XMLCh *const uri, const XMLCh *const local_name, const XMLCh *const qname, const xercesc::Attributes &attributes) override
String compressionType_
Definition: MzXMLHandler.h:148
SpectrumType spectrum
Definition: MzXMLHandler.h:150
Data necessary to generate a single spectrum.
Definition: MzXMLHandler.h:145
Base class for XML handlers.
Definition: XMLHandler.h:326
LOADDETAIL
Definition: XMLHandler.h:349
In-Memory representation of a mass spectrometry run.
Definition: MSExperiment.h:72
The representation of a 1D spectrum.
Definition: MSSpectrum.h:70
A 1-dimensional raw data point or peak.
Definition: Peak1D.h:54
Options for loading files containing peak data.
Definition: PeakFileOptions.h:48
Base class for all classes that want to report their progress.
Definition: ProgressLogger.h:53
A more convenient string class.
Definition: String.h:60
int Int
Signed integer type.
Definition: Types.h:102
unsigned int UInt
Unsigned integer type.
Definition: Types.h:94
MSExperiment PeakMap
Two-dimensional map of raw data points or peaks.
Definition: StandardTypes.h:61
IMSDataConsumer IMSDataConsumer
Definition: IMSDataConsumer.h:127
MSSpectrum SpectrumType
Definition: MzDataHandler.h:60
PeakMap MapType
XML handler for MzDataFile.
Definition: MzDataHandler.h:59
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:48