##// END OF EJS Templates
Removed old IDataProvider interface, added small tweak in downloader...
Removed old IDataProvider interface, added small tweak in downloader to lower CPU usage while waiting for DL, VCTransaction does not push anymore nullptr Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>

File last commit:

r0:86b06c4cec3c
r28:a05b0ab23493
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