11#include <xercesc/parsers/XercesDOMParser.hpp>
12#include <xercesc/dom/DOM.hpp>
17#include <QCryptographicHash>
22using namespace xercesc;
97 XercesDOMParser* parser;
98 DOMDocument* document;
101 bool use_64bit_float_mz_precision;
102 bool use_64bit_float_intensity_precision;
103 vector<cImzMLItem> imzmlitems;
130 int parse(
string& filename,
int& defaultmaxx,
int& defaultmaxy,
int& defaultpixelsizex,
int& defaultpixelsizey,
eVendorType& vendor);
173 void write(
string& filename);
imzML parser.
Definition: cImzML.h:95
vector< cImzMLItem > & getItems()
Get a vector of cImzML items.
Definition: cImzML.cpp:986
~cImzML()
The destructor.
Definition: cImzML.cpp:19
void write(string &filename)
Write an imzml file.
Definition: cImzML.cpp:1006
void updateRawDataToPeakList(vector< cPeaksList > &peaklists, string &convertedibdfilename)
Update values after conversion of profile spectra into centroid spectra.
Definition: cImzML.cpp:616
bool use64BitMzPrecision()
Check the precision of mz values.
Definition: cImzML.cpp:996
bool hasProfileSpectra()
Check if the file contains profile spectra.
Definition: cImzML.cpp:991
bool use64BitIntensityPrecision()
Check the precision of intensity values.
Definition: cImzML.cpp:1001
int parse(string &filename, int &defaultmaxx, int &defaultmaxy, int &defaultpixelsizex, int &defaultpixelsizey, eVendorType &vendor)
Parse an imzml file.
Definition: cImzML.cpp:24
cImzML()
The constructor.
Definition: cImzML.cpp:7
The class representing a peak list.
Definition: cPeaksList.h:68
A parsed imzML item.
Definition: cImzML.h:31
long long unsigned mzlength
Length of m/z values array in ibd file (in bytes).
Definition: cImzML.h:54
string title
Title.
Definition: cImzML.h:72
cImzMLItem()
The constructor.
Definition: cImzML.h:78
int x
Image - x coordinate.
Definition: cImzML.h:36
long long unsigned intensitylength
Length of intensity values array in ibd file (in bytes).
Definition: cImzML.h:66
long long unsigned mzstart
Starting offset of m/z values array in ibd file (in bytes).
Definition: cImzML.h:48
long long unsigned intensitystart
Starting offset of intensity values array in ibd file (in bytes).
Definition: cImzML.h:60
int y
Image - y coordinate.
Definition: cImzML.h:42
eVendorType
Vendor types.
Definition: utilities.h:82