NumberQuestion.h File Reference


Detailed Description

NumberQuestion class for Configuration file creator.

Id
NumberQuestion.h,v 1.1 2008/03/28 21:56:58 iamcamiel Exp

X-1.1 Camiel Vanderhoeven 28-MAR-2008 File created.

Definition in file NumberQuestion.h.

Go to the source code of this file.

Data Structures

class  NumberQuestion
 Question class that accepts a numeric answer within a defined range. More...

Functions

string i2s (int x)
 Convert an integer to a string.
int s2i (const string x)
 Convert a string to an integer.


Function Documentation

string i2s ( int  x  )  [inline]

Convert an integer to a string.

Definition at line 39 of file NumberQuestion.h.

Referenced by NumberQuestion::ask(), and main().

int s2i ( const string  x  )  [inline]

Convert a string to an integer.

Throws a CLogicException when the input is not numeric.

Definition at line 51 of file NumberQuestion.h.

References FAILURE.

Referenced by NumberQuestion::ask(), and NumberQuestion::getNum().


SourceForge.net Logo
Project space on SourceForge.net