2026-10-04 00:04:20 +08:00
|
|
|
#pragma once
|
2026-09-28 15:28:50 +08:00
|
|
|
#include "TGGiSlibStorage.h"
|
|
|
|
|
#include "ACString.h"
|
|
|
|
|
#include "WCString.h"
|
|
|
|
|
|
|
|
|
|
class TGGiCompressStorage : public TGGiSlibStorage
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
TGGiCompressStorage(const TCHAR *fname, const TCHAR *ext, const TCHAR *title,int opMode = (std::ios_base::in | std::ios_base::out | std::ios_base::binary));
|
|
|
|
|
virtual ~TGGiCompressStorage();
|
|
|
|
|
|
2026-10-04 00:04:20 +08:00
|
|
|
//拷贝第 n 个记录到磁盘文件
|
2026-09-28 15:28:50 +08:00
|
|
|
virtual int Copy(int n, const TCHAR *sldfile);
|
|
|
|
|
|
|
|
|
|
virtual int QuickCopy(const TCHAR *sldfile);
|
|
|
|
|
|
2026-10-04 00:04:20 +08:00
|
|
|
//移第 n 个记录到磁盘文件
|
2026-09-28 15:28:50 +08:00
|
|
|
virtual int Move(int n, const TCHAR *sldfile);
|
|
|
|
|
|
2026-10-04 00:04:20 +08:00
|
|
|
// 往库文件添加一个记录
|
2026-09-28 15:28:50 +08:00
|
|
|
virtual int Append(const TCHAR *sldfile, const TCHAR *szEntryEname = NULL);
|
|
|
|
|
|
|
|
|
|
public:
|
2026-10-04 00:04:20 +08:00
|
|
|
TCString extNormal; //正常文件的后缀
|
2026-09-28 15:28:50 +08:00
|
|
|
};
|
|
|
|
|
|