PalindromeExercise Class Reference

Inheritance diagram for PalindromeExercise:

AbstractExercise List of all members.

Public Member Functions

 PalindromeExercise (string name)

Protected Member Functions

void execute ()
void getInput ()

Static Private Member Functions

static bool isPalindrome (const string &strToTest)

Private Attributes

string fWord

Detailed Description

The PalindromeExercise.

© Bernhard Wagner, xmlizer.net, 2003.

Definition at line 12 of file PalindromeExercise.cpp.


Constructor & Destructor Documentation

PalindromeExercise::PalindromeExercise ( string  name  )  [inline]

Constructor.

Parameters:
name The name of the Exercise

Definition at line 20 of file PalindromeExercise.cpp.


Member Function Documentation

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

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

Reimplemented from AbstractExercise.

Definition at line 56 of file PalindromeExercise.cpp.

References fWord, and isPalindrome().

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

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

Reimplemented from AbstractExercise.

Definition at line 51 of file PalindromeExercise.cpp.

References fWord.

bool PalindromeExercise::isPalindrome ( const string &  strToTest  )  [static, private]

Definition at line 60 of file PalindromeExercise.cpp.

Referenced by execute().


Member Data Documentation

string PalindromeExercise::fWord [private]

Definition at line 37 of file PalindromeExercise.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