All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
C4MessageBoardQuery Class Reference

#include <C4MessageInput.h>

Collaboration diagram for C4MessageBoardQuery:

Public Member Functions

 C4MessageBoardQuery (C4Object *pCallbackObj, const StdStrBuf &rsInputQuery, bool fIsUppercase)
 C4MessageBoardQuery ()
void CompileFunc (StdCompiler *pComp)

Public Attributes

C4ObjectPtr CallbackObj
StdStrBuf sInputQuery
bool fAnswered
bool fIsUppercase

Detailed Description

Definition at line 149 of file C4MessageInput.h.

Constructor & Destructor Documentation

C4MessageBoardQuery::C4MessageBoardQuery ( C4Object pCallbackObj,
const StdStrBuf rsInputQuery,
bool  fIsUppercase 

Definition at line 161 of file C4MessageInput.h.

References StdStrBuf::Copy().

162  : CallbackObj(pCallbackObj), fAnswered(false), fIsUppercase(fIsUppercase), pNext(nullptr)
163  {
164  sInputQuery.Copy(rsInputQuery);
165  }
C4ObjectPtr CallbackObj
C4MessageBoardQuery * pNext
void Copy()
Definition: StdBuf.h:475

Here is the call graph for this function:

C4MessageBoardQuery::C4MessageBoardQuery ( )

Definition at line 167 of file C4MessageInput.h.

167 : CallbackObj(nullptr), fAnswered(false), fIsUppercase(false), pNext(nullptr) {}
C4ObjectPtr CallbackObj
C4MessageBoardQuery * pNext

Member Function Documentation

void C4MessageBoardQuery::CompileFunc ( StdCompiler pComp)

Definition at line 893 of file C4MessageInput.cpp.

References CallbackObj, fIsUppercase, StdCompiler::SEP_END, StdCompiler::SEP_START, StdCompiler::Separator(), sInputQuery, and StdCompiler::Value().

894 {
895  // note that this CompileFunc does not save the fAnswered-flag, so pending message board queries will be re-asked when resuming SaveGames
896  pComp->Separator(StdCompiler::SEP_START); // '('
897  // callback object number
898  pComp->Value(CallbackObj); pComp->Separator();
899  // input query string
900  pComp->Value(sInputQuery); pComp->Separator();
901  // options
902  pComp->Value(fIsUppercase);
903  // list end
904  pComp->Separator(StdCompiler::SEP_END); // ')'
905 }
virtual bool Separator(Sep eSep=SEP_SEP)
Definition: StdCompiler.h:129
C4ObjectPtr CallbackObj
void Value(const T &rStruct)
Definition: StdCompiler.h:170

Here is the call graph for this function:

Member Data Documentation

C4ObjectPtr C4MessageBoardQuery::CallbackObj

Definition at line 152 of file C4MessageInput.h.

Referenced by CompileFunc(), and C4Player::MarkMessageBoardQueryAnswered().

bool C4MessageBoardQuery::fAnswered

Definition at line 154 of file C4MessageInput.h.

Referenced by C4Player::MarkMessageBoardQueryAnswered().

bool C4MessageBoardQuery::fIsUppercase

Definition at line 155 of file C4MessageInput.h.

Referenced by CompileFunc().

StdStrBuf C4MessageBoardQuery::sInputQuery

Definition at line 153 of file C4MessageInput.h.

Referenced by CompileFunc().

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