##// END OF EJS Templates
Parser refactoring (4)...
Parser refactoring (4) Implements results reading and data series creation Implementation takes some of the basic parser, which will be deleted at the end

File last commit:

r946:49134789d5f3
r947:6f8d3c2b5ba3
Show More
AmdaResultParserDefs.h
35 lines | 977 B | text/x-c | CLexer
/ plugins / amda / include / AmdaResultParserDefs.h
#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 //
// /////////////////// //
// 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