Pounds2KilosExercise Class Reference

Inheritance diagram for Pounds2KilosExercise:

AbstractExercise List of all members.

Public Member Functions

 Pounds2KilosExercise (string name)

Protected Member Functions

void execute ()
void getInput ()

Static Private Member Functions

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

Private Attributes

double fPounds
double fKilos

Detailed Description

The Exercise.

© Bernhard Wagner, xmlizer.net, 2002.

Definition at line 12 of file Pounds2KilosExercise.cpp.


Constructor & Destructor Documentation

Pounds2KilosExercise::Pounds2KilosExercise ( string  name  )  [inline]

Constructor.

Parameters:
name The name of the Pounds2KilosExercise

Definition at line 20 of file Pounds2KilosExercise.cpp.


Member Function Documentation

void Pounds2KilosExercise::execute (  )  [protected, virtual]

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

Reimplemented from AbstractExercise.

Definition at line 76 of file Pounds2KilosExercise.cpp.

References fKilos, fPounds, k2p(), and p2k().

void Pounds2KilosExercise::getInput (  )  [protected, virtual]

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

Reimplemented from AbstractExercise.

Definition at line 69 of file Pounds2KilosExercise.cpp.

References fKilos, and fPounds.

double Pounds2KilosExercise::p2k ( double  pounds  )  [static, private]

Calculates kilos from pounds.

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

Definition at line 83 of file Pounds2KilosExercise.cpp.

References POUND_IN_KILOS.

Referenced by execute().

double Pounds2KilosExercise::k2p ( double  kilos  )  [static, private]

Calculates pounds from kilos.

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

Definition at line 87 of file Pounds2KilosExercise.cpp.

References POUND_IN_KILOS.

Referenced by execute().


Member Data Documentation

double Pounds2KilosExercise::fPounds [private]

Definition at line 54 of file Pounds2KilosExercise.cpp.

Referenced by execute(), and getInput().

double Pounds2KilosExercise::fKilos [private]

Definition at line 55 of file Pounds2KilosExercise.cpp.

Referenced by execute(), and getInput().


The documentation for this class was generated from the following file:
Generated on Thu Jul 3 19:12:45 2008 for Exercise Framework by  doxygen 1.5.1