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.
nmWTAI-Platform/Include/iData/iXmlManager/Models/iModelInfo.h.bak

91 lines
2.0 KiB
C

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#pragma once
#include "Defines.h"
#include "iXmlBaseItem.h"
/// @brief 模型信息基础20241105
class I_XMLMANAGER_EXPORT iModelInfo : public iXmlBaseItem
{
Q_OBJECT
public:
iModelInfo(QObject* parent = 0);
~iModelInfo();
// 解析xml节点到List
virtual void parseInfo(const QDomElement& e);
// 把List分配到成员变量
// 输入开始的m_listValues中index并且返回下一个index
virtual int allocateInfo(int nIndex);
// 备份恢复
virtual bool saveBk();
virtual bool restoreBk();
// 序列化
virtual void onSerialize(ZxSerializer* ser);
virtual void onDeserialize(ZxSerializer* ser);
//得到所有的子项
QStringList getSubItems();
//得到子项ID
QString getSubItemID(QStringList list);
//得到DefaultID根据一层一层获取ID
QString getSelModelID();
protected:
virtual void initXmlTags();
public:
QString m_sEnName;
//子项的Tag
QString m_sSubLabel;
//子项类型<< "" << "ComboBox" << "CheckBox" << "RadioBt" ;
//为空时候就是没有子项
QString m_sSubType;
//
QString m_sDefaultTag;
//子项
QVector<iModelInfo*> m_vecModelInfosPtr;
};
typedef QVector<iModelInfo*> vecModelInfosPtr;
//组合文件
class I_XMLMANAGER_EXPORT iModelDescInfo : public iXmlBaseItem
{
Q_OBJECT
public:
iModelDescInfo(QObject* parent = 0);
~iModelDescInfo();
// 把List分配到成员变量
// 输入开始的m_listValues中index并且返回下一个index
virtual int allocateInfo(int nIndex);
// 备份恢复
virtual bool saveBk();
virtual bool restoreBk();
// 序列化
virtual void onSerialize(ZxSerializer* ser);
virtual void onDeserialize(ZxSerializer* ser);
//得到所有参数
QStringList getParams();
protected:
virtual void initXmlTags();
public:
QString m_sWelModelID;
QString m_sResModelID;
QString m_sSeries;
QString m_sParams;
QString m_sEixtWel;
QString m_sEixtRes;
};
typedef QVector<iModelDescInfo*> vecModelDescInfosPtr;