24 : mProgress(fProgress), mReceived(nReceived) {
33 void *
operator new(
size_t nSize) {
34 return PoolMemAlloc(
static_cast<int>(nSize),
"ShareRemixProgressMsg", 0);
42 void operator delete(
void *pBlock) {
70 return "ShareRemixProgressMsg";
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 GetReceived() const
Definition shareremixprogressmsg.h:88
ShareRemixProgressMsg(float fProgress, int nReceived)
Construct a message with the progress.
Definition shareremixprogressmsg.h:23
Message * Clone() override
Produce a heap copy of this message.
Definition shareremixprogressmsg.h:51
int Type() override
Report this message's registered identity.
Definition shareremixprogressmsg.h:60
const char * GetName() const override
Report this message's class name.
Definition shareremixprogressmsg.h:69
void PrintExtra(PrnStream &stream) const override
Write the progress and mReceived.
float GetProgress() const
Definition shareremixprogressmsg.h:83
int g_nShareRemixProgressMsgType
Identity that ShareRemixProgressMsg::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.