Files
envi-code/SourceCode/Code2026/PipelineCmd/SysLayerCfg/THVacCfgOperation.h
T
gjm 164968b62e chore
把非utf8-bom编码的cpp/h文件改为 utf8 bom 编码, msvc识别utf8编码时,如果不是bom格式的,会使用当前cp_oem来解码.
2026-10-04 00:04:20 +08:00

35 lines
1020 B
C++

#if !defined(__THVACCFGOPERATION_H__)
#define __THVACCFGOPERATION_H__
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class THVacCfgOperation
{
public:
THVacCfgOperation();
virtual ~THVacCfgOperation();
public:
// 转化lst 为Array
static BOOL TransFormLstToArray(const CStringList& lstStr, CStringArray& arStr);
// 字符集中是否包含指定字符
static BOOL IsArrayHas(const CStringArray& arStr, LPCTSTR pszValue);
// 数据库中的图层表字段映射到grid
static BOOL MapDBKeyToGrid(LPCTSTR pszDBKey, CString& pszGridKey);
static BOOL MapDBKeyToGrid(const Ttable& arOldField, Ttable& arNewField);
static BOOL MapDBKeyToGrid(const CStringArray& arTableName, CStringArray& arMapKey);
// 判断是否为表格的模板行(判断依据:所属系统为空,图层代号不为空)
static BOOL IsGridModel(const CStringArray& arRow);
// 判断是否为有效的表格行
static BOOL IsGridValueRow(const CStringArray& arRow);
};
#endif // !defined(__THVACCFGOPERATION_H__)