##// END OF EJS Templates
Spectrograms implementation (1)...
Spectrograms implementation (1) - Adds ValueType for spectrograms - Inits helper and calls it in the parser

File last commit:

r989:64a6137ab3a2
r990:2da9b0f28a10
Show More
AmdaResultParserDefs.h
40 lines | 1.2 KiB | text/x-c | CLexer
/ plugins / amda / include / AmdaResultParserDefs.h
Alexandre Leroux
Parser refactoring (3)...
r987 #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;
extern const QString X_AXIS_UNIT_PROPERTY;
// /////////////////// //
// Regular expressions //
// /////////////////// //
Alexandre Leroux
Parser refactoring (5)...
r989 // 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)...
r987 // 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;
#endif // SCIQLOP_AMDARESULTPARSERDEFS_H