2025-03-17 09:30:54 +00:00
|
|
|
#ifndef FILE_MANAGER_H
|
|
|
|
|
#define FILE_MANAGER_H
|
|
|
|
|
|
|
|
|
|
#include <QString>
|
|
|
|
|
#include <QFile>
|
2025-04-12 13:02:37 +00:00
|
|
|
#include <QVector>
|
|
|
|
|
#include <QDir>
|
2025-03-17 09:30:54 +00:00
|
|
|
|
|
|
|
|
#include "protocol.h"
|
2025-04-12 13:02:37 +00:00
|
|
|
#include "global.h"
|
2025-03-17 09:30:54 +00:00
|
|
|
|
|
|
|
|
namespace FileManager{
|
2025-03-19 07:19:45 +00:00
|
|
|
const QString ExperimentDirPath = QDir::currentPath()+"/../experiment_data";
|
|
|
|
|
const QString SampleDataFloder = ExperimentDirPath + "/sample_data";
|
|
|
|
|
const QString BaseLineFolder = ExperimentDirPath + "/base_line";
|
|
|
|
|
const QString AnalysisStateFolder = ExperimentDirPath + "/analysis_state";
|
|
|
|
|
|
2025-04-14 09:11:01 +00:00
|
|
|
extern Global::ExperimentInfo _expeInfo;
|
2025-03-17 13:35:08 +00:00
|
|
|
extern QFile _expeFile;
|
2025-03-17 13:16:16 +00:00
|
|
|
|
2025-03-17 13:35:08 +00:00
|
|
|
void createExperimentFile();
|
2025-03-17 13:16:16 +00:00
|
|
|
void writeExperimentFile(const CommonData&);
|
2025-03-21 09:28:36 +00:00
|
|
|
void close();
|
2025-03-17 09:30:54 +00:00
|
|
|
|
2025-04-12 13:02:37 +00:00
|
|
|
void readExperimentFile(const QString fileName,QVector<Global::ExperimentData>&);
|
2025-03-19 07:19:45 +00:00
|
|
|
|
2025-03-17 09:30:54 +00:00
|
|
|
void test();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|