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

#include <C4League.h>

Inheritance diagram for C4LeagueResponseHead:
[legend]

Public Member Functions

 C4LeagueResponseHead ()=default
 
const char * getCSID () const
 
const char * getMessage () const
 
bool isSuccess () const
 
bool isStatusRegister () const
 
const char * getAccount () const
 
const char * getAUID () const
 
const char * getFBID () const
 
const char * getLoginToken () const
 
void CompileFunc (StdCompiler *pComp)
 

Detailed Description

Definition at line 102 of file C4League.h.

Constructor & Destructor Documentation

C4LeagueResponseHead::C4LeagueResponseHead ( )
default

Member Function Documentation

void C4LeagueResponseHead::CompileFunc ( StdCompiler pComp)

Definition at line 101 of file C4League.cpp.

References mkNamingAdapt(), mkParAdapt(), StdCompiler::RCT_All, StdCompiler::RCT_IdtfAllowEmpty, and StdCompiler::Value().

Referenced by C4LeagueResponseHeadStart::CompileFunc(), C4LeagueResponseHeadUpdate::CompileFunc(), and C4LeagueResponseHeadAuthCheck::CompileFunc().

102 {
103  pComp->Value(mkNamingAdapt(mkParAdapt(Status, StdCompiler::RCT_IdtfAllowEmpty), "Status", ""));
105  pComp->Value(mkNamingAdapt(mkParAdapt(Message, StdCompiler::RCT_All), "Message", ""));
106 
107  // Auth
108  pComp->Value(mkNamingAdapt(mkParAdapt(Account, StdCompiler::RCT_All), "Account", ""));
109  pComp->Value(mkNamingAdapt(mkParAdapt(AUID, StdCompiler::RCT_All), "AUID", ""));
110  pComp->Value(mkNamingAdapt(mkParAdapt(FBID, StdCompiler::RCT_All), "FBID", ""));
111  pComp->Value(mkNamingAdapt(mkParAdapt(LoginToken, StdCompiler::RCT_All), "LoginToken", ""));
112 }
StdNamingAdapt< T > mkNamingAdapt(T &&rValue, const char *szName)
Definition: StdAdaptors.h:92
void Value(const T &rStruct)
Definition: StdCompiler.h:161
StdParameterAdapt< T, P > mkParAdapt(T &&rObj, P &&rPar)
Definition: StdAdaptors.h:458

Here is the call graph for this function:

Here is the caller graph for this function:

const char* C4LeagueResponseHead::getAccount ( ) const
inline

Definition at line 123 of file C4League.h.

References StdStrBuf::getData().

Referenced by C4LeagueClient::GetAuthCheckReply(), and C4LeagueClient::GetAuthReply().

123 { return Account.getData(); }
const char * getData() const
Definition: StdBuf.h:442

Here is the call graph for this function:

Here is the caller graph for this function:

const char* C4LeagueResponseHead::getAUID ( ) const
inline

Definition at line 124 of file C4League.h.

References StdStrBuf::getData().

Referenced by C4LeagueClient::GetAuthReply().

124 { return AUID.getData(); }
const char * getData() const
Definition: StdBuf.h:442

Here is the call graph for this function:

Here is the caller graph for this function:

const char* C4LeagueResponseHead::getCSID ( ) const
inline

Definition at line 119 of file C4League.h.

References StdStrBuf::getData().

Referenced by C4LeagueClient::GetStartReply().

119 { return CSID.getData(); }
const char * getData() const
Definition: StdBuf.h:442

Here is the call graph for this function:

Here is the caller graph for this function:

const char* C4LeagueResponseHead::getFBID ( ) const
inline

Definition at line 125 of file C4League.h.

References StdStrBuf::getData().

Referenced by C4LeagueClient::GetAuthReply().

125 { return FBID.getData(); }
const char * getData() const
Definition: StdBuf.h:442

Here is the call graph for this function:

Here is the caller graph for this function:

const char* C4LeagueResponseHead::getLoginToken ( ) const
inline

Definition at line 126 of file C4League.h.

References StdStrBuf::getData().

Referenced by C4LeagueClient::GetAuthReply().

126 { return LoginToken.getData(); }
const char * getData() const
Definition: StdBuf.h:442

Here is the call graph for this function:

Here is the caller graph for this function:

const char* C4LeagueResponseHead::getMessage ( ) const
inline

Definition at line 120 of file C4League.h.

References StdStrBuf::getData().

Referenced by C4LeagueClient::GetAuthCheckReply(), C4LeagueClient::GetAuthReply(), C4LeagueClient::GetEndReply(), C4LeagueClient::GetReportDisconnectReply(), C4LeagueClient::GetStartReply(), and C4LeagueClient::GetUpdateReply().

120 { return Message.getData(); }
const char * getData() const
Definition: StdBuf.h:442

Here is the call graph for this function:

Here is the caller graph for this function:

bool C4LeagueResponseHead::isStatusRegister ( ) const
inline

Definition at line 122 of file C4League.h.

References StdStrBuf::getData(), and SEqualNoCase().

Referenced by C4LeagueClient::GetAuthReply().

122 { return SEqualNoCase(Status.getData(), "Register"); }
const char * getData() const
Definition: StdBuf.h:442
bool SEqualNoCase(const char *szStr1, const char *szStr2, int iLen)
Definition: Standard.cpp:207

Here is the call graph for this function:

Here is the caller graph for this function:

bool C4LeagueResponseHead::isSuccess ( ) const
inline

Definition at line 121 of file C4League.h.

References StdStrBuf::getData(), and SEqualNoCase().

Referenced by C4LeagueClient::GetAuthCheckReply(), C4LeagueClient::GetAuthReply(), C4LeagueClient::GetEndReply(), C4LeagueClient::GetReportDisconnectReply(), and C4LeagueClient::GetStartReply().

121 { return SEqualNoCase(Status.getData(), "Success"); }
const char * getData() const
Definition: StdBuf.h:442
bool SEqualNoCase(const char *szStr1, const char *szStr2, int iLen)
Definition: Standard.cpp:207

Here is the call graph for this function:

Here is the caller graph for this function:


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