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.
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "iParameter.h"
|
|
|
|
|
|
|
|
|
|
/// @brief 参数描述,整数型的参数,如流动段数
|
|
|
|
|
class I_XMLMANAGER_EXPORT iParameterSeg : public iParameter
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
iParameterSeg();
|
|
|
|
|
~iParameterSeg();
|
|
|
|
|
|
|
|
|
|
// 把List分配到成员变量
|
|
|
|
|
// 输入开始的m_listValues中index,并且返回下一个index
|
|
|
|
|
virtual int allocateInfo(int nIndex);
|
|
|
|
|
|
|
|
|
|
// 写入xml
|
|
|
|
|
void writeInfo(QDomElement& e,QDomDocument &doc);
|
|
|
|
|
|
|
|
|
|
// 绑定
|
|
|
|
|
void bindSubItems(vecParametersPtr* pVec);
|
|
|
|
|
|
|
|
|
|
// 备份恢复
|
|
|
|
|
virtual bool saveBk();
|
|
|
|
|
virtual bool restoreBk();
|
|
|
|
|
|
|
|
|
|
// 序列化
|
|
|
|
|
virtual void onSerialize(ZxSerializer* ser);
|
|
|
|
|
virtual void onDeserialize(ZxSerializer* ser);
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
virtual void initXmlTags();
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
// xml解析的数据项,填写项的英文Name
|
|
|
|
|
QStringList m_listSubItemNames; //控制的项,如产液段数 控制 三项:产液段位置;产液段长度;产液段产量
|
|
|
|
|
QStringList m_listSubItemAliass;//别称
|
|
|
|
|
//QMap<QString, iParameter*> m_mapSubParas; //控制的项对应的基础参数,个数与m_listSubTags对应
|
|
|
|
|
|
|
|
|
|
QStringList m_listSubItemNamesBk; //m_listSubItemNames的备份
|
|
|
|
|
};
|