##// END OF EJS Templates
Separate the initialization of the properties of the graph of the update of the units of the graph....
Separate the initialization of the properties of the graph of the update of the units of the graph. The initialization of the properties is carried out when adding a variable in the graph, the update of the units is carried out when loading the data of this variable

File last commit:

r1249:cfb378b17442
r1254:41b7c6aab8be
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