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": { "files.associations": {
"array": "cpp", "array": "cpp",
"string": "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.operatorName = workSheet->cellAt(index++, 2)->value().toString();
ei.phaseSize = workSheet->cellAt(index++, 2)->value().toInt(); ei.phaseSize = workSheet->cellAt(index++, 2)->value().toInt();
QVector<Phase> phaseVtr; QVector<PhaseTotalInfo> phaseTotalVtr;
for(int i = 0;i < ei.phaseSize;i++){ for(int i = 0;i < ei.phaseSize;i++){
Phase phase; PhaseTotalInfo phaseTotoal;
readPhaseData(workSheet,phase); readPhaseData(workSheet,phaseTotoal);
phaseVtr.push_back(phase); 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; const int startIndex = 9;
#if 0 #if 0

View File

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

View File

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