You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1.0 KiB
C++
35 lines
1.0 KiB
C++
#ifndef CFDSTRUCTDATAMANAGERBASE_H
|
|
#define CFDSTRUCTDATAMANAGERBASE_H
|
|
|
|
#include "CFDStructDataManager_global.h"
|
|
#include "CUIProperty/CUIConfig.h"
|
|
#include "CUIProperty/CUIDefine.h"
|
|
#include "CUIProperty/CUISigsCenter.h"
|
|
#include "rapidjson/document.h"
|
|
#include "rapidjson/stringbuffer.h"
|
|
#include "rapidjson/writer.h"
|
|
#include <QObject>
|
|
|
|
class CFDSTRUCTDATAMANAGER_EXPORT CFDStructDataManagerBase : public QObject {
|
|
Q_OBJECT
|
|
public:
|
|
explicit CFDStructDataManagerBase(QObject *parent = nullptr);
|
|
~CFDStructDataManagerBase();
|
|
// 获取参数界面的配置
|
|
virtual CUIConfig *getParamUIConfig();
|
|
virtual void saveDataToDom(rapidjson::Document &dom);
|
|
signals:
|
|
|
|
protected:
|
|
CUIConfig *m_uiConfig = nullptr;
|
|
CUISigsCenter *m_cuiSigsCenter = nullptr;
|
|
|
|
protected:
|
|
// json的写入
|
|
void jsonAdd(rapidjson::Document &document, QVariant value, QVector<QVariant> path);
|
|
// 读json
|
|
void jsonRead(rapidjson::Document &document, QVariant &value, QVector<QVariant> path);
|
|
};
|
|
|
|
#endif // CFDSTRUCTDATAMANAGERBASE_H
|