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 "iXmlBaseItem.h"
|
|
|
|
|
|
|
|
|
|
/// @brief 别名信息
|
|
|
|
|
class I_XMLMANAGER_EXPORT iXmlAlias : public iXmlBaseItem
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
iXmlAlias(QObject* parent = 0);
|
|
|
|
|
~iXmlAlias();
|
|
|
|
|
|
|
|
|
|
// 把List分配到成员变量
|
|
|
|
|
// 输入开始的m_listValues中index,并且返回下一个index
|
|
|
|
|
virtual int allocateInfo(int nIndex);
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
virtual void initXmlTags();
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
QStringList m_listAlias;//所有的别名
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
typedef QVector<iXmlAlias*> veciXmlAliasPtr;
|
|
|
|
|
|
|
|
|
|
class I_XMLMANAGER_EXPORT iXmlAliasTable : public iXmlBaseItem
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
iXmlAliasTable(QObject* parent = 0);
|
|
|
|
|
~iXmlAliasTable();
|
|
|
|
|
|
|
|
|
|
// 解析xml节点到List
|
|
|
|
|
virtual void parseInfo(const QDomElement& e);
|
|
|
|
|
|
|
|
|
|
// 把List分配到成员变量
|
|
|
|
|
// 输入开始的m_listValues中index,并且返回下一个index
|
|
|
|
|
virtual int allocateInfo(int nIndex);
|
|
|
|
|
|
|
|
|
|
void clear();
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
virtual void initXmlTags();
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
QString m_sAlias; //中文名称
|
|
|
|
|
|
|
|
|
|
veciXmlAliasPtr m_vecXmlAlias;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
typedef QVector<iXmlAliasTable*> vecXmlAliasTablesPtr;
|