Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

Exercise Class Reference

Inheritance diagram for Exercise:

AbstractExercise List of all members.

Public Methods

 Exercise (string name)

Protected Methods

int execute ()
void getInput ()

Static Private Methods

double p2k (double pounds)
double k2p (double kilos)

Private Attributes

double fPounds
double fKilos

Detailed Description

The Exercise.


Constructor & Destructor Documentation

Exercise::Exercise string    name [inline]
 

Constructor.

Parameters:
name  The name of the Exercise


Member Function Documentation

int Exercise::execute   [protected, virtual]
 

Executes this exercise. To be overridden in subclasses. (Hook Method)

Returns:
The exercise's outcome.

Reimplemented from AbstractExercise.

void Exercise::getInput   [protected, virtual]
 

Gets the input for this exercise. To be overridden in subclasses. (Hook Method)

Reimplemented from AbstractExercise.

double Exercise::k2p double    kilos [static, private]
 

Calculates pounds from kilos.

Parameters:
kilos  The kilos value to be converted to pounds.
Returns:
The pounds

double Exercise::p2k double    pounds [static, private]
 

Calculates kilos from pounds.

Parameters:
pounds  The pounds value to be converted to kilos.
Returns:
The kilos


Member Data Documentation

double Exercise::fKilos [private]
 

double Exercise::fPounds [private]
 


The documentation for this class was generated from the following file:
Generated on Mon Oct 14 17:19:47 2002 for Exercise Framework by doxygen1.2.18