##// END OF EJS Templates
Fixed tests due to async var creation, plus minor stuff...
Fixed tests due to async var creation, plus minor stuff A variable is created synchronously but its data is get in background so tests have now to wait until the variable is ready before checking its state. VC should have a [] operator, it's a model feature. The new data provider interface implies that each call only ask for one range, this has been reflected in its parameters. Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>

File last commit:

r0:86b06c4cec3c
r30:02d2d8643fcb
Show More
DataSeriesType.h
26 lines | 686 B | text/x-c | CLexer
#ifndef SCIQLOP_DATASERIESTYPE_H
#define SCIQLOP_DATASERIESTYPE_H
#include <QString>
enum class DataSeriesType { SCALAR, SPECTROGRAM, VECTOR, UNKNOWN };
struct DataSeriesTypeUtils {
static DataSeriesType fromString(const QString &type)
{
if (type == QStringLiteral("scalar")) {
return DataSeriesType::SCALAR;
}
else if (type == QStringLiteral("spectrogram")) {
return DataSeriesType::SPECTROGRAM;
}
else if (type == QStringLiteral("vector")) {
return DataSeriesType::VECTOR;
}
else {
return DataSeriesType::UNKNOWN;
}
}
};
#endif // SCIQLOP_DATASERIESTYPE_H