62 lines
1.5 KiB
C
62 lines
1.5 KiB
C
|
#pragma once
|
|||
|
|
|||
|
#include <QObject>
|
|||
|
#include<QString>
|
|||
|
#include "report/reportdataset.h"
|
|||
|
|
|||
|
|
|||
|
#include "json.hpp"
|
|||
|
using json = nlohmann::json;
|
|||
|
|
|||
|
class FileGenerate :public QObject
|
|||
|
{
|
|||
|
Q_OBJECT
|
|||
|
public:
|
|||
|
FileGenerate();
|
|||
|
~FileGenerate();
|
|||
|
|
|||
|
/*<2A><>ȡ<EFBFBD>ĵ<EFBFBD>ģ<EFBFBD><C4A3>*/
|
|||
|
// bool getTemplate();
|
|||
|
/*<2A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ĵ<EFBFBD>*/
|
|||
|
bool generate(QString filePath, json& parameter);
|
|||
|
|
|||
|
/*<2A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>*/
|
|||
|
void setData();
|
|||
|
/*<2A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>*/
|
|||
|
void clearData();
|
|||
|
/*<2A><><EFBFBD><EFBFBD>*/
|
|||
|
bool generateFile(QString& filePath, QString fileName);
|
|||
|
|
|||
|
unsigned int projectId = 0; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ĵ<EFBFBD><C4B5><EFBFBD><EFBFBD><EFBFBD>Ŀ id
|
|||
|
|
|||
|
QList<QString> m_listFileName;
|
|||
|
QHash<QString, QList<QObject*>> m_DataSets;
|
|||
|
|
|||
|
//<2F><><EFBFBD><EFBFBD>
|
|||
|
QList<QObject*> CoverRightItem;
|
|||
|
QList<QObject*> ModelItem;
|
|||
|
QList<QObject*> LogoItem;
|
|||
|
|
|||
|
//<2F><>ģ<EFBFBD><C4A3>
|
|||
|
QList<QObject*> PackItem;
|
|||
|
QList<QObject*> PackTable;
|
|||
|
QList<QObject*> RootPack; //<2F><>ģ<EFBFBD><C4A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
QList<QObject*> ChildPackItem;
|
|||
|
QList<QObject*> ChildPackTable;
|
|||
|
QList<QObject*> ChildPack1; //<2F><>һ<EFBFBD><D2BB><EFBFBD><EFBFBD>ģ<EFBFBD><C4A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD> firstChildPack
|
|||
|
QList<QObject*> Ch_childPackItem;
|
|||
|
QList<QObject*> Ch_childPackTable;
|
|||
|
QList<QObject*> ChildPack2; //<2F>ڶ<EFBFBD> <20><><EFBFBD><EFBFBD>ģ<EFBFBD><C4A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD> secChildPack
|
|||
|
|
|||
|
QList<QObject*> classGroupItem;
|
|||
|
QList<QObject*> classname; //<2F><>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
QList<QObject*> relatTableData; //<2F><>ϵ<EFBFBD><CFB5>
|
|||
|
QList<QObject*> interfaceTableData; //<2F>ӿڱ<D3BF>
|
|||
|
QList<QObject*> AttTableData; //<2F><><EFBFBD>Ա<EFBFBD><D4B1><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
QList<QObject*> classGroupItem111;
|
|||
|
QList<QObject*> classname5;
|
|||
|
QList<QObject*> AttTableData111; //<2F><><EFBFBD>Ա<EFBFBD><D4B1><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
QList<QObject*> relatTableData111; //<2F><>ϵ<EFBFBD><CFB5>
|
|||
|
QList<QObject*> interfaceTableData111; //<2F>ӿڱ<D3BF>
|
|||
|
};
|