www.pudn.com > Observerwangdxh.zip > CardioMon.h
// CardioMon.h : interface of the CCardioMonitor class
//
/////////////////////////////////////////////////////////////////////////////
#ifndef _CARDIOMONITOR
#define _CARDIOMONITOR
#include "Observer.h"
#include "CardioSub.h"
class CCardioMonitor : public CWnd, public CObserver
{
// Constructor and Destructor
public :
CCardioMonitor( CCardioSubject * );
virtual ~CCardioMonitor();
// Methods
public :
virtual BOOL Update( CSubject * ) = 0;
virtual BOOL Create( const RECT &, CWnd *, UINT ) = 0;
virtual BOOL Start();
virtual VOID Stop();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCardioMonitor)
//}}AFX_VIRTUAL
// Generated message map functions
protected:
//{{AFX_MSG(CCardioMonitor)
// NOTE - the ClassWizard will add and remove member functions here.
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
// Attributes
protected :
CCardioSubject * m_pCardioSubject;
BOOL m_bStarted;
};
#endif