Inheritance diagram for Pounds2KilosExercise:
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 |
© Bernhard Wagner, xmlizer.net, 2002.
Definition at line 12 of file Pounds2KilosExercise.cpp.
Pounds2KilosExercise::Pounds2KilosExercise | ( | string | name | ) | [inline] |
Constructor.
name | The name of the Pounds2KilosExercise |
Definition at line 20 of file Pounds2KilosExercise.cpp.
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.
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.
double Pounds2KilosExercise::p2k | ( | double | pounds | ) | [static, private] |
Calculates kilos from pounds.
pounds | The pounds value to be converted to 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.
kilos | The kilos value to be converted to pounds. |
Definition at line 87 of file Pounds2KilosExercise.cpp.
References POUND_IN_KILOS.
Referenced by execute().
double Pounds2KilosExercise::fPounds [private] |
double Pounds2KilosExercise::fKilos [private] |