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/iXmlUtilTableStruct.h

27 lines
956 B
C

#pragma once
#include "iXmlUtilBase.h"
#include "iXmlTable.h"
// 数据库表格结构
class I_XMLMANAGER_EXPORT iXmlUtilTableStruct : public iXmlUtilBase
{
public:
/// @brief 加载数据库结构载体
/// @param pVecXmlTables结果载体
/// @param sFileXml对应文件如果为空则自动指向 TableStructs.xml
/// @param sTableSpecial如果非空则仅仅提取指定表结构
static bool loadStructs(vecXmlTablesPtr* pVecXmlTables,
QString sFile,
QString sTableSpecial = "");
/// @brief 修改特定表的特定字段信息
/// @param sTable特定表名
/// @param p 待修改的字段新的信息
/// @param sFileXml对应文件如果为空则自动指向 TableStructs.xml
static bool modifyTableStructs(QString sTable,
iXmlField* p,
QString sFile);
};