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

📄 usedevice.h

📁 操作系统 程序实现一个虚拟机模拟多道的运行环境
💻 H
字号:
// UseDevice.h: interface for the CUseDevice class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_USEDEVICE_H__E54F576C_34FE_49AF_9283_0425F321535C__INCLUDED_)
#define AFX_USEDEVICE_H__E54F576C_34FE_49AF_9283_0425F321535C__INCLUDED_

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

class CUseDevice  
{
public:	
	CUseDevice();
	CUseDevice(CUseDevice& ud);	
	virtual ~CUseDevice(){}
	CUseDevice(CString proName,CString devType);
	CString GetProcessName(){return ProcessName;}
	void SetProcessName(CString name){ProcessName=name;}
	CString GetDeviceType(){return DeviceType;}
	void UseDevice();
	BOOL Done(){return 0==LeftTime;}
	int GetRequestTimeLength(){return RequestTime;}
	int GetEndTime(){return EndTime;}
	int GetStartTime(){return StartTime;}
	void SetRequestTimeLength(int length);
	void SetDeviceType(CString DType){DeviceType=DType;}
	void SetEndTime(int et){EndTime=et;}
	void SetStartTime(int st){StartTime=st;}
	int GetLeftTime(){return LeftTime;}
private:
	CString ProcessName;
	int EndTime;
	int StartTime;
	float LeftTime;
	int RequestTime;
	CString DeviceType;
};

#endif // !defined(AFX_USEDEVICE_H__E54F576C_34FE_49AF_9283_0425F321535C__INCLUDED_)

⌨️ 快捷键说明

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