⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 diskmgr.h

📁 计算机英汉机器翻译系统中的英语词性标注方法实现
💻 H
字号:
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -