Files
mir_server/server/LogicServer/misc/caches/StdItemConfigCacher.h
aixianling 5c9f1dae4a init
2025-01-09 17:45:40 +08:00

23 lines
828 B
C++
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#pragma once
using namespace FileHeaders;
class CStdItemConfigCacher :
public CCustomConfigCacher
{
public:
typedef CCustomConfigCacher Inherited;
/************ 标准物品配置缓存文件标志以及版本号 ****************/
static const FILEIDENT CacheFileIdent;
static const FILEVERSION CacheVersion;
protected:
/**** ★★★★★★覆盖父类必须被覆盖的缓存数据处理函数集合★★★★★★ ****/
//验证缓存文件头,判断缓存是否有效
bool ValidateHeader(const CONF_DATA_CACHE_HDR& hdr);
//调整单个一级数据对象的成员指针
bool AdjustElementPointers(LPVOID lpElement);
//填充缓存文件头数据只需填充文件头标志、版本号、以及dwSizeElement其他的会自动填充和处理
void FillHeaderData(CONF_DATA_CACHE_HDR& hdr);
};