diskmgr.h

来自「计算机英汉机器翻译系统中的英语词性标注方法实现」· C头文件 代码 · 共 45 行

H
45
字号
// DISKMGR.H - DiskMgr Class Header

#ifndef DISKMGR_H
#define DISKMGR_H

#include <io.h>
#include <share.h>

#define IM_OK 0
#define IM_ERROR (-1)

const caReadWrite = 0;
const caNoCache   = 1;

class DiskMgr
{
private:


	int m_nType; 
	void flush(int x);

	//long aaja; // No Use
	//long aaka; // No Use
	//int aala; // No Use
	//int aama; // No Use

public:

    DiskMgr(int ctype = caReadWrite);
	~DiskMgr(void);
	int open(const char *path, int access);
	int close(int handle);
	int read(int handle, void *buf, long start, unsigned len);
	int write(int handle, void *buf, long start, unsigned len);
	long seek(int fd, long offset);
	//void unlock(int handle);
	//void lock(int handle, long start, long length);
	//void lockfile(int handle);
	//void unlock_head(int handle);
	//void lock_head(int handle);
};

#endif

⌨️ 快捷键说明

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