5 #include <QRegularExpressionMatch>
10 #include "../pappsoexception.h"
11 #include "../exception/exceptionoutofrange.h"
15 qRegisterMetaType<pappso::DataPoint>(
"pappso::DataPoint");
19 qRegisterMetaType<pappso::DataPointCstSPtr>(
"pappso::DataPointCstSPtr");
41 :
x(pair.first),
y(pair.second)
57 return std::make_shared<const DataPoint>(*
this);
80 QRegularExpressionMatch regExpMatch;
84 if(!regExpMatch.hasMatch())
89 double key = regExpMatch.captured(1).toDouble(&ok);
96 double val = regExpMatch.captured(3).toDouble(&ok);
126 return QString(
"(%1,%2)").arg(
x, 0,
'f', 15).arg(
y, 0,
'f', 15);
147 QString(
"error in QDataStream unserialize operator>> of massSpectrum "
148 "dataPoint:\nread datastream failed status=%1")
174 return ((
x == other.
x) && (
y == other.
y));