ircproxy  The Ultimate Cyborg

UserAnswer.h File Reference


Detailed Description

This file contains the declaration of the UserAnswer events related code.

Definition in file UserAnswer.h.

#include <string>
#include "debug.h"
#include <libcw/events.h>
#include "Target.h"
#include "question_nt.h"
#include "Counter.h"

Go to the source code of this file.

Classes

class  UserAnswer
 A user answer to a question. More...
class  UserAnswerEventType
 The UserAnswer event server's EventType. More...
class  UserQuestion
 The question that belongs to a given QuestionTarget. More...
class  UserAnswerRequestData
 Request data passed to the event server. More...
class  UserAnswerEventRequestBase
 Base class for UserAnswer event request objects. More...
class  UserAnswerEventRequestQueue
 The UserAnswer event request queue class. More...

Typedefs

typedef event_data_server_tct
< UserAnswerEventRequestBase,
UserAnswerEventRequestQueue
UserAnswerEventServer
 The event server for UserAnswerEventType.

Functions

char const * question_target_name (question_nt number)
 Convert question index number into the channel name it belongs to.


Typedef Documentation

The event server for UserAnswerEventType.

Definition at line 189 of file UserAnswer.h.


Function Documentation

char const* question_target_name ( question_nt  number  ) 

Convert question index number into the channel name it belongs to.

Definition at line 27 of file UserAnswer.cc.

References network_domain_question, no_related_question, and server_port_question.

Referenced by ServerConnection::do_connect(), Identity::notice_target(), and UserAnswerEventRequestBase::UserAnswerEventRequestBase().

00028 {
00029   switch(number)
00030   {
00031     case network_domain_question:
00032       return "&NetworkDomain";
00033     case server_port_question:
00034       return "&WhatServerPort";
00035     case no_related_question:
00036       DoutFatal(dc::core, "Calling question_target_name(no_related_question)");
00037   }
00038   return NULL;  // Suppress compiler warning.
00039 }


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