30 #include "../../pappsoexception.h"
31 #include "../../precision.h"
47 const QString &localName [[maybe_unused]],
49 const QXmlAttributes &attributes)
64 "ERROR in XtandemPresetSaxHandler::startElement "
65 "root tag %1 is not <bioml>")
86 "ERROR in XtandemPresetSaxHandler::startElement "
87 "tag %1, PAPPSO exception:\n%2")
89 .arg(exception_pappso.
qwhat());
92 catch(
const std::exception &exception_std)
95 "ERROR in XtandemPresetSaxHandler::startElement "
96 "tag %1, std exception:\n%2")
98 .arg(exception_std.what());
107 const QString &localName [[maybe_unused]],
108 const QString &qName)
127 "ERROR in XtandemPresetSaxHandler::endElement tag "
128 "%1, PAPPSO exception:\n%2")
130 .arg(exception_pappso.
qwhat());
133 catch(
const std::exception &exception_std)
136 "ERROR in XtandemPresetSaxHandler::endElement tag "
137 "%1, std exception:\n%2")
139 .arg(exception_std.what());
173 "Parse error at line %1, column %2 :\n"
175 .arg(exception.lineNumber())
176 .arg(exception.columnNumber())
177 .arg(exception.message());
187 "Parse error at line %1, column %2 :\n"
189 .arg(exception.lineNumber())
190 .arg(exception.columnNumber())
191 .arg(exception.message());
212 if(attributes.value(
"type") ==
"input")
235 else if(
m_currentLabel ==
"spectrum, fragment monoisotopic mass error units")
243 else if(
m_currentLabel ==
"spectrum, fragment monoisotopic mass error")
264 QString filter_suite;
267 QString charge_decon_filter = QString(
"chargeDeconvolution|%1")
268 .arg(precision->
toString().replace(
" ",
""));
272 QString mz_exclusion_filter =
273 QString(
"mzExclusion|%1").arg(precision_exclu->
toString().replace(
" ",
""));
274 filter_suite = charge_decon_filter +
" " + mz_exclusion_filter;
virtual const QString & qwhat() const
virtual QString toString() const =0
static PrecisionPtr getPrecisionPtrInstance(PrecisionUnit unit, double value)
get a precision pointer instance
QString errorString() const
bool endDocument() override
bool startDocument() override
bool characters(const QString &str) override
bool endElement(const QString &namespaceURI, const QString &localName, const QString &qName) override
double m_ms2precisionValue
XtandemPresetSaxHandler()
std::vector< QString > m_tagStack
int getNumberOfThreads() const
const QString getMs2FiltersOptions() const
bool fatalError(const QXmlParseException &exception) override
bool error(const QXmlParseException &exception) override
PrecisionUnit m_ms2precisionUnit
~XtandemPresetSaxHandler()
bool startElement(const QString &namespaceURI, const QString &localName, const QString &qName, const QXmlAttributes &attributes) override
bool startElement_note(QXmlAttributes attributes)
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
read tandem preset file to get centroid parameters and number of threads