45 void *
operator new(
size_t nSize) {
46 return PoolMemAlloc(
static_cast<int>(nSize),
"ChangePasswordResultMsg", 0);
54 void operator delete(
void *pBlock) {
82 return "ChangePasswordResultMsg";
void PrintExtra(PrnStream &stream) const override
Write the result.
int GetResult() const
Definition changepasswordresultmsg.h:95
Message * Clone() override
Produce a heap copy of this message.
Definition changepasswordresultmsg.h:63
ChangePasswordResultMsg(int nResult)
Construct a result.
Definition changepasswordresultmsg.h:36
Result
Values of mResult.
Definition changepasswordresultmsg.h:24
@ kResultUpdateFailed
Definition changepasswordresultmsg.h:25
@ kResultSuccess
Definition changepasswordresultmsg.h:26
const char * GetName() const override
Report this message's class name.
Definition changepasswordresultmsg.h:81
int Type() override
Report this message's registered identity.
Definition changepasswordresultmsg.h:72
~ChangePasswordResultMsg() override=default
Destroy the object.
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:40
Text output stream.
Definition prnstream.h:16
int g_nChangePasswordResultMsgType
Identity that ChangePasswordResultMsg::Type() reports.
void * PoolMemAlloc(int nSize, const char *pszTag, int nAlign)
Allocate a block from the pool heaps and bill it to a tag.
void PoolMemFree(void *pBlock)
Return a block PoolMemAlloc() handed out to the pool heap that owns it.