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

📄 device.h

📁 gps对时
💻 H
字号:
// Device.h: interface for the CDevice class.
//
//////////////////////////////////////////////////////////////////////
//设备类
#if !defined(AFX_DEVICE_H__5B591604_1AB7_11D5_932F_5254AB322796__INCLUDED_)
#define AFX_DEVICE_H__5B591604_1AB7_11D5_932F_5254AB322796__INCLUDED_

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

class CDevice : public CObject  
{
public:
	CDevice();
	DECLARE_SERIAL(CDevice)
public:
	virtual ~CDevice();
	virtual void Serialize(CArchive& ar);
	int GetState() ; //获取设备的连接状态。
	BYTE DeviceType;//设备类型0 -254。255为广播类
	BYTE DeviceNo;//设备号0-254。255为广播号。
	int    TimeOutCount;//以秒为单位 最长间断时间
	CTime			m_ReveiveTime; //最近收到数据的时间
	BOOL          IsConnected;  //连接状态0:断开,1:连接。
};

typedef CTypedPtrArray<CObArray, CDevice*> CDeviceArray;

#endif // !defined(AFX_DEVICE_H__5B591604_1AB7_11D5_932F_5254AB322796__INCLUDED_)

⌨️ 快捷键说明

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