2025-04-13T16:15:53

This commit is contained in:
123 2025-04-13 16:15:54 +08:00
parent d82003e707
commit dc94e00d88
4 changed files with 14 additions and 7 deletions

View File

@ -3,6 +3,8 @@
"files.associations": {
"array": "cpp",
"string": "cpp",
"string_view": "cpp"
"string_view": "cpp",
"deque": "cpp",
"vector": "cpp"
}
}

View File

@ -51,16 +51,16 @@ void XlsxHandler::readFile(const QString sourceFilePath)
ei.operatorName = workSheet->cellAt(index++, 2)->value().toString();
ei.phaseSize = workSheet->cellAt(index++, 2)->value().toInt();
QVector<Phase> phaseVtr;
QVector<PhaseTotalInfo> phaseTotalVtr;
for(int i = 0;i < ei.phaseSize;i++){
Phase phase;
readPhaseData(workSheet,phase);
phaseVtr.push_back(phase);
PhaseTotalInfo phaseTotoal;
readPhaseData(workSheet,phaseTotoal);
phaseTotalVtr.push_back(phaseTotoal);
}
}
void XlsxHandler::readPhaseData(QXlsx::Worksheet *workSheet, Phase &phase)
void XlsxHandler::readPhaseData(QXlsx::Worksheet *workSheet,const int index, PhaseTotalInfo &phase)
{
const int startIndex = 9;
#if 0

View File

@ -9,7 +9,7 @@
namespace XlsxHandler {
void test();
void readFile(const QString filePath);
void readPhaseData(QXlsx::Worksheet*,Phase&);
void readPhaseData(QXlsx::Worksheet*,const int index,PhaseTotalInfo&);
}
#endif // XLSX_H

View File

@ -53,6 +53,11 @@ public:
QString operatorName;
int phaseSize;
};
struct PhaseTotalInfo{
int phaseIndex;
Phase phase;
QVector<ExperimentData> dataVtr;
};
QVector<QPair<QCPCurve*,QVector<Global::ExperimentData>>> _curveDataVtr;