@@ -24,11 +24,11 const auto DATE_FORMAT = QStringLiteral("yyyy-MM-ddThh:mm:ss.zzz"); | |||||
24 | const auto RESULT_LINE_SEPARATOR = QRegularExpression{QStringLiteral("\\s+")}; |
|
24 | const auto RESULT_LINE_SEPARATOR = QRegularExpression{QStringLiteral("\\s+")}; | |
25 |
|
25 | |||
26 | /// Regex to find unit in a line. Examples of valid lines: |
|
26 | /// Regex to find unit in a line. Examples of valid lines: | |
27 |
/// ... |
|
27 | /// ... PARAMETER_UNITS : nT ... | |
28 |
/// ... |
|
28 | /// ... PARAMETER_UNITS:nT ... | |
29 |
/// ... |
|
29 | /// ... PARAMETER_UNITS: m² ... | |
30 |
/// ... |
|
30 | /// ... PARAMETER_UNITS : m/s ... | |
31 |
const auto UNIT_REGEX = QRegularExpression{QStringLiteral(" |
|
31 | const auto UNIT_REGEX = QRegularExpression{QStringLiteral("\\s*PARAMETER_UNITS\\s*:\\s*(.+)")}; | |
32 |
|
32 | |||
33 | /// Converts a string date to a double date |
|
33 | /// Converts a string date to a double date | |
34 | /// @return a double that represents the date in seconds, NaN if the string date can't be converted |
|
34 | /// @return a double that represents the date in seconds, NaN if the string date can't be converted |
General Comments 0
You need to be logged in to leave comments.
Login now