33 explicit FileListMsg(std::list<String> *pFiles) : mFiles(pFiles) {
42 void *
operator new(
size_t nSize) {
43 return PoolMemAlloc(
static_cast<int>(nSize),
"FileListMsg", 0);
51 void operator delete(
void *pBlock) {
94 std::list<String> *mFiles;
Message * Clone() override
Produce a heap copy of this message, which points at the same names.
Definition filelistmsg.h:62
int Type() override
Report this message's registered identity.
Definition filelistmsg.h:73
FileListMsg(std::list< String > *pFiles)
Construct a message that points at the names.
Definition filelistmsg.h:33
~FileListMsg() override=default
Destroy the object.
const char * GetName() const override
Report this message's class name.
Definition filelistmsg.h:84
std::list< String > * GetFiles() const
Definition filelistmsg.h:89
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:40
int g_nFileListMsgType
Identity that FileListMsg::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.