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

#include <C4League.h>

Inheritance diagram for C4LeagueRequestHeadEnd:
Collaboration diagram for C4LeagueRequestHeadEnd:

Public Member Functions

 C4LeagueRequestHeadEnd (C4LeagueAction eAction, const char *szCSID, const char *szRecordName=nullptr, const BYTE *pRecordSHA=nullptr)
void CompileFunc (StdCompiler *pComp)
void SetAuth (const char *szAccount, const char *szPassword, bool fRememberLogin)
void SetNewAccount (const char *szNewAccount)
void SetNewPassword (const char *szNewPassword)

Detailed Description

Definition at line 84 of file C4League.h.

Constructor & Destructor Documentation

C4LeagueRequestHeadEnd::C4LeagueRequestHeadEnd ( C4LeagueAction  eAction,
const char *  szCSID,
const char *  szRecordName = nullptr,
const BYTE pRecordSHA = nullptr 

Definition at line 87 of file C4League.h.


88  : C4LeagueRequestHead(eAction, szCSID), RecordName(szRecordName)
89  {
90  if (pRecordSHA)
91  memcpy(RecordSHA, pRecordSHA, SHA_DIGEST_LENGTH);
92  }
C4LeagueRequestHead(C4LeagueAction eAction, const char *szCSID="", const char *szAUID="")
Definition: C4League.h:49

Member Function Documentation

void C4LeagueRequestHeadEnd::CompileFunc ( StdCompiler pComp)

Definition at line 92 of file C4League.cpp.

References C4LeagueRequestHead::CompileFunc(), StdStrBuf::getLength(), mkHexAdapt(), mkNamingAdapt(), mkParAdapt(), StdCompiler::RCT_All, and StdCompiler::Value().

93 {
95  pComp->Value(mkNamingAdapt(mkParAdapt(RecordName, StdCompiler::RCT_All), "RecordName", ""));
96  if (RecordName.getLength())
97  pComp->Value(mkNamingAdapt(mkHexAdapt(RecordSHA, sizeof(RecordSHA)), "RecordSHA"));
98 }
StdNamingAdapt< T > mkNamingAdapt(T &&rValue, const char *szName)
Definition: StdAdaptors.h:93
void CompileFunc(StdCompiler *pComp)
Definition: C4League.cpp:28
void Value(const T &rStruct)
Definition: StdCompiler.h:171
StdHexAdapt mkHexAdapt(void *pData, size_t iSize)
Definition: StdAdaptors.h:1006
StdParameterAdapt< T, P > mkParAdapt(T &&rObj, P &&rPar)
Definition: StdAdaptors.h:459
size_t getLength() const
Definition: StdBuf.h:453

Here is the call graph for this function:

void C4LeagueRequestHead::SetAuth ( const char *  szAccount,
const char *  szPassword,
bool  fRememberLogin 

Definition at line 57 of file C4League.cpp.

Referenced by C4LeagueClient::Auth().

58 {
59  Account = szAccount;
60  Password = szPassword;
61  this->fRememberLogin = fRememberLogin;
62 }

Here is the caller graph for this function:

void C4LeagueRequestHead::SetNewAccount ( const char *  szNewAccount)

Definition at line 64 of file C4League.cpp.

Referenced by C4LeagueClient::Auth().

65 {
66  NewAccount = szNewAccount;
67 }

Here is the caller graph for this function:

void C4LeagueRequestHead::SetNewPassword ( const char *  szNewPassword)

Definition at line 69 of file C4League.cpp.

Referenced by C4LeagueClient::Auth().

70 {
71  NewPassword = szNewPassword;
72 }

Here is the caller graph for this function:

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