##// END OF EJS Templates
Removed CMake scripts :)
Removed CMake scripts :)

File last commit:

r75:41273d8529cd
r93:63c6ae3895dd
Show More
DataSeriesType.h
55 lines | 1.4 KiB | text/x-c | CLexer
First init from SciQLop Core module...
r0 #ifndef SCIQLOP_DATASERIESTYPE_H
#define SCIQLOP_DATASERIESTYPE_H
WIP Multicomponent TS...
r75 #include <Data/MultiComponentTimeSerie.h>
Fixed all tests \o/ with new TS impl...
r68 #include <Data/ScalarTimeSerie.h>
#include <Data/SpectrogramTimeSerie.h>
#include <Data/VectorTimeSerie.h>
First init from SciQLop Core module...
r0 #include <QString>
Added new TS classes and tiny cleanup...
r60 enum class DataSeriesType
{
New TimeSeries integration WIP...
r62 NONE,
Added new TS classes and tiny cleanup...
r60 SCALAR,
VECTOR,
WIP Multicomponent TS...
r75 MULTICOMPONENT,
New TimeSeries integration WIP...
r62 SPECTROGRAM
Added new TS classes and tiny cleanup...
r60 };
First init from SciQLop Core module...
r0
Added new TS classes and tiny cleanup...
r60 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;
}
WIP Multicomponent TS...
r75 else if(type.toLower() == QStringLiteral("multicomponent"))
{
return DataSeriesType::MULTICOMPONENT;
}
Added new TS classes and tiny cleanup...
r60 else
First init from SciQLop Core module...
r0 {
New TimeSeries integration WIP...
r62 return DataSeriesType::NONE;
First init from SciQLop Core module...
r0 }
Added new TS classes and tiny cleanup...
r60 }
Fixed all tests \o/ with new TS impl...
r68 static DataSeriesType type(TimeSeries::ITimeSerie* ts)
{
if(!ts) return DataSeriesType::NONE;
if(dynamic_cast<ScalarTimeSerie*>(ts)) return DataSeriesType::SCALAR;
if(dynamic_cast<VectorTimeSerie*>(ts)) return DataSeriesType::VECTOR;
WIP Multicomponent TS...
r75 if(dynamic_cast<MultiComponentTimeSerie*>(ts))
return DataSeriesType::MULTICOMPONENT;
Fixed all tests \o/ with new TS impl...
r68 if(dynamic_cast<SpectrogramTimeSerie*>(ts))
return DataSeriesType::SPECTROGRAM;
return DataSeriesType::NONE;
}
First init from SciQLop Core module...
r0 };
#endif // SCIQLOP_DATASERIESTYPE_H