|
SedSat3 1.1.6
Sediment Source Apportionment Tool - Advanced statistical methods for environmental pollution research
|

Go to the source code of this file.
Functions | |
| bool | parseNumericCell (const QString &text, double &out, QString &error) |
| Parses text as a finite number. | |
| bool | parseNumericValue (const QVariant &value, double &out, QString &error) |
| Parses a spreadsheet cell value as a finite number. | |
| bool | parseNumericJson (const QJsonValue &value, double &out, QString &error) |
| Parses a project-file value as a finite number. | |
| bool parseNumericCell | ( | const QString & | text, |
| double & | out, | ||
| QString & | error ) |
Parses text as a finite number.
| text | Text to parse |
| out | Set to the value if the text is accepted; unchanged otherwise |
| error | Set to the reason if the text is refused |
Definition at line 10 of file numericparsing.cpp.
References number.
Referenced by parseNumericJson(), parseNumericValue(), and Elemental_Profile::Read().
| bool parseNumericJson | ( | const QJsonValue & | value, |
| double & | out, | ||
| QString & | error ) |
Parses a project-file value as a finite number.
JSON numbers are accepted if finite; strings go through parseNumericCell(); null, which is how Qt writes NaN and infinity to a project file, and any other type are refused.
Definition at line 79 of file numericparsing.cpp.
References number, and parseNumericCell().
Referenced by Elemental_Profile::ReadFromJsonObject().
| bool parseNumericValue | ( | const QVariant & | value, |
| double & | out, | ||
| QString & | error ) |
Parses a spreadsheet cell value as a finite number.
Numeric cells are accepted if finite; text cells go through parseNumericCell(); anything else (dates, booleans, errors) is refused.
Definition at line 48 of file numericparsing.cpp.
References number, and parseNumericCell().
Referenced by ReadBracketTolerance(), and ElementTableModel::setData().