##// END OF EJS Templates
Completes fuzzing test structure by setting initial range for the time controller
Completes fuzzing test structure by setting initial range for the time controller

File last commit:

r1121:98220c931c83
r1178:324a3ee21c58
Show More
AmdaResultParserDefs.h
79 lines | 2.7 KiB | text/x-c | CLexer
/ plugins / amda / include / AmdaResultParserDefs.h
Alexandre Leroux
Parser refactoring (3)...
r946 #ifndef SCIQLOP_AMDARESULTPARSERDEFS_H
#define SCIQLOP_AMDARESULTPARSERDEFS_H
#include <QtCore/QRegularExpression>
#include <QtCore/QString>
#include <QtCore/QVariantHash>
// ////////// //
// Properties //
// ////////// //
/// Alias to represent properties read in the header of AMDA file
using Properties = QVariantHash;
Alexandre Leroux
Handles bounds in spectrogram parser (1)...
r984 extern const QString END_TIME_PROPERTY;
Alexandre Leroux
Spectrograms implementation (2)...
r950 extern const QString FILL_VALUE_PROPERTY;
extern const QString MAX_BANDS_PROPERTY;
extern const QString MIN_BANDS_PROPERTY;
extern const QString MAX_SAMPLING_PROPERTY;
extern const QString MIN_SAMPLING_PROPERTY;
Alexandre Leroux
Handles bounds in spectrogram parser (1)...
r984 extern const QString START_TIME_PROPERTY;
Alexandre Leroux
Parser refactoring (3)...
r946 extern const QString X_AXIS_UNIT_PROPERTY;
Alexandre Leroux
Spectrograms implementation (2)...
r950 extern const QString Y_AXIS_UNIT_PROPERTY;
extern const QString VALUES_UNIT_PROPERTY;
Alexandre Leroux
Parser refactoring (3)...
r946
// /////////////////// //
// Regular expressions //
// /////////////////// //
Alexandre Leroux
Parser refactoring (5)...
r948 // AMDA V2
// /// Regex to find the header of the data in the file. This header indicates the end of comments
// in the file
// const auto DATA_HEADER_REGEX = QRegularExpression{QStringLiteral("#\\s*DATA\\s*:")};
Alexandre Leroux
Parser refactoring (3)...
r946 // AMDA V2
// /// ... PARAMETER_UNITS : nT ...
// /// ... PARAMETER_UNITS:nT ...
// /// ... PARAMETER_UNITS: m² ...
// /// ... PARAMETER_UNITS : m/s ...
// const auto UNIT_REGEX = QRegularExpression{QStringLiteral("\\s*PARAMETER_UNITS\\s*:\\s*(.+)")};
/// Regex to find x-axis unit in a line. Examples of valid lines:
/// ... - Units : nT - ...
/// ... -Units:nT- ...
/// ... -Units: m²- ...
/// ... - Units : m/s - ...
extern const QRegularExpression DEFAULT_X_AXIS_UNIT_REGEX;
Alexandre Leroux
Adds read compatibility for local AMDA server...
r1121 /// Alternative regex to find x-axis unit in a line
extern const QRegularExpression ALTERNATIVE_X_AXIS_UNIT_REGEX;
Alexandre Leroux
Handles bounds in spectrogram parser (2)...
r985 /// Regex to find end time of data in a line for a spectrogram
extern const QRegularExpression SPECTROGRAM_END_TIME_REGEX;
Alexandre Leroux
Spectrograms implementation (2)...
r950 /// Regex to find fill value used in a line for a spectrogram
extern const QRegularExpression SPECTROGRAM_FILL_VALUE_REGEX;
/// Regex to find max bands in a line for a spectrogram
extern const QRegularExpression SPECTROGRAM_MAX_BANDS_REGEX;
/// Regex to find min bands in a line for a spectrogram
extern const QRegularExpression SPECTROGRAM_MIN_BANDS_REGEX;
/// Regex to find max x-axis sampling in a line for a spectrogram
extern const QRegularExpression SPECTROGRAM_MAX_SAMPLING_REGEX;
/// Regex to find min x-axis sampling in a line for a spectrogram
extern const QRegularExpression SPECTROGRAM_MIN_SAMPLING_REGEX;
Alexandre Leroux
Handles bounds in spectrogram parser (2)...
r985 /// Regex to find start time of data in a line for a spectrogram
extern const QRegularExpression SPECTROGRAM_START_TIME_REGEX;
Alexandre Leroux
Spectrograms implementation (2)...
r950 /// Regex to find y-axis unit in a line for a spectrogram
extern const QRegularExpression SPECTROGRAM_Y_AXIS_UNIT_REGEX;
/// Regex to find values unit in a line for a spectrogram
extern const QRegularExpression SPECTROGRAM_VALUES_UNIT_REGEX;
Alexandre Leroux
Parser refactoring (3)...
r946 #endif // SCIQLOP_AMDARESULTPARSERDEFS_H