indexfile.h

来自「有计算机图形学、图像处理、dbms、sniffer、中游俄罗斯外挂、othell」· C头文件 代码 · 共 48 行

H
48
字号
// IndexFile.h: interface for the CIndexFile class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_INDEXFILE_H__13808071_D6E2_40A7_88C9_A0F5F7051E93__INCLUDED_)
#define AFX_INDEXFILE_H__13808071_D6E2_40A7_88C9_A0F5F7051E93__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#define OPEN 0
#define CLOSE 1 
#include "string.h"
#include "DEF.h"	// Added by ClassView
//以"IDX/0"开头
class CIndexFile 
{
	UINT ID;
    WORD wBlockNum;//上限是60000
	//UINT PriorFile;
public:
    UINT NextFile;
	BOOL status;
    //BYTE KeyType;
	//BYTE KeyNum;
	//WORD KeyLength;
	//WORD M;//B+树的阶
	//BOOL Dup

	//以上占4K空间

public:
	virtual void Close();
	void SetNextFile(UINT FileNo);
	virtual BOOL Open(LPCTSTR lpszFileName, UINT nOpenFlags,UINT id=0);

	PDB AllocateNewBlock();
	CIndexFile();
	
	CIndexFile(LPCTSTR lpszFileName, UINT nOpenFlags,UINT id=0);
	//默认项只对新建文件有用
	//throw( CFileException );
	virtual ~CIndexFile();

};
#endif // !defined(AFX_INDEXFILE_H__13808071_D6E2_40A7_88C9_A0F5F7051E93__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?