##// END OF EJS Templates
New TimeSeries integration WIP...
New TimeSeries integration WIP Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>

File last commit:

r62:7315812f3839
r62:7315812f3839
Show More
DataSeriesType.h
35 lines | 659 B | text/x-c | CLexer
#ifndef SCIQLOP_DATASERIESTYPE_H
#define SCIQLOP_DATASERIESTYPE_H
#include <QString>
enum class DataSeriesType
{
NONE,
SCALAR,
VECTOR,
SPECTROGRAM
};
struct DataSeriesTypeUtils
{
static DataSeriesType fromString(const QString& type)
{
if(type.toLower() == QStringLiteral("scalar"))
{ return DataSeriesType::SCALAR; }
else if(type.toLower() == QStringLiteral("spectrogram"))
{
return DataSeriesType::SPECTROGRAM;
}
else if(type.toLower() == QStringLiteral("vector"))
{
return DataSeriesType::VECTOR;
}
else
{
return DataSeriesType::NONE;
}
}
};
#endif // SCIQLOP_DATASERIESTYPE_H