|
|
|
@ -1,19 +1,20 @@
|
|
|
|
|
#ifndef CFDSTRUCTDEFINE_H
|
|
|
|
|
#define CFDSTRUCTDEFINE_H
|
|
|
|
|
|
|
|
|
|
#include <QCoreApplication>
|
|
|
|
|
#include <QObject>
|
|
|
|
|
|
|
|
|
|
#define QVA_GLOBAL(x) QVariant::fromValue(x)
|
|
|
|
|
#define QVA_QS(x) QVariant::fromValue(QString(x))
|
|
|
|
|
#define QVA_FROM_QS(x) qvariant_cast<QString>(x)
|
|
|
|
|
#define QVA_QS(x) QVariant::fromValue(QString(x))
|
|
|
|
|
#define QVA_FROM_QS(x) qvariant_cast<QString>(x)
|
|
|
|
|
|
|
|
|
|
#ifndef QVAR_DECLARE
|
|
|
|
|
#define QVAR_DECLARE
|
|
|
|
|
Q_DECLARE_METATYPE(int*)
|
|
|
|
|
Q_DECLARE_METATYPE(bool*)
|
|
|
|
|
Q_DECLARE_METATYPE(double*)
|
|
|
|
|
Q_DECLARE_METATYPE(QString*)
|
|
|
|
|
Q_DECLARE_METATYPE(QString)
|
|
|
|
|
#define QVAR_DECLARE
|
|
|
|
|
Q_DECLARE_METATYPE(int *)
|
|
|
|
|
Q_DECLARE_METATYPE(bool *)
|
|
|
|
|
Q_DECLARE_METATYPE(double *)
|
|
|
|
|
Q_DECLARE_METATYPE(QString *)
|
|
|
|
|
Q_DECLARE_METATYPE(QString)
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
// 结构树中节点
|
|
|
|
@ -64,5 +65,9 @@ enum class SolutionAnalysisModuleProperty {
|
|
|
|
|
UNKNOW,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // CFDSTRUCTDEFINE_H
|
|
|
|
|
// 模板json文件路径
|
|
|
|
|
const std::string templateJSONPath = QCoreApplication::applicationDirPath().toStdString() + "..\\Resources\\template.json";
|
|
|
|
|
// 输出json文件路径
|
|
|
|
|
const std::string caseJSONPath = QCoreApplication::applicationDirPath().toStdString() + "..\\Resources\\case-01.json";
|
|
|
|
|
|
|
|
|
|
#endif // CFDSTRUCTDEFINE_H
|
|
|
|
|