ircproxy  The Ultimate Cyborg

UserQuestion Class Reference

#include <UserAnswer.h>

List of all members.


Detailed Description

The question that belongs to a given QuestionTarget.

Definition at line 61 of file UserAnswer.h.


Public Member Functions

 UserQuestion (question_nt question_number, std::string const &question)
 Construct a UserQuestion with index question_number and string question.
std::string const & question (void) const
 Return the question string.
question_nt number (void) const
 Return the question index.

Private Attributes

question_nt M_question_number
 The question index.
std::string M_question
 The full question.

Constructor & Destructor Documentation

UserQuestion::UserQuestion ( question_nt  question_number,
std::string const &  question 
) [inline]

Construct a UserQuestion with index question_number and string question.

Definition at line 67 of file UserAnswer.h.

00067                                                                        :
00068       M_question_number(question_number), M_question(question) { }
  //! Return the question string.


Member Function Documentation

std::string const& UserQuestion::question ( void   )  const [inline]

Return the question string.

Definition at line 70 of file UserAnswer.h.

References M_question.

00070 { return M_question; }

question_nt UserQuestion::number ( void   )  const [inline]

Return the question index.

Definition at line 72 of file UserAnswer.h.

References M_question_number.

00072 { return M_question_number; }


Member Data Documentation

The question index.

Definition at line 63 of file UserAnswer.h.

Referenced by number().

std::string UserQuestion::M_question [private]

The full question.

Definition at line 64 of file UserAnswer.h.

Referenced by question().


The documentation for this class was generated from the following file:

Copyright © 2005-2007 Carlo Wood.  All rights reserved.