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 {false}
bool fIsUppercase {false}
C4MessageBoardQuerypNext {nullptr}

Detailed Description

Definition at line 149 of file C4MessageInput.h.

Constructor & Destructor Documentation

◆ C4MessageBoardQuery() [1/2]

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

Definition at line 161 of file C4MessageInput.h.

References StdStrBuf::Copy().

162  : CallbackObj(pCallbackObj), fIsUppercase(fIsUppercase), pNext(nullptr)
163  {
164  sInputQuery.Copy(rsInputQuery);
165  }
C4ObjectPtr CallbackObj
C4MessageBoardQuery * pNext
void Copy()
Definition: StdBuf.h:467
Here is the call graph for this function:

◆ C4MessageBoardQuery() [2/2]

C4MessageBoardQuery::C4MessageBoardQuery ( )

Definition at line 167 of file C4MessageInput.h.

References CompileFunc().

167 : CallbackObj(nullptr) {}
C4ObjectPtr CallbackObj
Here is the call graph for this function:

Member Function Documentation

◆ CompileFunc()

void C4MessageBoardQuery::CompileFunc ( StdCompiler pComp)

Definition at line 891 of file C4MessageInput.cpp.

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

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

Member Data Documentation

◆ CallbackObj

C4ObjectPtr C4MessageBoardQuery::CallbackObj

◆ fAnswered

bool C4MessageBoardQuery::fAnswered {false}

◆ fIsUppercase

bool C4MessageBoardQuery::fIsUppercase {false}

Definition at line 155 of file C4MessageInput.h.

Referenced by C4Player::CountControl().

◆ pNext

◆ sInputQuery

StdStrBuf C4MessageBoardQuery::sInputQuery

Definition at line 153 of file C4MessageInput.h.

Referenced by C4Player::CountControl().

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