##// END OF EJS Templates
Implements validation of variable's data (1)...
Implements validation of variable's data (1) Creates helper used to validate data, depending on the server set at compile time

File last commit:

r1121:98220c931c83
r1198:077a4fb03e91
Show More
AmdaResultParserDefs.cpp
49 lines | 2.2 KiB | text/x-c | CppLexer
/ plugins / amda / src / AmdaResultParserDefs.cpp
Alexandre Leroux
Parser refactoring (3)...
r946 #include "AmdaResultParserDefs.h"
Alexandre Leroux
Handles bounds in spectrogram parser (1)...
r984 const QString END_TIME_PROPERTY = QStringLiteral("endTime");
Alexandre Leroux
Spectrograms implementation (2)...
r950 const QString FILL_VALUE_PROPERTY = QStringLiteral("fillValue");
const QString MAX_BANDS_PROPERTY = QStringLiteral("maxBands");
const QString MIN_BANDS_PROPERTY = QStringLiteral("minBands");
const QString MAX_SAMPLING_PROPERTY = QStringLiteral("maxSampling");
const QString MIN_SAMPLING_PROPERTY = QStringLiteral("minSampling");
Alexandre Leroux
Handles bounds in spectrogram parser (1)...
r984 const QString START_TIME_PROPERTY = QStringLiteral("startTime");
Alexandre Leroux
Parser refactoring (3)...
r946 const QString X_AXIS_UNIT_PROPERTY = QStringLiteral("xAxisUnit");
Alexandre Leroux
Spectrograms implementation (2)...
r950 const QString Y_AXIS_UNIT_PROPERTY = QStringLiteral("yAxisUnit");
const QString VALUES_UNIT_PROPERTY = QStringLiteral("valuesUnit");
Alexandre Leroux
Parser refactoring (3)...
r946
Alexandre Leroux
Adds read compatibility for local AMDA server...
r1121 namespace {
const auto PARAMETER_UNITS_REGEX
= QRegularExpression{QStringLiteral("\\s*PARAMETER_UNITS\\s*:\\s*(.*)")};
}
Alexandre Leroux
Parser refactoring (3)...
r946 const QRegularExpression DEFAULT_X_AXIS_UNIT_REGEX
= QRegularExpression{QStringLiteral("-\\s*Units\\s*:\\s*(.+?)\\s*-")};
Alexandre Leroux
Spectrograms implementation (2)...
r950
Alexandre Leroux
Adds read compatibility for local AMDA server...
r1121 const QRegularExpression ALTERNATIVE_X_AXIS_UNIT_REGEX = PARAMETER_UNITS_REGEX;
Alexandre Leroux
Handles bounds in spectrogram parser (2)...
r985 const QRegularExpression SPECTROGRAM_END_TIME_REGEX
= QRegularExpression{QStringLiteral("\\s*INTERVAL_STOP\\s*:\\s*(.*)")};
Alexandre Leroux
Spectrograms implementation (2)...
r950 const QRegularExpression SPECTROGRAM_FILL_VALUE_REGEX
= QRegularExpression{QStringLiteral("\\s*PARAMETER_FILL_VALUE\\s*:\\s*(.*)")};
const QRegularExpression SPECTROGRAM_MAX_BANDS_REGEX
= QRegularExpression{QStringLiteral("\\s*PARAMETER_TABLE_MAX_VALUES\\[0\\]\\s*:\\s*(.*)")};
const QRegularExpression SPECTROGRAM_MIN_BANDS_REGEX
= QRegularExpression{QStringLiteral("\\s*PARAMETER_TABLE_MIN_VALUES\\[0\\]\\s*:\\s*(.*)")};
const QRegularExpression SPECTROGRAM_MAX_SAMPLING_REGEX
= QRegularExpression{QStringLiteral("\\s*DATASET_MAX_SAMPLING\\s*:\\s*(.*)")};
const QRegularExpression SPECTROGRAM_MIN_SAMPLING_REGEX
= QRegularExpression{QStringLiteral("\\s*DATASET_MIN_SAMPLING\\s*:\\s*(.*)")};
Alexandre Leroux
Handles bounds in spectrogram parser (2)...
r985 const QRegularExpression SPECTROGRAM_START_TIME_REGEX
= QRegularExpression{QStringLiteral("\\s*INTERVAL_START\\s*:\\s*(.*)")};
Alexandre Leroux
Spectrograms implementation (2)...
r950 const QRegularExpression SPECTROGRAM_Y_AXIS_UNIT_REGEX
= QRegularExpression{QStringLiteral("\\s*PARAMETER_TABLE_UNITS\\[0\\]\\s*:\\s*(.*)")};
Alexandre Leroux
Adds read compatibility for local AMDA server...
r1121 const QRegularExpression SPECTROGRAM_VALUES_UNIT_REGEX = PARAMETER_UNITS_REGEX;