www.pudn.com > Observerwangdxh.zip > CardioSub.h
// CardioSub.h : interface of the CCardioSubject class
//
/////////////////////////////////////////////////////////////////////////////
#ifndef _CARDIO_SUBJECT
#define _CARDIO_SUBJECT
#include "Subject.h"
class CCardioSubject : public CSubject
{
// Constructors and Destructors
public :
CCardioSubject( INT, LPCSTR, INT, INT ); // Duration, Program, Level, Age
virtual ~CCardioSubject();
// Services
public :
INT GetDuration();
CString GetProgram();
INT GetLevel();
INT GetAge();
INT GetCaloriesPerMinute();
const CTimeSpan & GetElapsedTime();
VOID SetProgram( LPCSTR );
VOID SetLevel( INT );
VOID SetElapsedTime( const CTimeSpan & );
// Attributes
protected :
INT m_nDuration;
CString m_csProgram;
INT m_nLevel;
INT m_nAge;
CTimeSpan m_tsElapsedTime;
INT m_nCaloriesPerMinute;
};
#endif