www.pudn.com > Observerwangdxh.zip > HRateMon.h


// HRateMon.h : interface of the CHeartRateMonitor class 
// 
///////////////////////////////////////////////////////////////////////////// 
 
#ifndef _HEARTRATEMONITOR 
#define _HEARTRATEMONITOR 
 
#include "CardioMon.h" 
#include "ProgInd.h" 
 
class CHeartRateMonitor : public CCardioMonitor 
{ 
	// Constructor and Destructor 
	public : 
		CHeartRateMonitor( CCardioSubject * ); 
		virtual ~CHeartRateMonitor(); 
 
	// Methods 
	public : 
		virtual BOOL Update( CSubject * ); 
		BOOL Create( const RECT &, CWnd *, UINT ); 
		virtual VOID Stop(); 
 
	// Generated message map functions 
	protected: 
	//{{AFX_MSG(CTimeMonitor) 
		// NOTE - the ClassWizard will add and remove member functions here. 
		afx_msg void OnPaint(); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
 
	// Implementation 
	private : 
		BOOL InitializeHeartRate(); 
		LONG GetHeartRate(); 
		 
	// Attributes 
	private : 
		CString				m_csProgram; 
		INT					m_nLevel; 
		INT					m_nAge; 
		INT					m_nMinValue; 
		INT					m_nThresholdValue; 
		INT					m_nMaxValue; 
		CProgressIndicator	m_HeartRateMeter; 
}; 
#endif