www.pudn.com > MyElevator.rar > Stop.h


#ifndef __Stop_H__ 
#define __Stop_H__ 
#include "Afxwin.h" 
 
 
class CStop 
{ 
public: 
	bool m_bAlreadyHaveTask; 
 
	CStop(UINT F , UINT in = 0 , UINT out = 0); 
	CStop(const CStop & stop); 
	CStop(); 
	~CStop(); 
	CStop& operator=(const CStop & stop); 
	UINT GetFloor()  {  return m_iFloor;} 
	UINT GetInNum()  {  return m_iInNum;} 
	UINT GetOutNum()  {  return m_iOutNum;} 
	void SetInNum(UINT in) { m_iInNum = in;} 
	void SetOutNum(UINT out) { m_iOutNum = out; } 
	bool EmbedNewStop(CStop stop); 
	bool IsEmpty() { return m_bEmpty;} 
	void DeleteTask() ; 
private: 
	bool m_bEmpty; 
	UINT m_iFloor; 
	UINT m_iInNum; 
	UINT m_iOutNum; 
}; 
 
#endif