35 #ifndef OPENMS_FORMAT_HANDLERS_MZXMLHANDLER_H 36 #define OPENMS_FORMAT_HANDLERS_MZXMLHANDLER_H 51 class MetaInfoInterface;
83 virtual void endElement(
const XMLCh*
const uri,
const XMLCh*
const local_name,
const XMLCh*
const qname);
86 virtual void startElement(
const XMLCh*
const uri,
const XMLCh*
const local_name,
const XMLCh*
const qname,
const xercesc::Attributes& attributes);
89 virtual void characters(
const XMLCh*
const chars,
const XMLSize_t length);
92 void writeTo(std::ostream& os);
109 consumer_ = consumer;
173 inline void writeUserParam_(std::ostream& os,
const MetaInfoInterface& meta,
int indent = 4,
String tag =
"nameValue");
181 void doPopulateSpectraWithData_(
SpectrumData & spectrum_data);
189 void populateSpectraWithData_();
203 void initStaticMembers_();
static const XMLCh * s_precursorintensity_
Definition: MzXMLHandler.h:218
static const XMLCh * s_uri_
Definition: MzXMLHandler.h:233
A more convenient string class.
Definition: String.h:57
Class to encode and decode Base64.
Definition: Base64.h:64
static const XMLCh * s_precision_
Definition: MzXMLHandler.h:214
static const XMLCh * s_peakscount_
Definition: MzXMLHandler.h:222
UInt spec_write_counter_
spectrum counter (spectra without peaks are not written)
Definition: MzXMLHandler.h:157
static const XMLCh * s_value_
Definition: MzXMLHandler.h:205
UInt peak_count_
Definition: MzXMLHandler.h:141
unsigned int UInt
Unsigned integer type.
Definition: Types.h:95
Definition: MzXMLHandler.h:66
Base class for XML handlers.
Definition: XMLHandler.h:110
std::vector< boost::shared_ptr< DataProcessing > > data_processing_
data processing auxiliary variable
Definition: MzXMLHandler.h:192
static const XMLCh * s_startmz_
Definition: MzXMLHandler.h:227
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
static const XMLCh * s_deisotoped_
Definition: MzXMLHandler.h:237
static const XMLCh * s_precursorcharge_
Definition: MzXMLHandler.h:219
static const XMLCh * s_retentiontime_
Definition: MzXMLHandler.h:226
const MapType * cexp_
map pointer for writing
Definition: MzXMLHandler.h:122
static const XMLCh * s_intensitycutoff_
Definition: MzXMLHandler.h:235
static const XMLCh * s_contentType_
Definition: MzXMLHandler.h:216
Interfaces::IMSDataConsumer * consumer_
Consumer class to work on spectra.
Definition: MzXMLHandler.h:160
static const XMLCh * s_chargedeconvoluted_
Definition: MzXMLHandler.h:238
static const XMLCh * s_completiontime_
Definition: MzXMLHandler.h:213
static const XMLCh * s_last_
Definition: MzXMLHandler.h:230
virtual ~MzXMLHandler()
Destructor.
Definition: MzXMLHandler.h:79
String precision_
Definition: MzXMLHandler.h:142
The representation of a 1D spectrum.
Definition: MSSpectrum.h:67
static const XMLCh * s_scantype_
Definition: MzXMLHandler.h:224
static const XMLCh * s_byteorder_
Definition: MzXMLHandler.h:215
static const XMLCh * s_polarity_
Definition: MzXMLHandler.h:223
static const XMLCh * s_first_
Definition: MzXMLHandler.h:229
UInt getScanCount()
Gets the scan count.
Definition: MzXMLHandler.h:101
MSExperiment PeakMap
Two-dimensional map of raw data points or peaks.
Definition: StandardTypes.h:59
PeakFileOptions options_
Options for loading and storing.
Definition: MzXMLHandler.h:125
A 1-dimensional raw data point or peak.
Definition: Peak1D.h:55
void setOptions(const PeakFileOptions &options)
Sets the options.
Definition: MzXMLHandler.h:95
static const XMLCh * s_filetype_
Definition: MzXMLHandler.h:211
static const XMLCh * s_filename_
Definition: MzXMLHandler.h:210
static const XMLCh * s_filterline_
Definition: MzXMLHandler.h:225
Int nesting_level_
Definition: MzXMLHandler.h:130
static const XMLCh * s_filesha1_
Definition: MzXMLHandler.h:212
static const XMLCh * s_email_
Definition: MzXMLHandler.h:232
static const XMLCh * s_version_
Definition: MzXMLHandler.h:209
String compressionType_
Definition: MzXMLHandler.h:143
std::vector< SpectrumData > spectrum_data_
Vector of spectrum data stored for later parallel processing.
Definition: MzXMLHandler.h:150
void setMSDataConsumer(Interfaces::IMSDataConsumer *consumer)
Set the IMSDataConsumer consumer which will consume the read data.
Definition: MzXMLHandler.h:107
MapType::PeakType PeakType
Peak type.
Definition: MzXMLHandler.h:115
static const XMLCh * s_endmz_
Definition: MzXMLHandler.h:228
PeakMap MapType
XML handler for MzDataFile.
Definition: MzDataHandler.h:61
SpectrumType spectrum
Definition: MzXMLHandler.h:145
static const XMLCh * s_type_
Definition: MzXMLHandler.h:207
UInt scan_count_
Consumer class to work on spectra.
Definition: MzXMLHandler.h:163
static const XMLCh * s_compressionType_
Definition: MzXMLHandler.h:217
static const XMLCh * s_centroided_
Definition: MzXMLHandler.h:236
The interface of a consumer of spectra and chromatograms.
Definition: IMSDataConsumer.h:68
Base class for all classes that want to report their progress.
Definition: ProgressLogger.h:55
MSSpectrum SpectrumType
Spectrum type.
Definition: MzXMLHandler.h:117
String char_rest_
Definition: MzXMLHandler.h:144
bool skip_spectrum_
Flag that indicates whether this spectrum should be skipped (due to options)
Definition: MzXMLHandler.h:154
Data necessary to generate a single spectrum.
Definition: MzXMLHandler.h:139
Base64 decoder_
Definition: MzXMLHandler.h:129
static const XMLCh * s_mslevel_
Definition: MzXMLHandler.h:221
static const XMLCh * s_windowwideness_
Definition: MzXMLHandler.h:220
static const XMLCh * s_name_
Definition: MzXMLHandler.h:208
Options for loading files containing peak data.
Definition: PeakFileOptions.h:48
const ProgressLogger & logger_
Progress logging class.
Definition: MzXMLHandler.h:166
static const XMLCh * s_num_
Definition: MzXMLHandler.h:234
bool skip_data
Definition: MzXMLHandler.h:146
int Int
Signed integer type.
Definition: Types.h:103
MapType * exp_
map pointer for reading
Definition: MzXMLHandler.h:120
static const XMLCh * s_count_
Definition: MzXMLHandler.h:206
static const XMLCh * s_phone_
Definition: MzXMLHandler.h:231
MSSpectrum SpectrumType
Definition: MzDataHandler.h:62