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.
nmWATI/Include/iData/iXmlManager/iXmlUtilModels.h

43 lines
1.5 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 "iXmlTable.h"
#include "iModelInfoBase.h"
#include "iModelDescGroup.h"
#include "iParameterGroup.h"
#include "iXmlUtilBase.h"
// 加载模型结构体
class I_XMLMANAGER_EXPORT iXmlUtilModels : public iXmlUtilBase
{
public:
/// @brief 加载模型结构体
/// @param pVecWbs...各种不同的模型结构体。
/// 如果不想解析某一参数直接传入NULL即可
/// @param sFileXml对应文件
static bool loadStructs(vecModelInfoBasesPtr* pVecWbs,
vecModelInfoBasesPtr* pVecWel,
vecModelInfoBasesPtr* pVecRes,
vecModelInfoBasesPtr* pVecBdy,
vecModelDescGroupsPtr*& pVecGroups,
QString sFile);
private:
// 加载
static bool parseInfos(QDomElement& root, QString sKey, \
vecModelInfoBasesPtr* pVec, int nOption);
static bool parseInfoExs(QDomElement& root, QString sKey, \
vecModelDescGroupsPtr* pVec);
static bool parseInfoParas(QDomElement& root, QString sKey, \
QMap<QString, QString>& mapParas);
// 关联Group中Desc的信息
static bool bindModelInfos(vecModelDescGroupsPtr* pVecGroups,
vecModelInfoBasesPtr* pVecWbs,
vecModelInfoBasesPtr* pVecWel,
vecModelInfoBasesPtr* pVecRes,
vecModelInfoBasesPtr* pVecBdy);
};