2026-10-04 00:04:20 +08:00
|
|
|
//-----------------------------------------------------------------------------+
|
2026-09-28 15:28:50 +08:00
|
|
|
// Copyright (C), 1998-2007, Beijing Tangent Software Co. Ltd.
|
2026-10-04 00:04:20 +08:00
|
|
|
// = FileName : TGGiCompressStorage 类
|
2026-09-28 15:28:50 +08:00
|
|
|
// = Version : ver2.0
|
|
|
|
|
// = Author : wlw
|
|
|
|
|
// = CreateDate : 2002-09-09
|
2026-10-04 00:04:20 +08:00
|
|
|
// = Description: TGGiCompressStorage 声明
|
2026-09-28 15:28:50 +08:00
|
|
|
// = Maintainers:
|
|
|
|
|
//
|
|
|
|
|
//-----------------------------------------------------------------------------+
|
|
|
|
|
#ifndef _TGGICOMPRESSSTORAGE_H_
|
|
|
|
|
#define _TGGICOMPRESSSTORAGE_H_
|
|
|
|
|
|
|
|
|
|
#ifndef _TGGISLIBSTORAGE_H_
|
|
|
|
|
#include "TGGiSlibStorage.h"
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifndef _XSTRING_
|
|
|
|
|
#include "TACString.h"
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifndef _TWCSTRING_H_
|
|
|
|
|
#include "TWCString.h"
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
class GEOAPI TGGiCompressStorage : public TGGiSlibStorage
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
TGGiCompressStorage(const TCHAR *fname, const TCHAR *ext, const TCHAR *title,int opMode = (_ios::in | _ios::out | _ios::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
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|