www.pudn.com > gps-time.rar > Device.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 CDeviceArray; 
 
#endif // !defined(AFX_DEVICE_H__5B591604_1AB7_11D5_932F_5254AB322796__INCLUDED_)