www.pudn.com > Observerwangdxh.zip > CalMon.h
// CalMon.h : interface of the CCalorieMonitor class
//
/////////////////////////////////////////////////////////////////////////////
#ifndef _CALORIEMONITOR
#define _CALORIEMONITOR
#include "CardioMon.h"
class CCalorieMonitor : public CCardioMonitor
{
// Constructor and Destructor
public :
CCalorieMonitor( CCardioSubject * );
virtual ~CCalorieMonitor();
// Methods
public :
virtual BOOL Update( CSubject * );
virtual BOOL Create( const RECT &, CWnd *, UINT );
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCalorieMonitor)
//}}AFX_VIRTUAL
// Generated message map functions
protected:
//{{AFX_MSG(CCalorieMonitor)
// NOTE - the ClassWizard will add and remove member functions here.
afx_msg void OnPaint();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
// Attributes
private :
INT m_nCaloriesPerMinute;
double m_dbTotalCalories;
};
#endif